Lines Matching refs:locale
29 * $FreeBSD: releng/10.2/lib/libc/locale/xlocale.c 284524 2015-06-17 19:12:18Z delphij $
40 * Each locale loader declares a global component. This is used by setlocale()
50 * And another version for the statically-allocated C locale. We only have
58 * The locale for this thread.
127 /* At least one per-thread locale has now been set. */
180 * Clean up a locale, once its reference count reaches zero. This function is
200 * Allocates a new, uninitialised, locale.
223 /* Always copy from the global locale, since it has mutable components.
228 new->components[type] = constructors[type](src->locale, new);
230 strncpy(new->components[type]->locale, src->locale,
237 * valid locale then the flag indicating that this isn't
238 * present should be set. If it isn't a valid locale, then
250 locale_t newlocale(int mask, const char *locale, locale_t base)
253 const char *realLocale = locale;
267 if (NULL == locale) {
269 } else if ('\0' == locale[0]) {
281 strncpy(new->components[type]->locale,
331 /* Fail if we're passed something that isn't a locale. */
335 /* If we're passed the global locale, pretend that we freed it but don't
345 * Returns the name of the locale for a particular component of a locale_t.
354 return (loc->components[type]->locale);
359 * Installs the specified locale_t as this thread's locale.