MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / parseLong

Function parseLong

src/jrd/replication/Config.cpp:67–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65 const bool DEFAULT_REPORT_ERRORS = false;
66
67 void parseLong(const string& input, ULONG& output)
68 {
69 char* tail = nullptr;
70 auto number = strtol(input.c_str(), &tail, 10);
71 if (tail && *tail == 0 && number > 0)
72 output = (ULONG) number;
73 }
74
75 void parseBoolean(const string& input, bool& output)
76 {

Callers 2

getMethod · 0.70
enumerateMethod · 0.70

Calls 1

c_strMethod · 0.45

Tested by

no test coverage detected