Subversion Repositories HomeAutomation

Rev

Rev 1309 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed

Rev 1309 Rev 1310
Line 319... Line 319...
319
 
319
 
320
    while (result[result.length() - 1] == c)
320
    while (result[result.length() - 1] == c)
321
        result.erase(result.length() - 1, 1);
321
        result.erase(result.length() - 1, 1);
322
 
322
 
323
    return result;
323
    return result;
-
 
324
}
-
 
325
 
-
 
326
bool stob(const string s)
-
 
327
{
-
 
328
    return (s == "true" || s == "1" || s == "yes");
324
}
329
}
325
 
330
 
326
int stoi(const string s)
331
int stoi(const string s)
327
{
332
{
328
    istringstream in(s);
333
    istringstream in(s);