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

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

Definition at line 15 of file TableDataSource.h.

Referenced by Impala::Application::VideoExcel::TableDataSource::SortAndFilter().

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


Generated on Thu Jan 13 09:16:33 2011 for ImpalaSrc by  doxygen 1.5.1