MCPcopy Create free account
hub / github.com/apache/cloudberry / integer_digits

Function integer_digits

src/fe_utils/print.c:207–215  ·  view source on GitHub ↗

Count number of digits in integral part of number */

Source from the content-addressed store, hash-verified

205
206/* Count number of digits in integral part of number */
207static int
208integer_digits(const char *my_str)
209{
210 /* ignoring any sign ... */
211 if (my_str[0] == '-' || my_str[0] == '+')
212 my_str++;
213 /* ... count initial integral digits */
214 return strspn(my_str, "0123456789");
215}
216
217/* Compute additional length required for locale-aware numeric output */
218static int

Callers 2

format_numeric_localeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected