}
}
//---------------------------------------------------------------------------
+std::string Encode12str(const std::string & src)
+{
+std::string res;
+Encode12str(res, src);
+return res;
+}
+//---------------------------------------------------------------------------
+std::string Decode21str(const std::string & src)
+{
+std::string res;
+Decode21str(res, src);
+return res;
+}
+//---------------------------------------------------------------------------
void Encode12(char * dst, const char * src, size_t srcLen)
{
for (size_t i = 0; i <= srcLen; i++)
std::string res;
for (std::string::size_type pos = 0; pos < value.length(); ++pos)
res += tolower(value[pos]);
- return value;
+ return res;
}
//---------------------------------------------------------------------------
std::string ToUpper(const std::string & value)
std::string res;
for (std::string::size_type pos = 0; pos < value.length(); ++pos)
res += toupper(value[pos]);
- return value;
+ return res;
}
//---------------------------------------------------------------------------
#ifdef WIN32