convert indentation spaces to tabs

This commit is contained in:
Aleksandar Fabijanic 2012-09-08 01:09:46 +00:00
Родитель 69bb6e4461
Коммит afc29520d4
1 изменённых файлов: 33 добавлений и 33 удалений

Просмотреть файл

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