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

Function StringToLower

samples/shared/strtools.cpp:162–172  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

160// Purpose: converts a string to lower case
161// --------------------------------------------------------------------
162std::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
175uint32_t ReturnStdString( const std::string & sValue, char *pchBuffer, uint32_t unBufferLen )

Callers

nothing calls this directly

Calls 3

sizeMethod · 0.80
beginMethod · 0.80
endMethod · 0.80

Tested by

no test coverage detected