Switch to unified view

a/src/utils/smallut.cpp b/src/utils/smallut.cpp
...
...
1262
1262
1263
int main(int argc, char **argv)
1263
int main(int argc, char **argv)
1264
{
1264
{
1265
    thisprog = *argv++;argc--;
1265
    thisprog = *argv++;argc--;
1266
1266
1267
#if 1
1268
    if (argc <=0 ) {
1269
        cerr << "Usage: smallut <stringtosplit>" << endl;
1270
        exit(1);
1271
    }
1272
    string s = *argv++;argc--;
1273
    vector<string> vs;
1274
    stringToTokens(s, vs, "/");
1275
    for (vector<string>::const_iterator it = vs.begin(); it != vs.end(); it++)
1276
        cerr << "[" << *it << "] ";
1277
    cerr << endl;
1278
    exit(0);
1267
#if 0
1279
#elif 0
1268
    if (argc <=0 ) {
1280
    if (argc <=0 ) {
1269
        cerr << "Usage: smallut <stringtosplit>" << endl;
1281
        cerr << "Usage: smallut <stringtosplit>" << endl;
1270
        exit(1);
1282
        exit(1);
1271
    }
1283
    }
1272
    string s = *argv++;argc--;
1284
    string s = *argv++;argc--;
...
...
1367
    tokens.push_back("simple value");
1379
    tokens.push_back("simple value");
1368
    tokens.push_back("with \"quotes\"");
1380
    tokens.push_back("with \"quotes\"");
1369
    string out;
1381
    string out;
1370
    stringsToCSV(tokens, out);
1382
    stringsToCSV(tokens, out);
1371
    cout << "CSV line: [" << out << "]" << endl;
1383
    cout << "CSV line: [" << out << "]" << endl;
1372
#elif 1
1384
#elif 0
1373
    string sshort("ABC");
1385
    string sshort("ABC");
1374
    string slong("ABCD");
1386
    string slong("ABCD");
1375
    string sshortsmaller("ABB");
1387
    string sshortsmaller("ABB");
1376
    
1388
    
1377
    vector<pair<string,string> > cmps;
1389
    vector<pair<string,string> > cmps;