MCPcopy Create free account
hub / github.com/Pagghiu/SaneCppLibraries / hexValue

Function hexValue

Libraries/SerializationText/SerializationJson.cpp:143–158  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141}
142
143int hexValue(char value)
144{
145 if (value >= '0' and value <= '9')
146 {
147 return value - '0';
148 }
149 if (value >= 'a' and value <= 'f')
150 {
151 return 10 + value - 'a';
152 }
153 if (value >= 'A' and value <= 'F')
154 {
155 return 10 + value - 'A';
156 }
157 return -1;
158}
159
160bool containsJSONEscape(StringSpan escaped)
161{

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected