Lines Matching defs:category
71 * Current locales for each category
101 setlocale(int category, const char *locale)
106 if (category < LC_ALL || category >= _LC_LAST) {
112 return (category != LC_ALL ?
113 current_categories[category] : currentlocale());
125 if (category == LC_ALL) {
135 env = __get_locale_env(category);
140 (void)strcpy(new_categories[category], env);
142 } else if (category != LC_ALL) {
147 (void)strcpy(new_categories[category], locale);
187 if (category != LC_ALL)
188 return (loadlocale(category));
229 loadlocale(int category)
231 char *new = new_categories[category];
232 char *old = current_categories[category];
249 switch (category) {
278 (void)strcpy(__xlocale_global_locale.components[category-1]->locale, new);
286 __get_locale_env(int category)
295 env = getenv(categories[category]);