mirror of
https://github.com/pocoproject/poco.git
synced 2025-02-20 06:17:15 +01:00
trunk/branch integration: using Poco::Ascii
This commit is contained in:
parent
ba5fe67963
commit
150fe64cac
@ -52,8 +52,8 @@ int icompare(const std::string& str, std::string::size_type pos, std::string::si
|
||||
std::string::const_iterator end1 = str.begin() + pos + n;
|
||||
while (it1 != end1 && it2 != end2)
|
||||
{
|
||||
std::string::value_type c1 = std::tolower(*it1);
|
||||
std::string::value_type c2 = std::tolower(*it2);
|
||||
std::string::value_type c1 = Ascii::toLower(*it1);
|
||||
std::string::value_type c2 = Ascii::toLower(*it2);
|
||||
if (c1 < c2)
|
||||
return -1;
|
||||
else if (c1 > c2)
|
||||
@ -122,8 +122,8 @@ int icompare(const std::string& str, std::string::size_type pos, std::string::si
|
||||
std::string::const_iterator end = str.begin() + pos + n;
|
||||
while (it != end && *ptr)
|
||||
{
|
||||
std::string::value_type c1 = std::tolower(*it);
|
||||
std::string::value_type c2 = std::tolower(*ptr);
|
||||
std::string::value_type c1 = Ascii::toLower(*it);
|
||||
std::string::value_type c2 = Ascii::toLower(*ptr);
|
||||
if (c1 < c2)
|
||||
return -1;
|
||||
else if (c1 > c2)
|
||||
|
Loading…
x
Reference in New Issue
Block a user