MCPcopy Create free account
hub / github.com/boostorg/json / hex_digit

Function hex_digit

include/boost/json/basic_parser_impl.hpp:177–188  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

175}
176
177inline
178int
179hex_digit(unsigned char c) noexcept
180{
181 // by Peter Dimov
182 if( c >= '0' && c <= '9' )
183 return c - '0';
184 c &= ~0x20;
185 if( c >= 'A' && c <= 'F' )
186 return 10 + c - 'A';
187 return -1;
188}
189
190} // detail
191

Callers 1

parse_escapedMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected