MCPcopy Create free account
hub / github.com/DFHack/dfhack / luaO_hexavalue

Function luaO_hexavalue

depends/lua/src/lobject.c:163–166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

161
162
163int luaO_hexavalue (int c) {
164 if (lisdigit(c)) return c - '0';
165 else return (ltolower(c) - 'a') + 10;
166}
167
168
169static int isneg (const char **s) {

Callers 4

gethexaFunction · 0.85
readutf8escFunction · 0.85
lua_strx2numberFunction · 0.85
l_str2intFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected