MCPcopy Create free account
hub / github.com/arvidn/libtorrent / numeric

Function numeric

src/bdecode.cpp:60–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58 static_assert(int('9') == 57, "this code relies on ASCII compatible source encoding");
59
60 bool numeric(char c) { return c >= '0' && c <= '9'; }
61
62 // finds the end of an integer and verifies that it looks valid this does
63 // not detect all overflows, just the ones that are an order of magnitude

Callers 3

check_integerFunction · 0.85
parse_intFunction · 0.85
bdecodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected