-------------------------------------------------------------------- Purpose: converts a string to lower case --------------------------------------------------------------------
| 251 | // Purpose: converts a string to lower case |
| 252 | // -------------------------------------------------------------------- |
| 253 | std::string StringToLower( const std::string & sString ) |
| 254 | { |
| 255 | std::string sOut; |
| 256 | sOut.reserve( sString.size() + 1 ); |
| 257 | for( std::string::const_iterator i = sString.begin(); i != sString.end(); i++ ) |
| 258 | { |
| 259 | sOut.push_back( (char)tolower( *i ) ); |
| 260 | } |
| 261 | |
| 262 | return sOut; |
| 263 | } |
| 264 | |
| 265 | |
| 266 | uint32_t ReturnStdString( const std::string & sValue, char *pchBuffer, uint32_t unBufferLen ) |
no test coverage detected