MCPcopy Create free account
hub / github.com/ValveSoftware/openvr / StringToLower

Function StringToLower

src/vrcore/strtools_public.cpp:253–263  ·  view source on GitHub ↗

-------------------------------------------------------------------- Purpose: converts a string to lower case --------------------------------------------------------------------

Source from the content-addressed store, hash-verified

251// Purpose: converts a string to lower case
252// --------------------------------------------------------------------
253std::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
266uint32_t ReturnStdString( const std::string & sValue, char *pchBuffer, uint32_t unBufferLen )

Callers 1

Calls 3

sizeMethod · 0.80
beginMethod · 0.80
endMethod · 0.80

Tested by

no test coverage detected