Home
last modified time | relevance | path

Searched refs:decimal_point (Results 1 – 7 of 7) sorted by relevance

/coreutils/gl/lib/
Dstrnumcmp-in.h74 fraccompare (char const *a, char const *b, char decimal_point) in fraccompare() argument
76 if (*a == decimal_point && *b == decimal_point) in fraccompare()
89 else if (*a++ == decimal_point) in fraccompare()
96 else if (*b++ == decimal_point) in fraccompare()
115 int decimal_point, int thousands_sep) in numcompare() argument
130 if (tmpa == decimal_point) in numcompare()
138 if (tmpb == decimal_point) in numcompare()
158 if ((tmpa == decimal_point && !ISDIGIT (tmpb)) in numcompare()
159 || (tmpb == decimal_point && !ISDIGIT (tmpa))) in numcompare()
160 return fraccompare (b, a, decimal_point); in numcompare()
[all …]
Dstrnumcmp.c28 int decimal_point, int thousands_sep) in strnumcmp() argument
30 return numcompare (a, b, decimal_point, thousands_sep); in strnumcmp()
/coreutils/src/
Dseq.c173 char const *decimal_point = strchr (arg, '.'); in scan_arg() local
174 if (! decimal_point && ! strchr (arg, 'p') /* not a hex float */) in scan_arg()
183 if (decimal_point) in scan_arg()
185 fraction_len = strcspn (decimal_point + 1, "eE"); in scan_arg()
190 : (decimal_point == arg /* .# -> 0.# */ in scan_arg()
191 || ! ISDIGIT (decimal_point[-1]))); /* -.# -> 0.# */ in scan_arg()
206 if (decimal_point) in scan_arg()
208 if (e == decimal_point + 1) /* undo #. -> # above */ in scan_arg()
217 if (decimal_point && ret.precision == 0 && fraction_len) in scan_arg()
Dnumfmt.c206 static char const *decimal_point; variable
517 && ! STREQ_LEN (*endptr, decimal_point, decimal_point_length)) in simple_strtod_int()
560 if (STREQ_LEN (*endptr, decimal_point, decimal_point_length)) in simple_strtod_float()
631 quote_n (1, decimal_point), in simple_strtod_human()
1451 decimal_point = nl_langinfo (RADIXCHAR); in main()
1452 if (decimal_point == nullptr || strlen (decimal_point) == 0) in main()
1453 decimal_point = "."; in main()
1454 decimal_point_length = strlen (decimal_point); in main()
Dstat.c243 static char const *decimal_point; variable
826 printf ("%s%.*d%-*.*d", decimal_point, prec, frac_sec, in out_epoch_sec()
1894 decimal_point = (locale->decimal_point[0] ? locale->decimal_point : "."); in main()
1895 decimal_point_len = strlen (decimal_point); in main()
Dsort.c153 static char decimal_point; variable
1944 if (ch == decimal_point) in traverse_raw_number()
1988 return (diff ? diff : strnumcmp (a, b, decimal_point, thousands_sep)); in human_numcompare()
2004 return strnumcmp (a, b, decimal_point, thousands_sep); in numcompare()
2540 ? thousands_sep != NON_CHAR && (isblank (to_uchar (decimal_point))) in key_warnings()
2541 : tab == decimal_point) in key_warnings()
2546 quote (((char []) {decimal_point, 0}))); in key_warnings()
2572 tab == decimal_point ? "" : _("note "), in key_warnings()
2573 quote (((char []) {decimal_point, 0}))); in key_warnings()
4314 decimal_point = locale->decimal_point[0]; in main()
[all …]
Dod.c823 (locale->decimal_point[0] ? strlen (locale->decimal_point) : 1); in ATTRIBUTE_NONNULL()