Lines Matching refs:dot

128  * The locations of a single optional dot or indicator are stored
345 /* Print word x with n decimal digits to string s. dot is either NULL
347 #define EXTRACT_DIGIT(s, x, d, dot) \
348 if (s == dot) *s++ = '.'; *s++ = '0' + (char)(x / d); x %= d
350 word_to_string(char *s, mpd_uint_t x, int n, char *dot)
354 case 20: EXTRACT_DIGIT(s, x, 10000000000000000000ULL, dot); /* GCOV_NOT_REACHED */
355 case 19: EXTRACT_DIGIT(s, x, 1000000000000000000ULL, dot);
356 case 18: EXTRACT_DIGIT(s, x, 100000000000000000ULL, dot);
357 case 17: EXTRACT_DIGIT(s, x, 10000000000000000ULL, dot);
358 case 16: EXTRACT_DIGIT(s, x, 1000000000000000ULL, dot);
359 case 15: EXTRACT_DIGIT(s, x, 100000000000000ULL, dot);
360 case 14: EXTRACT_DIGIT(s, x, 10000000000000ULL, dot);
361 case 13: EXTRACT_DIGIT(s, x, 1000000000000ULL, dot);
362 case 12: EXTRACT_DIGIT(s, x, 100000000000ULL, dot);
363 case 11: EXTRACT_DIGIT(s, x, 10000000000ULL, dot);
365 case 10: EXTRACT_DIGIT(s, x, 1000000000UL, dot);
366 case 9: EXTRACT_DIGIT(s, x, 100000000UL, dot);
367 case 8: EXTRACT_DIGIT(s, x, 10000000UL, dot);
368 case 7: EXTRACT_DIGIT(s, x, 1000000UL, dot);
369 case 6: EXTRACT_DIGIT(s, x, 100000UL, dot);
370 case 5: EXTRACT_DIGIT(s, x, 10000UL, dot);
371 case 4: EXTRACT_DIGIT(s, x, 1000UL, dot);
372 case 3: EXTRACT_DIGIT(s, x, 100UL, dot);
373 case 2: EXTRACT_DIGIT(s, x, 10UL, dot);
374 default: if (s == dot) *s++ = '.'; *s++ = '0' + (char)x;
416 /* Print the coefficient of dec to string s. len(dec) > 0. dot is either
419 coeff_to_string_dot(char *s, char *dot, const mpd_t *dec)
426 s = word_to_string(s, x, mpd_word_digits(x), dot);
431 s = word_to_string(s, x, MPD_RDIGITS, dot);
777 n = strlen(spec->dot);
800 spec->dot = "";
859 spec->dot = ".";
893 spec->dot = lc->decimal_point;
990 const char *dot, /* location of optional decimal point */
1007 if (dot) {
1008 _mbstr_copy_char(dest, dot, (mpd_ssize_t)strlen(dot));
1095 const char *sign = NULL, *intpart = NULL, *dot = NULL;
1116 dp++; dot = spec->dot;
1122 if (dot == NULL && (*spec->sep == '\0' || *spec->grouping == '\0')) {
1131 _mpd_add_sep_dot(result, sign, intpart, n_int, dot,
1142 _mpd_add_sep_dot(result, sign, intpart, n_int, dot,
1372 if (*spec->dot != '\0' && !mpd_isspecial(dec)) {