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

Function cIntToHexDigit

samples/shared/strtools.cpp:222–226  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Purpose: Helper for converting a numeric value to a hex digit, value should be 0-15. -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

220// Purpose: Helper for converting a numeric value to a hex digit, value should be 0-15.
221//-----------------------------------------------------------------------------
222char cIntToHexDigit( int nValue )
223{
224 //Assert( nValue >= 0 && nValue <= 15 );
225 return "0123456789ABCDEF"[ nValue & 15 ];
226}
227
228//-----------------------------------------------------------------------------
229// Purpose: Helper for converting a hex char value to numeric, return -1 if the char

Callers 1

V_URLEncodeInternalFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected