Switch to unified view

a/libupnpp/upnpplib.cxx b/libupnpp/upnpplib.cxx
...
...
402
}
402
}
403
403
404
//template bool csvToStrings<list<string> >(const string &, list<string> &);
404
//template bool csvToStrings<list<string> >(const string &, list<string> &);
405
template bool csvToStrings<vector<string> >(const string &, vector<string> &);
405
template bool csvToStrings<vector<string> >(const string &, vector<string> &);
406
template bool csvToStrings<set<string> >(const string &, set<string> &);
406
template bool csvToStrings<set<string> >(const string &, set<string> &);
407
408
409
bool stringToBool(const string& s, bool *value)
410
{
411
    if (s[0] == 'F' ||s[0] == 'f' ||s[0] == 'N' || s[0] == 'n' ||s[0] == '0') {
412
        *value = false;
413
    } else if (s[0] == 'T'|| s[0] == 't' ||s[0] == 'Y' ||s[0] == 'y' || 
414
               s[0] == '1') {
415
        *value = true;
416
    } else {
417
        return false;
418
    }
419
    return true;
420
}