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

Function parseNumber

src/common/TimeZoneUtil.cpp:1177–1189  ·  view source on GitHub ↗

Parses a integer number.

Source from the content-addressed store, hash-verified

1175
1176// Parses a integer number.
1177static int parseNumber(const char*& p, const char* end)
1178{
1179 const char* start = p;
1180 int n = 0;
1181
1182 while (p < end && *p >= '0' && *p <= '9')
1183 n = n * 10 + *p++ - '0';
1184
1185 if (p == start)
1186 return -1;
1187
1188 return n;
1189}
1190
1191// Skip spaces and tabs.
1192static void skipSpaces(const char*& p, const char* end)

Callers 1

parseMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected