Lines Matching defs:locale
42 * Each locale loader declares a global component. This is used by setlocale()
52 * And another version for the statically-allocated C locale. We only have
59 * The locale for this thread.
128 /* At least one per-thread locale has now been set. */
169 * Clean up a locale, once its reference count reaches zero. This function is
189 * Allocates a new, uninitialised, locale.
212 /* Always copy from the global locale, since it has mutable components.
217 new->components[type] = constructors[type](src->locale, new);
219 strncpy(new->components[type]->locale, src->locale,
228 * valid locale then the flag indicating that this isn't
229 * present should be set. If it isn't a valid locale, then
241 locale_t newlocale(int mask, const char *locale, locale_t base)
245 const char *realLocale = locale;
260 if (NULL == locale) {
262 } else if ('\0' == locale[0]) {
274 strncpy(new->components[type]->locale,
328 * Fail if we're passed something that isn't a locale. If we're
329 * passed the global locale, pretend that we freed it but don't
338 * Returns the name or version of the locale for a particular component of a
353 return (loc->components[type]->locale);
359 * Installs the specified locale_t as this thread's locale.