Lines Matching defs:locale

29  * $FreeBSD: stable/10/lib/libc/locale/xlocale_private.h 309485 2016-12-03 17:17:42Z ngie $
36 #include <locale.h>
72 * Header for a locale component. All locale components must begin with this
77 /** Name of the locale used for this component. */
78 char locale[ENCODING_LEN+1];
82 * xlocale structure, stores per-thread locale information.
86 /** Components for the locale. */
89 * last call to localeconv_l() with this locale. */
91 /** Flag indicating whether this locale is actually using a locale for
95 * last call to localeconv_l() with this locale. */
97 /** Flag indicating whether this locale is actually using a locale for
100 /** Flag indicating whether this locale is actually using a locale for
103 /** Flag indicating whether this locale is actually using a locale for
106 /** The structure to be returned from localeconv_l() for this locale. */
166 * Load functions. Each takes the name of a locale and a pointer to the data
184 * Flag indicating whether a per-thread locale has been set. If no per-thread
185 * locale has ever been set, then we always use the global locale.
190 * The per-thread locale. Avoids the need to use pthread lookup functions when
191 * getting the per-thread locale.
196 * Returns the current locale for this thread, or the global locale if none is
197 * set. The caller does not have to free the locale. The return value from
198 * this call is not guaranteed to remain valid after the locale changes. As
217 static inline locale_t get_real_locale(locale_t locale)
219 switch ((intptr_t)locale) {
222 default: return (locale);
227 * Replace a placeholder locale with the real global or thread-local locale_t.