From b63f6513f2908107becac2bc0742f885aa9abd88 Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Thu, 9 Nov 2006 17:27:18 +0000 Subject: [PATCH] Use 'char' instead of 'unsigned char' for conversion with std::ctype. --- src/utility/stringUtils.cpp | 20 ++++++++++---------- 1 file 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 & fac = - std::use_facet >(std::locale::classic()); + const std::ctype & fac = + std::use_facet >(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 & fac = - std::use_facet >(std::locale::classic()); + const std::ctype & fac = + std::use_facet >(std::locale::classic()); bool equal = true; const string::const_iterator end = s1.end(); @@ -70,8 +70,8 @@ const bool stringUtils::isStringEqualNoCase if (static_cast (end - begin) < n) return (false); - const std::ctype & fac = - std::use_facet >(std::locale::classic()); + const std::ctype & fac = + std::use_facet >(std::locale::classic()); bool equal = true; char* c = const_cast(s); @@ -86,8 +86,8 @@ const bool stringUtils::isStringEqualNoCase const string stringUtils::toLower(const string& str) { - const std::ctype & fac = - std::use_facet >(std::locale::classic()); + const std::ctype & fac = + std::use_facet >(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 & fac = - std::use_facet >(std::locale::classic()); + const std::ctype & fac = + std::use_facet >(std::locale::classic()); string out; out.resize(str.size());