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

Method decodeNumber

Utilities/cmjsoncpp/src/lib_json/json_reader.cpp:525–533  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

523}
524
525bool Reader::decodeNumber(Token& token) {
526 Value decoded;
527 if (!decodeNumber(token, decoded))
528 return false;
529 currentValue().swapPayload(decoded);
530 currentValue().setOffsetStart(token.start_ - begin_);
531 currentValue().setOffsetLimit(token.end_ - begin_);
532 return true;
533}
534
535bool Reader::decodeNumber(Token& token, Value& decoded) {
536 // Attempts to parse the number as an integer. If the number is

Callers

nothing calls this directly

Calls 4

UIntFunction · 0.85
swapPayloadMethod · 0.80
setOffsetStartMethod · 0.80
setOffsetLimitMethod · 0.80

Tested by

no test coverage detected