Tidy up some xml structures.
This commit is contained in:
parent
875cdc84ff
commit
8771b721d1
31 changed files with 885 additions and 563 deletions
|
@ -1,5 +1,6 @@
|
|||
#include "StringUtils.h"
|
||||
#include <locale>
|
||||
#include <algorithm>
|
||||
|
||||
bool StringUtils::IsAlphaNumeric(char c)
|
||||
{
|
||||
|
@ -12,3 +13,11 @@ bool StringUtils::IsSpace(char c)
|
|||
std::locale loc;
|
||||
return std::isspace(c, loc);
|
||||
}
|
||||
|
||||
std::string StringUtils::ToLower(const std::string& s)
|
||||
{
|
||||
std::string ret;
|
||||
std::transform(s.begin(), s.end(), ret.begin(),
|
||||
[](unsigned char c){ return std::tolower(c); });
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue