Lines Matching defs:locale

59 #include <locale.h>
85 wchar_t thousands_sep; /* locale-specific thousands separator */
86 const char *grouping; /* locale-specific numeric grouping rules */
95 get_decpt(locale_t locale)
102 nconv = mbrtowc(&decpt, localeconv_l(locale)->decimal_point, MB_CUR_MAX, &mbs);
109 get_thousep(locale_t locale)
116 nconv = mbrtowc(&thousep, localeconv_l(locale)->thousands_sep,
129 grouping_init(struct grouping_state *gs, int ndigits, locale_t locale)
132 gs->grouping = localeconv_l(locale)->grouping;
133 gs->thousands_sep = get_thousep(locale);
155 const CHAR *cp, const CHAR *ep, locale_t locale)
159 if (io_printandpad(iop, cp, ep, gs->lead, zeroes, locale))
169 if (io_print(iop, &gs->thousands_sep, 1, locale))
171 if (io_printandpad(iop, cp, ep, *gs->grouping, zeroes, locale))
190 __sprint(FILE *fp, struct __suio *uio, locale_t locale)
201 if (__xfputwc(p[i], fp, locale) == WEOF)
215 __sbprintf(FILE *fp, locale_t locale, const wchar_t *fmt, va_list ap)
239 ret = __vfwprintf(&fake, locale, fmt, ap);
252 __xfputwc(wchar_t wc, FILE *fp, locale_t locale)
261 return (__fputwc(wc, fp, locale));
353 vfwprintf_l(FILE * __restrict fp, locale_t locale,
358 FIX_LOCALE(locale);
363 ret = __sbprintf(fp, locale, fmt0, ap);
365 ret = __vfwprintf(fp, locale, fmt0, ap);
390 __vfwprintf(FILE *fp, locale_t locale, const wchar_t *fmt0, va_list ap)
417 wchar_t decimal_point; /* locale specific decimal point */
453 if (io_print(&io, (ptr), (len), locale)) \
457 if (io_pad(&io, (howmany), (with), locale)) \
461 if (io_printandpad(&io, (p), (ep), (len), (with), locale)) \
465 if (io_flush(&io, locale)) \
545 decimal_point = get_decpt(locale);
833 size += grouping_init(&gs, expt, locale);
972 size += grouping_init(&gs, size, locale);
1036 if (grouping_print(&gs, &io, cp, buf+BUF, locale) < 0)
1054 cp, convbuf + ndig, locale);