Home || Architecture || Video Search || Visual Search || Scripts || Applications || Important Messages || OGL || Src

bool Impala::Application::MediaTable::compare_string_nocase ( std::pair< String, int >  a,
std::pair< String, int >  b 
)

Definition at line 18 of file TableDataView.h.

Referenced by Impala::Application::MediaTable::TableDataView::SortAndFilterText().

00019 {
00020     unsigned int i=0;
00021     String first = a.first;
00022     String second = b.first;
00023     while ( (i < first.length()) && (i < second.length()) )
00024     {
00025         if (tolower(first[i])<tolower(second[i]))
00026             return true;
00027         else if (tolower(first[i])>tolower(second[i]))
00028             return false;
00029         ++i;
00030     }
00031     return first.length() < second.length();
00032 };


Generated on Fri Mar 19 10:42:31 2010 for ImpalaSrc by  doxygen 1.5.1