MCPcopy Create free account
hub / github.com/GaijinEntertainment/daScript / hexChar

Function hexChar

src/simulate/runtime_string.cpp:293–303  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

291 DAS_API const char * rts_null = "";
292
293 static int hexChar ( char ch ) {
294 if ( ch>='a' && ch<='f' ) {
295 return ch - 'a' + 10;
296 } else if ( ch>='A' && ch<='F' ) {
297 return ch - 'A' + 10;
298 } else if ( ch>='0' && ch<='9' ) {
299 return ch - '0';
300 } else {
301 return -1;
302 }
303 }
304
305
306 static bool encodeUtf8Char(uint32_t ch, char * result) {

Callers 1

unescapeStringFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected