Lines Matching defs:locale

53 #include <locale.h>
79 wchar_t thousands_sep; /* locale-specific thousands separator */
80 const char *grouping; /* locale-specific numeric grouping rules */
89 get_decpt(locale_t locale)
96 nconv = mbrtowc(&decpt, localeconv_l(locale)->decimal_point, MB_CUR_MAX, &mbs);
103 get_thousep(locale_t locale)
110 nconv = mbrtowc(&thousep, localeconv_l(locale)->thousands_sep,
123 grouping_init(struct grouping_state *gs, int ndigits, locale_t locale)
126 gs->grouping = localeconv_l(locale)->grouping;
127 gs->thousands_sep = get_thousep(locale);
149 const CHAR *cp, const CHAR *ep, locale_t locale)
153 if (io_printandpad(iop, cp, ep, gs->lead, zeroes, locale))
163 if (io_print(iop, &gs->thousands_sep, 1, locale))
165 if (io_printandpad(iop, cp, ep, *gs->grouping, zeroes, locale))
184 __sprint(FILE *fp, struct __suio *uio, locale_t locale)
195 if (__xfputwc(p[i], fp, locale) == WEOF)
209 __sbprintf(FILE *fp, locale_t locale, const wchar_t *fmt, va_list ap)
233 ret = __vfwprintf(&fake, locale, fmt, ap);
246 __xfputwc(wchar_t wc, FILE *fp, locale_t locale)
255 return (__fputwc(wc, fp, locale));
347 vfwprintf_l(FILE * __restrict fp, locale_t locale,
352 FIX_LOCALE(locale);
357 ret = __sbprintf(fp, locale, fmt0, ap);
359 ret = __vfwprintf(fp, locale, fmt0, ap);
380 __vfwprintf(FILE *fp, locale_t locale, const wchar_t *fmt0, va_list ap)
407 wchar_t decimal_point; /* locale specific decimal point */
444 if (io_print(&io, (ptr), (len), locale)) \
448 if (io_pad(&io, (howmany), (with), locale)) \
452 if (io_printandpad(&io, (p), (ep), (len), (with), locale)) \
456 if (io_flush(&io, locale)) \
541 decimal_point = get_decpt(locale);
885 size += grouping_init(&gs, expt, locale);
1024 size += grouping_init(&gs, size, locale);
1089 if (grouping_print(&gs, &io, cp, buf+BUF, locale) < 0)
1107 cp, convbuf + ndig, locale);