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

Function StringToUpper

samples/shared/strtools.cpp:146–156  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

144// Purpose: converts a string to upper case
145// --------------------------------------------------------------------
146std::string StringToUpper( const std::string & sString )
147{
148 std::string sOut;
149 sOut.reserve( sString.size() + 1 );
150 for( std::string::const_iterator i = sString.begin(); i != sString.end(); i++ )
151 {
152 sOut.push_back( (char)toupper( *i ) );
153 }
154
155 return sOut;
156}
157
158
159// --------------------------------------------------------------------

Callers

nothing calls this directly

Calls 3

sizeMethod · 0.80
beginMethod · 0.80
endMethod · 0.80

Tested by

no test coverage detected