Make index comparisons for XHTML output case insensitive.

This commit is contained in:
Richard Heck 2012-04-03 17:54:50 -04:00
parent 5db793ff30
commit 7b6b4c4598

View File

@ -662,9 +662,12 @@ struct IndexEntry
bool operator<(IndexEntry const & lhs, IndexEntry const & rhs)
{
return lhs.main < rhs.main
|| (lhs.main == rhs.main && lhs.sub < rhs.sub)
|| (lhs.main == rhs.main && lhs.sub == rhs.sub && lhs.subsub < rhs.subsub);
int comp = compare_no_case(lhs.main, rhs.main);
if (comp == 0)
comp = compare_no_case(lhs.sub, rhs.sub);
if (comp == 0)
comp = compare_no_case(lhs.subsub, rhs.subsub);
return (comp < 0);
}
} // anon namespace