Home
last modified time | relevance | path

Searched refs:locale (Results 1 – 25 of 28) sorted by relevance

12

/locale/programs/
A Dlocfile.h54 int locale, const char *locale_name,
138 extern void ctype_finish (struct localedef_t *locale,
140 extern void ctype_output (struct localedef_t *locale,
152 extern void collate_finish (struct localedef_t *locale,
154 extern void collate_output (struct localedef_t *locale,
200 extern void time_finish (struct localedef_t *locale,
202 extern void time_output (struct localedef_t *locale,
212 extern void paper_finish (struct localedef_t *locale,
214 extern void paper_output (struct localedef_t *locale,
224 extern void name_finish (struct localedef_t *locale,
[all …]
A Dld-measurement.c41 measurement_startup (struct linereader *lr, struct localedef_t *locale, in measurement_startup() argument
45 locale->categories[LC_MEASUREMENT].measurement = in measurement_startup()
58 measurement_finish (struct localedef_t *locale, in measurement_finish() argument
62 locale->categories[LC_MEASUREMENT].measurement; in measurement_finish()
70 if (locale->copy_name[LC_MEASUREMENT] != NULL) in measurement_finish()
74 struct localedef_t *from = locale; in measurement_finish()
83 measurement = locale->categories[LC_MEASUREMENT].measurement in measurement_finish()
93 measurement_startup (NULL, locale, 0); in measurement_finish()
94 measurement = locale->categories[LC_MEASUREMENT].measurement; in measurement_finish()
117 measurement_output (struct localedef_t *locale, in measurement_output() argument
[all …]
A Dld-paper.c42 paper_startup (struct linereader *lr, struct localedef_t *locale, in paper_startup() argument
46 locale->categories[LC_PAPER].paper = in paper_startup()
58 paper_finish (struct localedef_t *locale, const struct charmap_t *charmap) in paper_finish() argument
60 struct locale_paper_t *paper = locale->categories[LC_PAPER].paper; in paper_finish()
68 if (locale->copy_name[LC_PAPER] != NULL) in paper_finish()
72 struct localedef_t *from = locale; in paper_finish()
80 paper = locale->categories[LC_PAPER].paper in paper_finish()
90 paper_startup (NULL, locale, 0); in paper_finish()
91 paper = locale->categories[LC_PAPER].paper; in paper_finish()
117 paper_output (struct localedef_t *locale, const struct charmap_t *charmap, in paper_output() argument
[all …]
A Dld-name.c46 name_startup (struct linereader *lr, struct localedef_t *locale, in name_startup() argument
50 locale->categories[LC_NAME].name = in name_startup()
62 name_finish (struct localedef_t *locale, const struct charmap_t *charmap) in name_finish() argument
64 struct locale_name_t *name = locale->categories[LC_NAME].name; in name_finish()
72 if (locale->copy_name[LC_NAME] != NULL) in name_finish()
76 struct localedef_t *from = locale; in name_finish()
84 name = locale->categories[LC_NAME].name in name_finish()
94 name_startup (NULL, locale, 0); in name_finish()
95 name = locale->categories[LC_NAME].name; in name_finish()
153 name_output (struct localedef_t *locale, const struct charmap_t *charmap, in name_output() argument
[all …]
A Dld-telephone.c44 telephone_startup (struct linereader *lr, struct localedef_t *locale, in telephone_startup() argument
48 locale->categories[LC_TELEPHONE].telephone = (struct locale_telephone_t *) in telephone_startup()
60 telephone_finish (struct localedef_t *locale, const struct charmap_t *charmap) in telephone_finish() argument
63 locale->categories[LC_TELEPHONE].telephone; in telephone_finish()
71 if (locale->copy_name[LC_TELEPHONE] != NULL) in telephone_finish()
75 struct localedef_t *from = locale; in telephone_finish()
83 telephone = locale->categories[LC_TELEPHONE].telephone in telephone_finish()
93 telephone_startup (NULL, locale, 0); in telephone_finish()
94 telephone = locale->categories[LC_TELEPHONE].telephone; in telephone_finish()
170 telephone_output (struct localedef_t *locale, const struct charmap_t *charmap, in telephone_output() argument
[all …]
A Dld-messages.c47 messages_startup (struct linereader *lr, struct localedef_t *locale, in messages_startup() argument
51 locale->categories[LC_MESSAGES].messages = in messages_startup()
64 messages_finish (struct localedef_t *locale, const struct charmap_t *charmap) in messages_finish() argument
67 = locale->categories[LC_MESSAGES].messages; in messages_finish()
75 if (locale->copy_name[LC_MESSAGES] != NULL) in messages_finish()
79 struct localedef_t *from = locale; in messages_finish()
87 messages = locale->categories[LC_MESSAGES].messages in messages_finish()
97 messages_startup (NULL, locale, 0); in messages_finish()
98 messages = locale->categories[LC_MESSAGES].messages; in messages_finish()
178 messages_output (struct localedef_t *locale, const struct charmap_t *charmap, in messages_output() argument
[all …]
A Dld-numeric.c47 numeric_startup (struct linereader *lr, struct localedef_t *locale, in numeric_startup() argument
52 locale->categories[LC_NUMERIC].numeric = in numeric_startup()
66 numeric_finish (struct localedef_t *locale, const struct charmap_t *charmap) in numeric_finish() argument
68 struct locale_numeric_t *numeric = locale->categories[LC_NUMERIC].numeric; in numeric_finish()
76 if (locale->copy_name[LC_NUMERIC] != NULL) in numeric_finish()
80 struct localedef_t *from = locale; in numeric_finish()
88 numeric = locale->categories[LC_NUMERIC].numeric in numeric_finish()
98 numeric_startup (NULL, locale, 0); in numeric_finish()
99 numeric = locale->categories[LC_NUMERIC].numeric; in numeric_finish()
130 numeric_output (struct localedef_t *locale, const struct charmap_t *charmap, in numeric_output() argument
[all …]
A Dld-identification.c74 identification_startup (struct linereader *lr, struct localedef_t *locale, in identification_startup() argument
79 locale->categories[LC_IDENTIFICATION].identification = in identification_startup()
96 identification_finish (struct localedef_t *locale, in identification_finish() argument
100 = locale->categories[LC_IDENTIFICATION].identification; in identification_finish()
109 if (locale->copy_name[LC_IDENTIFICATION] != NULL) in identification_finish()
113 struct localedef_t *from = locale; in identification_finish()
122 identification = locale->categories[LC_IDENTIFICATION].identification in identification_finish()
132 identification_startup (NULL, locale, 0); in identification_finish()
134 = locale->categories[LC_IDENTIFICATION].identification; in identification_finish()
207 identification_output (struct localedef_t *locale, in identification_output() argument
[all …]
A Dld-address.c83 address_startup (struct linereader *lr, struct localedef_t *locale, in address_startup() argument
87 locale->categories[LC_ADDRESS].address = in address_startup()
100 address_finish (struct localedef_t *locale, const struct charmap_t *charmap) in address_finish() argument
102 struct locale_address_t *address = locale->categories[LC_ADDRESS].address; in address_finish()
112 if (locale->copy_name[LC_ADDRESS] != NULL) in address_finish()
116 struct localedef_t *from = locale; in address_finish()
124 address = locale->categories[LC_ADDRESS].address in address_finish()
134 address_startup (NULL, locale, 0); in address_finish()
135 address = locale->categories[LC_ADDRESS].address; in address_finish()
343 address_output (struct localedef_t *locale, const struct charmap_t *charmap, in address_output() argument
[all …]
A Dlinereader.c42 struct localedef_t *locale,
742 if (locale != NULL) in get_string()
749 int old_needed = locale->needed; in get_string()
751 locale->needed = 0; in get_string()
752 locale = load_locale (LC_CTYPE, in get_string()
753 locale->name, in get_string()
754 locale->repertoire_name, in get_string()
755 charmap, locale); in get_string()
756 locale->needed = old_needed; in get_string()
759 if ((locale->avail & CTYPE_LOCALE) != 0 in get_string()
[all …]
A Dlocaledef.h129 extern struct localedef_t *add_to_readlist (int locale, const char *name,
135 extern struct localedef_t *find_locale (int locale, const char *name,
140 extern struct localedef_t *load_locale (int locale, const char *name,
A Dld-monetary.c106 monetary_startup (struct linereader *lr, struct localedef_t *locale, in monetary_startup() argument
113 locale->categories[LC_MONETARY].monetary = monetary = in monetary_startup()
160 monetary_finish (struct localedef_t *locale, const struct charmap_t *charmap) in monetary_finish() argument
163 = locale->categories[LC_MONETARY].monetary; in monetary_finish()
171 if (locale->copy_name[LC_MONETARY] != NULL) in monetary_finish()
175 struct localedef_t *from = locale; in monetary_finish()
183 monetary = locale->categories[LC_MONETARY].monetary in monetary_finish()
193 monetary_startup (NULL, locale, 0); in monetary_finish()
194 monetary = locale->categories[LC_MONETARY].monetary; in monetary_finish()
369 monetary_output (struct localedef_t *locale, const struct charmap_t *charmap, in monetary_output() argument
[all …]
A Dld-time.c117 time_startup (struct linereader *lr, struct localedef_t *locale, in time_startup() argument
121 locale->categories[LC_TIME].time = in time_startup()
133 time_finish (struct localedef_t *locale, const struct charmap_t *charmap) in time_finish() argument
135 struct locale_time_t *time = locale->categories[LC_TIME].time; in time_finish()
143 if (locale->copy_name[LC_TIME] != NULL) in time_finish()
147 struct localedef_t *from = locale; in time_finish()
155 time = locale->categories[LC_TIME].time in time_finish()
165 time_startup (NULL, locale, 0); in time_finish()
166 time = locale->categories[LC_TIME].time; in time_finish()
534 time_output (struct localedef_t *locale, const struct charmap_t *charmap, in time_output() argument
[all …]
A Dlinereader.h92 struct localedef_t *locale,
A Dld-ctype.c289 ctype_startup (struct linereader *lr, struct localedef_t *locale, in ctype_startup() argument
296 if (!ignore_content && locale->categories[LC_CTYPE].ctype == NULL) in ctype_startup()
301 locale->categories[LC_CTYPE].ctype = ctype = in ctype_startup()
358 ctype = locale->categories[LC_CTYPE].ctype = in ctype_startup()
409 if (locale->copy_name[LC_CTYPE] != NULL) in ctype_finish()
413 struct localedef_t *from = locale; in ctype_finish()
421 ctype = locale->categories[LC_CTYPE].ctype in ctype_finish()
431 ctype_startup (NULL, locale, charmap, NULL, 0); in ctype_finish()
432 ctype = locale->categories[LC_CTYPE].ctype; in ctype_finish()
1754 assert (locale != NULL); in find_translit()
[all …]
A Dlocfile-token.h253 int locale; member
/locale/
A DMakefile21 subdir := locale
25 headers = langinfo.h locale.h bits/locale.h \
30 tests = tst-C-locale tst-locname tst-duplocale
35 xlocale localename global-locale coll-lookup
36 others = localedef locale
38 install-bin = localedef locale
40 $(locale-modules:=.o) $(lib-modules:=.o)
58 locale-modules := locale locale-spec
81 $(objpfx)locale: $(locale-modules:%=$(objpfx)%.o)
113 lib := locale-programs
[all …]
A Dtst-locale-locpath.sh38 ${run_program_env} LANG= LC_ALL=invalid-locale LOCPATH=does-not-exist \
49 ${common_objpfx}locale/locale: Cannot set LC_CTYPE to default locale: No such file or directory
50 ${common_objpfx}locale/locale: Cannot set LC_MESSAGES to default locale: No such file or directory
51 ${common_objpfx}locale/locale: Cannot set LC_ALL to default locale: No such file or directory
69 LC_ALL=invalid-locale
A Dloadlocale.c285 _nl_unload_locale (struct __locale_data *locale) in _nl_unload_locale() argument
287 if (locale->private.cleanup) in _nl_unload_locale()
288 (*locale->private.cleanup) (locale); in _nl_unload_locale()
290 switch (__builtin_expect (locale->alloc, ld_mapped)) in _nl_unload_locale()
293 free ((void *) locale->filedata); in _nl_unload_locale()
297 __munmap ((caddr_t) locale->filedata, locale->filesize); in _nl_unload_locale()
304 if (__builtin_expect (locale->alloc, ld_mapped) != ld_archive) in _nl_unload_locale()
305 free ((char *) locale->name); in _nl_unload_locale()
307 free (locale); in _nl_unload_locale()
A Dnewlocale.c42 __newlocale (int category_mask, const char *locale, locale_t base)
63 if (locale == NULL)
73 && (category_mask == 0 || !strcmp (locale, "C")))
120 newnames[cnt] = locale;
121 if (strchr (locale, ';') != NULL)
124 char *np = strdupa (locale);
A Dsetlocale.c217 setlocale (int category, const char *locale) in setlocale() argument
230 if (locale == NULL) in setlocale()
236 if (strcmp (locale, _nl_global_locale.__names[category]) == 0) in setlocale()
279 newnames[category] = (char *) locale; in setlocale()
281 if (__glibc_unlikely (strchr (locale, ';') != NULL)) in setlocale()
284 locale_copy = __strdup (locale); in setlocale()
328 if (cnt != LC_ALL && newnames[cnt] == locale) in setlocale()
409 const char *newname[1] = { locale }; in setlocale()
A DVersions25 # functions from the experimental locale implementation
43 # more functions from the experimental locale implementation
46 # missing function from the experimental locale implementation
A Dlocaleinfo.h352 extern void _nl_unload_locale (struct __locale_data *locale) attribute_hidden;
355 extern void _nl_remove_locale (int locale, struct __locale_data *data)
A Dfindlocale.c330 _nl_remove_locale (int locale, struct __locale_data *data) in _nl_remove_locale() argument
337 struct loaded_l10nfile *ptr = _nl_locale_file_list[locale]; in _nl_remove_locale()
A Dcategories.def1 /* Definition of all available locale categories and their items. -*- C -*-
19 /* These definitions are used by the locale-related files in the C library
20 and the programs `localedef' and `locale'.
35 locale definitions. `min' and `max' can be individually used again. */

Completed in 50 milliseconds

12