Move uppercase function to strutils.

This commit is contained in:
ThorstenB
2012-10-10 21:31:57 +02:00
parent 81d5b651d2
commit 1ff3a61de6
2 changed files with 15 additions and 0 deletions
+8
View File
@@ -292,6 +292,14 @@ namespace simgear {
return result;
}
string uppercase(const string &s) {
string rslt(s);
for(string::iterator p = rslt.begin(); p != rslt.end(); p++){
*p = toupper(*p);
}
return rslt;
}
} // end namespace strutils
} // end namespace simgear