if ( strTwoCharCode.length() == 2 )
{
CStdString strTwoCharCodeLower( strTwoCharCode );
- strTwoCharCodeLower.MakeLower();
- strTwoCharCodeLower.TrimLeft();
- strTwoCharCodeLower.TrimRight();
+ StringUtils::ToLower(strTwoCharCodeLower);
+ StringUtils::Trim(strTwoCharCodeLower);
for (unsigned int index = 0; index < sizeof(CharCode2To3) / sizeof(CharCode2To3[0]); ++index)
{
return false;
CStdString strLower( strTwoCharCode );
- strLower.MakeLower();
- strLower.TrimLeft();
- strLower.TrimRight();
+ StringUtils::ToLower(strLower);
+ StringUtils::Trim(strLower);
for (unsigned int index = 0; index < sizeof(RegionCode2To3) / sizeof(RegionCode2To3[0]); ++index)
{
if (strLower.Equals(RegionCode2To3[index].old))
return false;
CStdString descTmp(desc);
- descTmp.Trim();
+ StringUtils::Trim(descTmp);
STRINGLOOKUPTABLE::iterator it;
for (it = m_mapUser.begin(); it != m_mapUser.end() ; it++)
{
STRINGLOOKUPTABLE::iterator it;
//Make sure we convert to lowercase before trying to find it
CStdString sCode(code);
- sCode.MakeLower();
- sCode.TrimLeft();
- sCode.TrimRight();
+ StringUtils::ToLower(sCode);
+ StringUtils::Trim(sCode);
+
it = m_mapUser.find(sCode);
if (it != m_mapUser.end())
{
long longcode;
CStdString sCode(code);
- sCode.MakeLower();
- sCode.TrimLeft();
- sCode.TrimRight();
+ StringUtils::ToLower(sCode);
+ StringUtils::Trim(sCode);
+
if(sCode.length() == 2)
{
longcode = MAKECODE('\0', '\0', sCode[0], sCode[1]);