MCPcopy Create free account
hub / github.com/Kitware/VTK / hexDigitValue

Function hexDigitValue

ThirdParty/sqlite/vtksqlite/shell.c:1356–1361  ·  view source on GitHub ↗

** Return the value of a hexadecimal digit. Return -1 if the input ** is not a hex digit. */

Source from the content-addressed store, hash-verified

1354** is not a hex digit.
1355*/
1356static int hexDigitValue(char c){
1357 if( c>='0' && c<='9' ) return c - '0';
1358 if( c>='a' && c<='f' ) return c - 'a' + 10;
1359 if( c>='A' && c<='F' ) return c - 'A' + 10;
1360 return -1;
1361}
1362
1363/*
1364** Interpret zArg as an integer value, possibly with suffixes.

Callers 3

integerValueFunction · 0.85
resolve_backslashesFunction · 0.85
booleanValueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected