mirror of
https://github.com/azahar-emu/azahar.git
synced 2026-10-06 11:06:25 +02:00
Added string_util to common, small changes in loader.cpp
This commit is contained in:
1 parent
4ed24a0619
commit
5472fd4d9b
14 files changed
+93
-87
No files matched your search
@@ -17,14 +17,16 @@
|
||||
#include <iconv.h>
|
||||
#endif
|
||||
|
||||
namespace Common {
|
||||
|
||||
/// Make a string lowercase
|
||||
std::string LowerStr(std::string str) {
|
||||
std::string ToLower(std::string str) {
|
||||
std::transform(str.begin(), str.end(), str.begin(), ::tolower);
|
||||
return str;
|
||||
}
|
||||
|
||||
/// Make a string uppercase
|
||||
std::string UpperStr(std::string str) {
|
||||
std::string ToUpper(std::string str) {
|
||||
std::transform(str.begin(), str.end(), str.begin(), ::toupper);
|
||||
return str;
|
||||
}
|
||||
@@ -541,3 +543,5 @@ std::string UTF16ToUTF8(const std::wstring& input)
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user