diff options
author | Vincent Richard <[email protected]> | 2006-11-09 17:27:18 +0000 |
---|---|---|
committer | Vincent Richard <[email protected]> | 2006-11-09 17:27:18 +0000 |
commit | b63f6513f2908107becac2bc0742f885aa9abd88 (patch) | |
tree | 8cdb254d1a76ec926e6e378b6d58f14ec258a205 | |
parent | Imbue classic 'C' locale for the output of message parts and protocol commands. (diff) | |
download | vmime-b63f6513f2908107becac2bc0742f885aa9abd88.tar.gz vmime-b63f6513f2908107becac2bc0742f885aa9abd88.zip |
Use 'char' instead of 'unsigned char' for conversion with std::ctype.
-rw-r--r-- | src/utility/stringUtils.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/utility/stringUtils.cpp b/src/utility/stringUtils.cpp index dab01f15..f00c351b 100644 --- a/src/utility/stringUtils.cpp +++ b/src/utility/stringUtils.cpp @@ -33,8 +33,8 @@ const bool stringUtils::isStringEqualNoCase if (s1.length() < n) return (false); - const std::ctype <unsigned char>& fac = - std::use_facet <std::ctype <unsigned char> >(std::locale::classic()); + const std::ctype <char>& fac = + std::use_facet <std::ctype <char> >(std::locale::classic()); bool equal = true; @@ -50,8 +50,8 @@ const bool stringUtils::isStringEqualNoCase(const string& s1, const string& s2) if (s1.length() != s2.length()) return (false); - const std::ctype <unsigned char>& fac = - std::use_facet <std::ctype <unsigned char> >(std::locale::classic()); + const std::ctype <char>& fac = + std::use_facet <std::ctype <char> >(std::locale::classic()); bool equal = true; const string::const_iterator end = s1.end(); @@ -70,8 +70,8 @@ const bool stringUtils::isStringEqualNoCase if (static_cast <string::size_type>(end - begin) < n) return (false); - const std::ctype <unsigned char>& fac = - std::use_facet <std::ctype <unsigned char> >(std::locale::classic()); + const std::ctype <char>& fac = + std::use_facet <std::ctype <char> >(std::locale::classic()); bool equal = true; char* c = const_cast<char*>(s); @@ -86,8 +86,8 @@ const bool stringUtils::isStringEqualNoCase const string stringUtils::toLower(const string& str) { - const std::ctype <unsigned char>& fac = - std::use_facet <std::ctype <unsigned char> >(std::locale::classic()); + const std::ctype <char>& fac = + std::use_facet <std::ctype <char> >(std::locale::classic()); string out; out.resize(str.size()); @@ -101,8 +101,8 @@ const string stringUtils::toLower(const string& str) const string stringUtils::toUpper(const string& str) { - const std::ctype <unsigned char>& fac = - std::use_facet <std::ctype <unsigned char> >(std::locale::classic()); + const std::ctype <char>& fac = + std::use_facet <std::ctype <char> >(std::locale::classic()); string out; out.resize(str.size()); |