Home
last modified time | relevance | path

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

12345678910>>...28

/freebsd-13.1/contrib/file/magic/Magdir/
H A Dglibc4 # glibc locale files
8 0 belong 0x20070920 glibc locale file LC_CTYPE
9 0 belong 0x14110320 glibc locale file LC_NUMERIC
10 0 belong 0x17110320 glibc locale file LC_TIME
11 0 belong 0x17100520 glibc locale file LC_COLLATE
12 0 belong 0x11110320 glibc locale file LC_MONETARY
13 0 belong 0x10110320 glibc locale file LC_MESSAGES
14 0 belong 0x13110320 glibc locale file LC_ALL
15 0 belong 0x12110320 glibc locale file LC_PAPER
16 0 belong 0x1d110320 glibc locale file LC_NAME
[all …]
H A Dcitrus4 # citrus locale declaration
7 0 string RuneCT Citrus locale declaration for LC_CTYPE
8 0 string CtrsME Citrus locale declaration for LC_MESSAGES
9 0 string CtrsMO Citrus locale declaration for LC_MONETARY
10 0 string CtrsNU Citrus locale declaration for LC_NUMERIC
11 0 string CtrsTI Citrus locale declaration for LC_TIME
/freebsd-13.1/lib/libc/stdtime/
H A Dstrptime.c89 locale_t locale) in _strptime() argument
114 if (isspace_l((unsigned char)c, locale)) in _strptime()
141 if (!isdigit_l((unsigned char)*buf, locale)) in _strptime()
244 isspace_l((unsigned char)*buf, locale)) in _strptime()
340 len, locale) == 0) in _strptime()
344 len, locale) == 0) in _strptime()
407 isspace_l((unsigned char)*buf, locale)) in _strptime()
447 len, locale) == 0) in _strptime()
453 len, locale) == 0) in _strptime()
465 len, locale) == 0) in _strptime()
[all …]
/freebsd-13.1/lib/libc/string/
H A Dstrcasecmp.c48 strcasecmp_l(const char *s1, const char *s2, locale_t locale) in strcasecmp_l() argument
53 FIX_LOCALE(locale); in strcasecmp_l()
55 while (tolower_l(*us1, locale) == tolower_l(*us2++, locale)) in strcasecmp_l()
58 return (tolower_l(*us1, locale) - tolower_l(*--us2, locale)); in strcasecmp_l()
67 strncasecmp_l(const char *s1, const char *s2, size_t n, locale_t locale) in strncasecmp_l() argument
69 FIX_LOCALE(locale); in strncasecmp_l()
76 if (tolower_l(*us1, locale) != tolower_l(*us2++, locale)) in strncasecmp_l()
77 return (tolower_l(*us1, locale) - tolower_l(*--us2, locale)); in strncasecmp_l()
H A Dstrcasestr.c51 strcasestr_l(const char *s, const char *find, locale_t locale) in strcasestr_l() argument
55 FIX_LOCALE(locale); in strcasestr_l()
58 c = tolower_l((unsigned char)c, locale); in strcasestr_l()
64 } while ((char)tolower_l((unsigned char)sc, locale) != c); in strcasestr_l()
65 } while (strncasecmp_l(s, find, len, locale) != 0); in strcasestr_l()
H A Dstrcoll.c53 strcoll_l(const char *s, const char *s2, locale_t locale) in strcoll_l() argument
75 FIX_LOCALE(locale); in strcoll_l()
77 (struct xlocale_collate*)locale->components[XLC_COLLATE]; in strcoll_l()
97 if ((mbsrtowcs_l(w1, &cs1, sz1, &mbs1, locale)) == (size_t)-1) in strcoll_l()
100 if ((mbsrtowcs_l(w2, &cs2, sz2, &mbs2, locale)) == (size_t)-1) in strcoll_l()
103 ret = wcscoll_l(w1, w2, locale); in strcoll_l()
/freebsd-13.1/lib/libc/stdio/
H A Dvfwscanf.c185 locale_t locale) in convert_ccl() argument
213 locale_t locale) in convert_wccl() argument
303 locale_t locale) in parseint() argument
313 c = __fgetwc(fp, locale); in parseint()
429 FIX_LOCALE(locale); in vfwscanf_l()
671 locale); in __vfwscanf()
674 locale); in __vfwscanf()
687 &ccl, locale); in __vfwscanf()
690 &ccl, locale); in __vfwscanf()
706 width, locale); in __vfwscanf()
[all …]
H A Dvfwprintf.c97 get_decpt(locale_t locale) in get_decpt() argument
111 get_thousep(locale_t locale) in get_thousep() argument
135 gs->thousands_sep = get_thousep(locale); in grouping_init()
203 if (__xfputwc(p[i], fp, locale) == WEOF) in __sprint()
263 return (__fputwc(wc, fp, locale)); in __xfputwc()
360 FIX_LOCALE(locale); in vfwprintf_l()
365 ret = __sbprintf(fp, locale, fmt0, ap); in vfwprintf_l()
367 ret = __vfwprintf(fp, locale, fmt0, ap); in vfwprintf_l()
468 if (io_flush(&io, locale)) \ in __vfwprintf()
553 decimal_point = get_decpt(locale); in __vfwprintf()
[all …]
H A Dprintfcommon.h89 io_print(struct io_state *iop, const CHAR * __restrict ptr, int len, locale_t locale) in io_print() argument
96 return (__sprint(iop->fp, &iop->uio, locale)); in io_print()
118 locale_t locale) in io_pad() argument
124 if (io_print(iop, with, n, locale)) in io_pad()
137 int len, const CHAR * __restrict with, locale_t locale) in io_printandpad() argument
145 if (io_print(iop, p, p_len, locale)) in io_printandpad()
150 return (io_pad(iop, len - p_len, with, locale)); in io_printandpad()
154 io_flush(struct io_state *iop, locale_t locale) in io_flush() argument
157 return (__sprint(iop->fp, &iop->uio, locale)); in io_flush()
/freebsd-13.1/lib/libc/locale/
H A DDESIGN.xlocale10 - Locale-aware functions taking an explicit locale argument (Darwin)
19 locale code. A lot of the existing locale code originates with 4BSD or earlier
25 called without a locale. This approach was taken, rather than adding _l
27 global-locale versions to slip in.
45 `setinvalidrune()` function that can modify the rune locale.
57 All locales and locale components are reference counted. The global locale,
59 malloc() memory is required when using a single locale.
61 This means that threads using the global locale are subject to the same
63 in threads using the global locale, while modifying the global locale, have
67 global locale, rather than alias them.
[all …]
H A Dsetlocale.c103 setlocale(int category, const char *locale) in setlocale() argument
112 if (locale == NULL) in setlocale()
125 if (!*locale) { in setlocale()
144 if (strlen(locale) > ENCODING_LEN) { in setlocale()
150 if ((r = strchr(locale, '/')) == NULL) { in setlocale()
151 if (strlen(locale) > ENCODING_LEN) { in setlocale()
156 (void)strcpy(new_categories[i], locale); in setlocale()
167 if ((len = r - locale) > ENCODING_LEN) { in setlocale()
171 (void)strlcpy(new_categories[i], locale, in setlocale()
176 locale = r; in setlocale()
[all …]
H A Drunetype.c50 ___runetype_l(__ct_rune_t c, locale_t locale) in ___runetype_l() argument
53 FIX_LOCALE(locale); in ___runetype_l()
54 _RuneRange *rr = &(XLOCALE_CTYPE(locale)->runes->__runetype_ext); in ___runetype_l()
87 int ___mb_cur_max_l(locale_t locale) in ___mb_cur_max_l() argument
89 FIX_LOCALE(locale); in ___mb_cur_max_l()
90 return XLOCALE_CTYPE(locale)->__mb_cur_max; in ___mb_cur_max_l()
H A Dwcstod.c53 locale_t locale) in wcstod_l() argument
62 FIX_LOCALE(locale); in wcstod_l()
66 while (iswspace_l(*wcp, locale)) { in wcstod_l()
82 if ((len = wcsrtombs_l(NULL, &wcp, 0, &mbs, locale)) == (size_t)-1) { in wcstod_l()
93 wcsrtombs_l(buf, &wcp, len + 1, &mbs, locale); in wcstod_l()
96 val = strtod_l(buf, &end, locale); in wcstod_l()
H A Dwcstof.c47 locale_t locale) in wcstof_l() argument
56 FIX_LOCALE(locale); in wcstof_l()
60 while (iswspace_l(*wcp, locale)) { in wcstof_l()
66 if ((len = wcsrtombs_l(NULL, &wcp, 0, &mbs, locale)) == (size_t)-1) { in wcstof_l()
77 wcsrtombs_l(buf, &wcp, len + 1, &mbs, locale); in wcstof_l()
79 val = strtof_l(buf, &end, locale); in wcstof_l()
H A Dwcstold.c47 locale_t locale) in wcstold_l() argument
56 FIX_LOCALE(locale); in wcstold_l()
60 while (iswspace_l(*wcp, locale)) { in wcstold_l()
66 if ((len = wcsrtombs_l(NULL, &wcp, 0, &mbs, locale)) == (size_t)-1) { in wcstold_l()
77 wcsrtombs_l(buf, &wcp, len + 1, &mbs, locale); in wcstold_l()
79 val = strtold_l(buf, &end, locale); in wcstold_l()
H A Dwctomb.c42 wctomb_l(char *s, wchar_t wchar, locale_t locale) in wctomb_l() argument
46 FIX_LOCALE(locale); in wctomb_l()
50 XLOCALE_CTYPE(locale)->wctomb = initial; in wctomb_l()
53 if ((rval = XLOCALE_CTYPE(locale)->__wcrtomb(s, wchar, in wctomb_l()
54 &(XLOCALE_CTYPE(locale)->wctomb))) == (size_t)-1) in wctomb_l()
H A Dmblen.c42 mblen_l(const char *s, size_t n, locale_t locale) in mblen_l() argument
46 FIX_LOCALE(locale); in mblen_l()
50 XLOCALE_CTYPE(locale)->mblen = initial; in mblen_l()
53 rval = XLOCALE_CTYPE(locale)->__mbrtowc(NULL, s, n, in mblen_l()
54 &(XLOCALE_CTYPE(locale)->mblen)); in mblen_l()
/freebsd-13.1/contrib/llvm-project/libcxx/src/
H A Dios.cpp120 locale
124 locale& loc_storage = *reinterpret_cast<locale*>(&__loc_); in imbue()
131 locale
134 const locale& loc_storage = *reinterpret_cast<const locale*>(&__loc_); in getloc()
236 locale& loc_storage = *reinterpret_cast<locale*>(&__loc_); in ~ios_base()
237 loc_storage.~locale(); in ~ios_base()
321 locale& lhs_loc = *reinterpret_cast<locale*>(&__loc_); in copyfmt()
322 const locale& rhs_loc = *reinterpret_cast<const locale*>(&rhs.__loc_); in copyfmt()
365 locale& rhs_loc = *reinterpret_cast<locale*>(&rhs.__loc_); in move()
397 locale& lhs_loc = *reinterpret_cast<locale*>(&__loc_); in swap()
[all …]
/freebsd-13.1/contrib/diff/lib/
H A Dhard-locale.c50 char *locale = malloc (strlen (p) + 1); in hard_locale()
51 if (locale) in hard_locale()
53 strcpy (locale, p); in hard_locale()
59 && strcmp (p, locale) == 0) in hard_locale()
61 && strcmp (p, locale) == 0)) in hard_locale()
65 setlocale (category, locale); in hard_locale()
66 free (locale); in hard_locale()
/freebsd-13.1/usr.bin/locale/tests/
H A Dlocale_test.sh41 locale -k \
66 locale -k \
73 locale -k \
91 locale -k \
108 locale \
133 locale \
140 locale \
158 locale \
174 atf_check -s exit:1 -o empty -e ignore locale -k nonexistent
/freebsd-13.1/contrib/bc/scripts/
H A Dlocale_install.sh215 locales=$(locale -a)
217 locales=$(locale -m)
223 locale=$(basename "$file" ".msg")
230 localeexists "$locales" "$locale" "$destdir"
244 loc=$(gen_nlspath "$destdir/$nlspath" "$locale" "$main_exec")
256 locale=$(basename "$file" ".msg")
261 localeexists "$locales" "$locale" "$destdir"
270 loc=$(gen_nlspath "$destdir/$nlspath" "$locale" "$main_exec")
283 locale=$(basename "$link" .msg)
284 linksrc=$(gen_nlspath "$nlspath" "$locale" "$main_exec")
/freebsd-13.1/contrib/llvm-project/libcxx/include/
H A D__locale146 locale(const locale&) _NOEXCEPT;
149 locale(const locale&, const char*, category);
150 locale(const locale&, const string&, category);
153 locale(const locale&, const locale&, category);
155 ~locale();
157 const locale& operator=(const locale&) _NOEXCEPT;
161 locale combine(const locale&) const;
173 static locale global(const locale&);
226 locale::locale(const locale& __other, _Facet* __f)
232 locale
[all …]
/freebsd-13.1/tools/build/mk/
H A DOptionalObsoleteFiles.inc4147 OLD_FILES+=usr/include/c++/v1/locale
4148 OLD_FILES+=usr/include/c++/v1/locale.h
4238 OLD_DIRS+=usr/share/locale/af_ZA.UTF-8
4245 OLD_DIRS+=usr/share/locale/am_ET.UTF-8
4252 OLD_DIRS+=usr/share/locale/ar_AE.UTF-8
4259 OLD_DIRS+=usr/share/locale/ar_EG.UTF-8
4266 OLD_DIRS+=usr/share/locale/ar_JO.UTF-8
4273 OLD_DIRS+=usr/share/locale/ar_MA.UTF-8
5092 OLD_DIRS+=usr/share/locale/ja_JP.SJIS
5526 OLD_DIRS+=usr/share/locale/zh_CN.GBK
[all …]
/freebsd-13.1/contrib/llvm-project/libcxx/src/support/ibm/
H A Dxlocale_zos.cpp17 locale_t newlocale(int category_mask, const char* locale, locale_t base) { in newlocale() argument
22 if (category_mask == LC_ALL_MASK && setlocale(LC_ALL, locale) == NULL) { in newlocale()
27 if ((_CATMASK(_Cat) & category_mask) != 0 && setlocale(_Cat, locale) == NULL) { in newlocale()
50 newloc->lc_collate = locale; in newlocale()
52 newloc->lc_ctype = locale; in newlocale()
54 newloc->lc_monetary = locale; in newlocale()
56 newloc->lc_numeric = locale; in newlocale()
58 newloc->lc_time = locale; in newlocale()
60 newloc->lc_messages = locale; in newlocale()
/freebsd-13.1/usr.sbin/mfiutil/
H A Dmfi_evt.c149 *locale = MFI_EVT_LOCALE_LD; in parse_locale()
153 *locale = MFI_EVT_LOCALE_PD; in parse_locale()
157 *locale = MFI_EVT_LOCALE_ENCL; in parse_locale()
162 *locale = MFI_EVT_LOCALE_BBU; in parse_locale()
166 *locale = MFI_EVT_LOCALE_SAS; in parse_locale()
182 *locale = MFI_EVT_LOCALE_ALL; in parse_locale()
190 *locale = val; in parse_locale()
273 format_locale(uint16_t locale) in format_locale() argument
277 switch (locale) { in format_locale()
545 uint16_t locale; in show_events() local
[all …]

12345678910>>...28