MCPcopy Create free account
hub / github.com/dunglas/httpsfv / unhex

Function unhex

displaystring.go:96–105  ·  view source on GitHub ↗
(c byte)

Source from the content-addressed store, hash-verified

94}
95
96func unhex(c byte) byte {
97 switch {
98 case '0' <= c && c <= '9':
99 return c - '0'
100 case 'a' <= c && c <= 'f':
101 return c - 'a' + 10
102 default:
103 return 0
104 }
105}

Callers 1

parseDisplayStringFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…