- make StringHelper::toUtf8() synonym for makeUtf8()

This commit is contained in:
Dmytro Bogovych 2018-12-27 13:31:03 +02:00
parent 122876e537
commit d5b4c1874a
2 changed files with 6 additions and 0 deletions

View File

@ -53,6 +53,11 @@ std::string StringHelper::makeUtf8(const std::tstring &arg)
#endif #endif
} }
std::string StringHelper::toUtf8(const std::tstring &arg)
{
return makeUtf8(arg);
}
std::tstring StringHelper::makeTstring(const std::string& arg) std::tstring StringHelper::makeTstring(const std::string& arg)
{ {
#if defined(TARGET_WIN) #if defined(TARGET_WIN)

View File

@ -23,6 +23,7 @@ public:
static std::string appendPath(const std::string& s1, const std::string& s2); static std::string appendPath(const std::string& s1, const std::string& s2);
static std::string makeUtf8(const std::tstring& arg); static std::string makeUtf8(const std::tstring& arg);
static std::string toUtf8(const std::tstring& arg);
static std::tstring makeTstring(const std::string& arg); static std::tstring makeTstring(const std::string& arg);
static int toInt(const char* s, int defaultValue, bool* isOk = nullptr); static int toInt(const char* s, int defaultValue, bool* isOk = nullptr);
static uint64_t toUint64(const char* s, uint64_t def, bool *isOk = nullptr); static uint64_t toUint64(const char* s, uint64_t def, bool *isOk = nullptr);