This commit is contained in:
David Rose 2002-10-11 05:14:19 +00:00
parent d5c5811404
commit 84f005f040
1 changed files with 2 additions and 0 deletions

View File

@ -72,6 +72,7 @@ cmp_nocase_uh(const string &s, const string &s2) {
string
downcase(const string &s) {
string result;
result.reserve(s.size());
string::const_iterator p;
for (p = s.begin(); p != s.end(); ++p) {
result += tolower(*p);
@ -87,6 +88,7 @@ downcase(const string &s) {
string
upcase(const string &s) {
string result;
result.reserve(s.size());
string::const_iterator p;
for (p = s.begin(); p != s.end(); ++p) {
result += toupper(*p);