mElite
1.0
An Elite clone based on TextElite by Jan-Philipp Kappmeier and Melanie Schmidt.
Main Page
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
mElite
LittleHelper.cpp
Go to the documentation of this file.
1
6
#include "
LittleHelper.h
"
7
8
using namespace
std;
9
11
19
size_t
LittleHelper::stringCmpi
(
const
string
& s1,
const
string
& s2 ) {
20
string::const_iterator p1 = s1.begin(), p2 = s2.begin();
21
while
(p1 != s1.end() && p2 != s2.end()) {
22
if
(toupper(*p1) != toupper(*p2))
23
return
(toupper(*p1)<toupper(*p2))? -1 : 1;
24
p1++;
25
p2++;
26
}
27
return
(s2.size() - s1.size());
28
}
Generated on Tue Oct 2 2012 14:38:37 for mElite by
1.8.2