convert indentation spaces to tabs

This commit is contained in:
Aleksandar Fabijanic 2012-09-08 01:09:46 +00:00
parent 69bb6e4461
commit afc29520d4

View File

@ -202,19 +202,19 @@ int icompare(
It end1 = str.begin() + pos + n; It end1 = str.begin() + pos + n;
while (it1 != end1 && it2 != end2) while (it1 != end1 && it2 != end2)
{ {
typename S::value_type c1(Ascii::toLower(*it1)); typename S::value_type c1(Ascii::toLower(*it1));
typename S::value_type c2(Ascii::toLower(*it2)); typename S::value_type c2(Ascii::toLower(*it2));
if (c1 < c2) if (c1 < c2)
return -1; return -1;
else if (c1 > c2) else if (c1 > c2)
return 1; return 1;
++it1; ++it2; ++it1; ++it2;
} }
if (it1 == end1) if (it1 == end1)
return it2 == end2 ? 0 : -1; return it2 == end2 ? 0 : -1;
else else
return 1; return 1;
} }
@ -228,19 +228,19 @@ int icompare(const S& str1, const S& str2)
typename S::const_iterator end2(str2.end()); typename S::const_iterator end2(str2.end());
while (it1 != end1 && it2 != end2) while (it1 != end1 && it2 != end2)
{ {
typename S::value_type c1(Ascii::toLower(*it1)); typename S::value_type c1(Ascii::toLower(*it1));
typename S::value_type c2(Ascii::toLower(*it2)); typename S::value_type c2(Ascii::toLower(*it2));
if (c1 < c2) if (c1 < c2)
return -1; return -1;
else if (c1 > c2) else if (c1 > c2)
return 1; return 1;
++it1; ++it2; ++it1; ++it2;
} }
if (it1 == end1) if (it1 == end1)
return it2 == end2 ? 0 : -1; return it2 == end2 ? 0 : -1;
else else
return 1; return 1;
} }
@ -313,19 +313,19 @@ int icompare(
typename S::const_iterator end = str.begin() + pos + n; typename S::const_iterator end = str.begin() + pos + n;
while (it != end && *ptr) while (it != end && *ptr)
{ {
typename S::value_type c1(Ascii::toLower(*it)); typename S::value_type c1(Ascii::toLower(*it));
typename S::value_type c2(Ascii::toLower(*ptr)); typename S::value_type c2(Ascii::toLower(*ptr));
if (c1 < c2) if (c1 < c2)
return -1; return -1;
else if (c1 > c2) else if (c1 > c2)
return 1; return 1;
++it; ++ptr; ++it; ++ptr;
} }
if (it == end) if (it == end)
return *ptr == 0 ? 0 : -1; return *ptr == 0 ? 0 : -1;
else else
return 1; return 1;
} }