X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Futils.cpp;h=55b191f5216dcd2a60f92c3b878f23248e9e5722;hp=3ef7b797b5040c5cb8b6f6a545ec83d04b944fcb;hb=ebd23ef7dde39a35e9ffdfb5be31934507cefaad;hpb=5ea1720bc90416df7ac5e28b145e9ebf7f76b7a2 diff --git a/source/utils.cpp b/source/utils.cpp index 3ef7b79..55b191f 100644 --- a/source/utils.cpp +++ b/source/utils.cpp @@ -33,7 +33,7 @@ Returns a lowercase copy of the given string. */ string tolower(const string &str) { - string result(str); + string result(str); transform(result.begin(), result.end(), result.begin(), ::tolower); return result; } @@ -43,7 +43,7 @@ Returns an uppercase copy of the given string. */ string toupper(const string &str) { - string result(str); + string result(str); transform(result.begin(), result.end(), result.begin(), ::toupper); return result; } @@ -62,7 +62,7 @@ vector split(const string &str, const string &sep, bool allow_empty) unsigned start=str.find_first_not_of(sep); while(start split(const string &str, const string &sep, bool allow_empty) vector split(const string &str, char sep, bool allow_empty) { - return split(str, string(1,sep), allow_empty); + return split(str, string(1, sep), allow_empty); } /**