MCPcopy Create free account
hub / github.com/Kitware/CMake / IntFromHexDigit

Method IntFromHexDigit

Source/cmUuid.cxx:153–168  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151}
152
153bool cmUuid::IntFromHexDigit(char input, char& output) const
154{
155 if (input >= '0' && input <= '9') {
156 output = static_cast<char>(input - '0');
157 return true;
158 }
159 if (input >= 'a' && input <= 'f') {
160 output = static_cast<char>(input - 'a' + 0xA);
161 return true;
162 }
163 if (input >= 'A' && input <= 'F') {
164 output = static_cast<char>(input - 'A' + 0xA);
165 return true;
166 }
167 return false;
168}

Callers 1

StringToBinaryImplMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected