69 throw std::runtime_error(
"Key name empty.");
77 std::ostringstream sout;
78 sout <<
"Key '" <<
key <<
"' exceeds 8 bytes.";
80 throw std::runtime_error(sout.str());
88 #if GCC_VERSION < 40603 89 for (std::string::const_iterator c=key.begin(); c<key.end(); c++)
91 for (std::string::const_iterator c=key.cbegin(); c<key.cend(); c++)
93 if ((*c<'A' || *c>
'Z') && (*c<'0' || *c>
'9') && *c!=
'-' && *c!=
'_')
95 std::ostringstream sout;
96 sout <<
"Invalid character '" << *c <<
"' found in key '" << key <<
"'";
98 throw std::runtime_error(sout.str());
std::string Trim(const std::string &str)