Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
163
int luaO_hexavalue (int c) {
164
if (lisdigit(c)) return c -
'0'
;
165
else return (ltolower(c) -
'a'
) + 10;
166
}
167
168
169
static int isneg (const char **s) {
Callers
4
gethexa
Function · 0.85
readutf8esc
Function · 0.85
lua_strx2number
Function · 0.85
l_str2int
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected