Tidy up some xml structures.

This commit is contained in:
jmsgrogan 2020-05-09 15:29:45 +01:00
parent 875cdc84ff
commit 8771b721d1
31 changed files with 885 additions and 563 deletions

View file

@ -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;
}