mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-30 17:02:19 +00:00
commit
74e412ffd7
@ -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());
|
||||
}
|
@ -133,6 +133,9 @@ void SplitString(const std::string& str, const char delim, std::vector<std::stri
|
||||
|
||||
std::string ReplaceAll(std::string input, const std::string& src, const std::string& dest);
|
||||
|
||||
// Compare two strings, ignore the difference between the ignorestr1 and the ignorestr2 in str1 and str2.
|
||||
int strcmpIgnore(std::string str1, std::string str2, std::string ignorestr1, std::string ignorestr2);
|
||||
|
||||
template <typename N>
|
||||
static std::string ValueToString(const N value)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user