Commit b7cc46dc authored by thomas.forbriger's avatar thomas.forbriger Committed by thomas.forbriger

match station names with whitespace

This is a legacy commit from before 2015-03-01.
It may be incomplete as well as inconsistent.
See COPYING.legacy and README.history for details.


SVN Path:     http://gpitrsvn.gpi.uni-karlsruhe.de/repos/TFSoftware/trunk
SVN Revision: 2843
SVN UUID:     67feda4a-a26e-11df-9d6e-31afc202ad0c
parent d3a43b57
......@@ -3,7 +3,7 @@
*
* ----------------------------------------------------------------------------
*
* $Id: cooset.cc,v 1.4 2007-07-05 16:26:35 tforb Exp $
* $Id: cooset.cc,v 1.5 2009-06-12 08:57:53 tforb Exp $
* \author Thomas Forbriger
* \date 08/09/2004
*
......@@ -35,7 +35,7 @@
#define COOSET_VERSION \
"COOSET V1.0 set coordinates"
#define COOSET_CVSID \
"$Id: cooset.cc,v 1.4 2007-07-05 16:26:35 tforb Exp $"
"$Id: cooset.cc,v 1.5 2009-06-12 08:57:53 tforb Exp $"
#include <fstream>
#include <iostream>
......@@ -48,6 +48,7 @@
#include <libtime++.h>
#include <tfxx/commandline.h>
#include <tfxx/error.h>
#include <tfxx/stringfunc.h>
using std::cout;
using std::cerr;
......@@ -260,7 +261,10 @@ int main(int iargc, char* argv[])
for (unsigned int i=0; i<station.size(); ++i)
{
thestation=station[i];
if (thestation.id == wid2.station)
if (opt.debug) { cout << "'" << thestation.id << "' '"
<< wid2.station << "'" << endl; }
if (tfxx::string::trimws_end(thestation.id)
== tfxx::string::trimws_end(wid2.station))
{
infoset=true;
char syst=opt.stationsystem[0];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment