mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-09-05 20:25:25 +02:00
Add strcmpIgnore func.
This commit is contained in:
@@ -233,4 +233,10 @@ std::string ReplaceAll(std::string result, const std::string& src, const std::st
|
||||
pos += dest.size();
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
int strcmpIgnore(std::string str1, std::string str2, std::string ignorestr1, std::string ignorestr2) {
|
||||
str1 = ReplaceAll(str1, ignorestr1, ignorestr2);
|
||||
str2 = ReplaceAll(str2, ignorestr1, ignorestr2);
|
||||
return strcmp(str1.c_str(),str2.c_str());
|
||||
}
|
||||
Reference in New Issue
Block a user