MCPcopy Create free account
hub / github.com/catboost/catboost / ReadNum

Function ReadNum

tools/fix_elf/patch.cpp:52–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50using namespace NElf;
51
52void ReadNum(TStringBuf& src, TStringBuf& dst) {
53 const char* c = src.data();
54 while (isdigit(*c)) {
55 ++c;
56 }
57 size_t len = c - src.data();
58
59 dst = TStringBuf(src.data(), len);
60 src.Skip(len);
61}
62
63int NumericStrCmp(TStringBuf s1, TStringBuf s2) {
64 while (!s1.empty() || !s2.empty()) {

Callers 1

NumericStrCmpFunction · 0.85

Calls 2

dataMethod · 0.45
SkipMethod · 0.45

Tested by

no test coverage detected