mirror of
https://github.com/glest/glest-source.git
synced 2025-08-22 07:52:51 +02:00
sort map lists non case sensitive in menu
This commit is contained in:
@@ -735,6 +735,10 @@ string toLower(const string &s){
|
||||
return rs;
|
||||
}
|
||||
|
||||
bool compareNonCaseSensitive(const string a, const string b) {
|
||||
return (toLower(a) < toLower(b));
|
||||
}
|
||||
|
||||
void copyStringToBuffer(char *buffer, int bufferSize, const string& s){
|
||||
strncpy(buffer, s.c_str(), bufferSize-1);
|
||||
buffer[bufferSize-1]= '\0';
|
||||
|
Reference in New Issue
Block a user