-------------------------------------------------------------------- Purpose: converts a string to lower case --------------------------------------------------------------------
| 160 | // Purpose: converts a string to lower case |
| 161 | // -------------------------------------------------------------------- |
| 162 | std::string StringToLower( const std::string & sString ) |
| 163 | { |
| 164 | std::string sOut; |
| 165 | sOut.reserve( sString.size() + 1 ); |
| 166 | for( std::string::const_iterator i = sString.begin(); i != sString.end(); i++ ) |
| 167 | { |
| 168 | sOut.push_back( (char)tolower( *i ) ); |
| 169 | } |
| 170 | |
| 171 | return sOut; |
| 172 | } |
| 173 | |
| 174 | |
| 175 | uint32_t ReturnStdString( const std::string & sValue, char *pchBuffer, uint32_t unBufferLen ) |