Commit 8f434efb authored by Oleg Korshul's avatar Oleg Korshul

.

parent 244dafb0
...@@ -452,6 +452,14 @@ namespace NSStringExt ...@@ -452,6 +452,14 @@ namespace NSStringExt
return arrElements; return arrElements;
} }
static inline void ToLower(std::string& wsString)
{
std::transform(wsString.begin(), wsString.end(), wsString.begin(), ::towlower);
}
static inline void ToUpper(std::string& wsString)
{
std::transform(wsString.begin(), wsString.end(), wsString.begin(), ::towupper);
}
static inline void ToLower(std::wstring& wsString) static inline void ToLower(std::wstring& wsString)
{ {
std::transform(wsString.begin(), wsString.end(), wsString.begin(), ::towlower); std::transform(wsString.begin(), wsString.end(), wsString.begin(), ::towlower);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment