MCPcopy Create free account
hub / github.com/alibaba/PhotonLibOS / extract_integer

Method extract_integer

net/http/parser.h:60–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58 _ptr += pos;
59 }
60 uint64_t extract_integer()
61 {
62 auto esv = estring_view(_ptr, _end - _ptr);
63 auto ret = esv.to_uint64();
64 auto pos = esv.find_first_not_of(charset("0123456789"));
65 if (pos == esv.npos) _ptr = _end; else _ptr += pos;
66 return ret;
67 }
68 rstring_view16 extract_until_char(char c)
69 {
70 auto esv = estring_view(_ptr, _end - _ptr);

Callers 1

parse_status_lineMethod · 0.80

Calls 4

find_first_not_ofMethod · 0.80
estring_viewClass · 0.50
charsetClass · 0.50
to_uint64Method · 0.45

Tested by

no test coverage detected