| /freebsd/contrib/file/magic/Magdir/ |
| H A D | glibc | 4 # glibc locale files 6 # https://sourceware.org/git/?p=glibc.git;f=locale/localeinfo.h;h=68822a63#l32 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 [all …]
|
| H A D | citrus | 4 # 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/contrib/llvm-project/libcxx/include/ |
| H A D | locale | 14 locale synopsis 19 class locale 38 locale() noexcept; 39 locale(const locale& other) noexcept; 40 explicit locale(const char* std_name); 41 explicit locale(const string& std_name); 42 locale(const locale& other, const char* std_name, category); 43 locale(const locale& other, const string& std_name, category); 44 template <class Facet> locale(const locale& other, Facet* f); 45 locale(const locale& other, const locale& one, category); [all …]
|
| H A D | __locale | 46 class _LIBCPP_EXPORTED_FROM_ABI locale; 52 _LIBCPP_HIDE_FROM_ABI bool has_facet(const locale&) _NOEXCEPT; 55 _LIBCPP_HIDE_FROM_ABI const _Facet& use_facet(const locale&); 57 class _LIBCPP_EXPORTED_FROM_ABI locale { 59 …// locale is essentially a shared_ptr that doesn't support weak_ptrs and never got a move construc… 61 using __trivially_relocatable _LIBCPP_NODEBUG = locale; 62 using __replaceable _LIBCPP_NODEBUG = locale; 77 locale() _NOEXCEPT; 78 locale(const locale&) _NOEXCEPT; 79 explicit locale(const char*); [all …]
|
| /freebsd/lib/libc/stdtime/ |
| H A D | strptime.c | 79 locale_t locale) in _strptime() argument 89 const struct lc_time_T *tptr = __get_current_time_locale(locale); in _strptime() 104 if (isspace_l((unsigned char)c, locale)) in _strptime() 106 isspace_l((unsigned char)*buf, locale)) in _strptime() 124 buf = _strptime(buf, tptr->date_fmt, tm, GMTp, locale); in _strptime() 131 if (!isdigit_l((unsigned char)*buf, locale)) in _strptime() 137 isdigit_l((unsigned char)*buf, locale); buf++) { in _strptime() 149 buf = _strptime(buf, tptr->c_fmt, tm, GMTp, locale); in _strptime() 156 buf = _strptime(buf, "%m/%d/%y", tm, GMTp, locale); in _strptime() 175 buf = _strptime(buf, "%Y-%m-%d", tm, GMTp, locale); in _strptime() [all …]
|
| /freebsd/contrib/ncurses/ncurses/ |
| H A D | report_ctype.c | 48 report(char *locale) in report() argument 53 printf("Locale \"%s\"", locale); in report() 54 if (setlocale(LC_CTYPE, locale) != NULL) { in report() 78 if ((dot = strchr(locale, '.')) != NULL) { in report() 80 report(locale); in report() 94 char *locale = getenv("LC_CTYPE"); in main() local 95 if (locale == NULL) in main() 96 locale = getenv("LC_ALL"); in main() 97 if (locale == NULL) in main() 98 locale = getenv("LANG"); in main() [all …]
|
| /freebsd/lib/libc/string/ |
| H A D | strcasecmp.c | 42 strcasecmp_l(const char *s1, const char *s2, locale_t locale) in strcasecmp_l() argument 47 FIX_LOCALE(locale); in strcasecmp_l() 49 while (tolower_l(*us1, locale) == tolower_l(*us2++, locale)) in strcasecmp_l() 52 return (tolower_l(*us1, locale) - tolower_l(*--us2, locale)); in strcasecmp_l() 61 strncasecmp_l(const char *s1, const char *s2, size_t n, locale_t locale) in strncasecmp_l() argument 63 FIX_LOCALE(locale); in strncasecmp_l() 70 if (tolower_l(*us1, locale) != tolower_l(*us2++, locale)) in strncasecmp_l() 71 return (tolower_l(*us1, locale) - tolower_l(*--us2, locale)); in strncasecmp_l()
|
| /freebsd/lib/libc/stdio/ |
| H A D | vfwscanf.c | 126 convert_char(FILE *fp, char * mbp, int width, locale_t locale) in convert_char() argument 135 while (width-- != 0 && (wi = __fgetwc(fp, locale)) != WEOF) { in convert_char() 150 convert_wchar(FILE *fp, wchar_t *wcp, int width, locale_t locale) in convert_wchar() argument 156 while (width-- != 0 && (wi = __fgetwc(fp, locale)) != WEOF) { in convert_wchar() 168 locale_t locale) in convert_ccl() argument 177 while ((wi = __fgetwc(fp, locale)) != WEOF && in convert_ccl() 188 __ungetwc(wi, fp, locale); in convert_ccl() 196 locale_t locale) in convert_wccl() argument 204 while ((wi = __fgetwc(fp, locale)) != WEOF && in convert_wccl() 208 __ungetwc(wi, fp, locale); in convert_wccl() [all …]
|
| H A D | vfwprintf.c | 89 get_decpt(locale_t locale) in get_decpt() argument 96 nconv = mbrtowc(&decpt, localeconv_l(locale)->decimal_point, MB_CUR_MAX, &mbs); in get_decpt() 103 get_thousep(locale_t locale) in get_thousep() argument 110 nconv = mbrtowc(&thousep, localeconv_l(locale)->thousands_sep, in get_thousep() 123 grouping_init(struct grouping_state *gs, int ndigits, locale_t locale) in grouping_init() argument 126 gs->grouping = localeconv_l(locale)->grouping; in grouping_init() 127 gs->thousands_sep = get_thousep(locale); in grouping_init() 149 const CHAR *cp, const CHAR *ep, locale_t locale) in grouping_print() argument 153 if (io_printandpad(iop, cp, ep, gs->lead, zeroes, locale)) in grouping_print() 163 if (io_print(iop, &gs->thousands_sep, 1, locale)) in grouping_print() [all …]
|
| /freebsd/contrib/llvm-project/libcxx/include/__locale_dir/locale_base_api/ |
| H A D | ibm.h | 32 explicit __setAndRestore(locale_t locale) { in __setAndRestore() 33 if (locale == (locale_t)0) { in __setAndRestore() 37 __stored = uselocale(locale); in __setAndRestore() 56 …DE_FROM_ABI long long strtoll_l(const char* __nptr, char** __endptr, int __base, locale_t locale) { in strtoll_l() argument 57 __setAndRestore __newloc(locale); in strtoll_l() 61 inline _LIBCPP_HIDE_FROM_ABI double strtod_l(const char* __nptr, char** __endptr, locale_t locale) { in strtod_l() argument 62 __setAndRestore __newloc(locale); in strtod_l() 66 inline _LIBCPP_HIDE_FROM_ABI float strtof_l(const char* __nptr, char** __endptr, locale_t locale) { in strtof_l() argument 67 __setAndRestore __newloc(locale); in strtof_l() 71 …_LIBCPP_HIDE_FROM_ABI long double strtold_l(const char* __nptr, char** __endptr, locale_t locale) { in strtold_l() argument [all …]
|
| /freebsd/contrib/llvm-project/libcxx/include/__cxx03/__locale_dir/locale_base_api/ |
| H A D | ibm.h | 32 explicit __setAndRestore(locale_t locale) { in __setAndRestore() 33 if (locale == (locale_t)0) { in __setAndRestore() 37 __stored = uselocale(locale); in __setAndRestore() 56 …DE_FROM_ABI long long strtoll_l(const char* __nptr, char** __endptr, int __base, locale_t locale) { in strtoll_l() argument 57 __setAndRestore __newloc(locale); in strtoll_l() 61 inline _LIBCPP_HIDE_FROM_ABI double strtod_l(const char* __nptr, char** __endptr, locale_t locale) { in strtod_l() argument 62 __setAndRestore __newloc(locale); in strtod_l() 66 inline _LIBCPP_HIDE_FROM_ABI float strtof_l(const char* __nptr, char** __endptr, locale_t locale) { in strtof_l() argument 67 __setAndRestore __newloc(locale); in strtof_l() 71 …_LIBCPP_HIDE_FROM_ABI long double strtold_l(const char* __nptr, char** __endptr, locale_t locale) { in strtold_l() argument [all …]
|
| /freebsd/lib/libc/locale/ |
| H A D | DESIGN.xlocale | 9 - Locale-aware functions taking an explicit locale argument (Darwin) 18 locale code. A lot of the existing locale code originates with 4BSD or earlier 24 called without a locale. This approach was taken, rather than adding _l 26 global-locale versions to slip in. 31 A locale is encapsulated in a `locale_t`, which is an opaque type: a pointer to 36 This structure should include all of the information corresponding to a locale. 39 caller to ensure that a locale is not deallocated during a call that uses it. 41 Each locale contains a number of components, one for each of the categories 44 `setinvalidrune()` function that can modify the rune locale. 47 with each locale. These are used by various functions that previously had a [all …]
|
| H A D | setlocale.c | 97 setlocale(int category, const char *locale) in setlocale() argument 106 if (locale == NULL) in setlocale() 119 if (!*locale) { in setlocale() 138 if (strlen(locale) > ENCODING_LEN) { in setlocale() 142 (void)strcpy(new_categories[category], locale); in setlocale() 144 if ((r = strchr(locale, '/')) == NULL) { in setlocale() 145 if (strlen(locale) > ENCODING_LEN) { in setlocale() 150 (void)strcpy(new_categories[i], locale); in setlocale() 161 if ((len = r - locale) > ENCODING_LEN) { in setlocale() 165 (void)strlcpy(new_categories[i], locale, in setlocale() [all …]
|
| H A D | runetype.c | 47 ___runetype_l(__ct_rune_t c, locale_t locale) in ___runetype_l() argument 50 FIX_LOCALE(locale); in ___runetype_l() 51 _RuneRange *rr = &(XLOCALE_CTYPE(locale)->runes->__runetype_ext); in ___runetype_l() 84 int ___mb_cur_max_l(locale_t locale) in ___mb_cur_max_l() argument 86 FIX_LOCALE(locale); in ___mb_cur_max_l() 87 return XLOCALE_CTYPE(locale)->__mb_cur_max; in ___mb_cur_max_l()
|
| H A D | wcstod.c | 50 locale_t locale) in wcstod_l() argument 59 FIX_LOCALE(locale); in wcstod_l() 63 while (iswspace_l(*wcp, locale)) { in wcstod_l() 79 if ((len = wcsrtombs_l(NULL, &wcp, 0, &mbs, locale)) == (size_t)-1) { in wcstod_l() 90 wcsrtombs_l(buf, &wcp, len + 1, &mbs, locale); in wcstod_l() 93 val = strtod_l(buf, &end, locale); in wcstod_l()
|
| H A D | wcstof.c | 44 locale_t locale) in wcstof_l() argument 53 FIX_LOCALE(locale); in wcstof_l() 57 while (iswspace_l(*wcp, locale)) { in wcstof_l() 63 if ((len = wcsrtombs_l(NULL, &wcp, 0, &mbs, locale)) == (size_t)-1) { in wcstof_l() 74 wcsrtombs_l(buf, &wcp, len + 1, &mbs, locale); in wcstof_l() 76 val = strtof_l(buf, &end, locale); in wcstof_l()
|
| H A D | wcstold.c | 44 locale_t locale) in wcstold_l() argument 53 FIX_LOCALE(locale); in wcstold_l() 57 while (iswspace_l(*wcp, locale)) { in wcstold_l() 63 if ((len = wcsrtombs_l(NULL, &wcp, 0, &mbs, locale)) == (size_t)-1) { in wcstold_l() 74 wcsrtombs_l(buf, &wcp, len + 1, &mbs, locale); in wcstold_l() 76 val = strtold_l(buf, &end, locale); in wcstold_l()
|
| H A D | wctomb.c | 39 wctomb_l(char *s, wchar_t wchar, locale_t locale) in wctomb_l() argument 43 FIX_LOCALE(locale); in wctomb_l() 47 XLOCALE_CTYPE(locale)->wctomb = initial; in wctomb_l() 50 if ((rval = XLOCALE_CTYPE(locale)->__wcrtomb(s, wchar, in wctomb_l() 51 &(XLOCALE_CTYPE(locale)->wctomb))) == (size_t)-1) in wctomb_l()
|
| /freebsd/contrib/bc/scripts/ |
| H A D | locale_install.sh | 217 locales=$(locale -a) 219 locales=$(locale -m) 225 locale=$(basename "$file" ".msg") 232 localeexists "$locales" "$locale" "$destdir" 245 printf 'Installing %s...' "$locale" 248 loc=$(gen_nlspath "$destdir/$nlspath" "$locale" "$main_exec") 262 locale=$(basename "$file" ".msg") 267 localeexists "$locales" "$locale" "$destdir" 276 loc=$(gen_nlspath "$destdir/$nlspath" "$locale" "$main_exec") 284 printf 'Linking %s...' "$locale" [all …]
|
| /freebsd/usr.bin/locale/tests/ |
| H A D | locale_test.sh | 40 locale -k \ 65 locale -k \ 72 locale -k \ 90 locale -k \ 107 locale \ 132 locale \ 139 locale \ 157 locale \ 173 atf_check -s exit:1 -o empty -e ignore locale -k nonexistent
|
| /freebsd/contrib/llvm-project/libcxx/src/ |
| H A D | ios.cpp | 104 locale ios_base::imbue(const locale& newloc) { in imbue() 105 static_assert(sizeof(locale) == sizeof(__loc_), ""); in imbue() 106 locale& loc_storage = *reinterpret_cast<locale*>(&__loc_); in imbue() 107 locale oldloc = loc_storage; in imbue() 113 locale ios_base::getloc() const { in getloc() 114 const locale& loc_storage = *reinterpret_cast<const locale*>(&__loc_); in getloc() 203 locale& loc_storage = *reinterpret_cast<locale*>(&__loc_); in ~ios_base() 204 loc_storage.~locale(); in ~ios_base() 242 ::new (&__loc_) locale; in init() 279 locale& lhs_loc = *reinterpret_cast<locale*>(&__loc_); in copyfmt() [all …]
|
| /freebsd/tools/build/mk/ |
| H A D | OptionalObsoleteFiles.inc | 3965 OLD_DIRS+=usr/share/locale/af_ZA.ISO8859-15 3966 OLD_FILES+=usr/share/locale/af_ZA.ISO8859-15/LC_COLLATE 3967 OLD_FILES+=usr/share/locale/af_ZA.ISO8859-15/LC_CTYPE 3968 OLD_FILES+=usr/share/locale/af_ZA.ISO8859-15/LC_MESSAGES 3969 OLD_FILES+=usr/share/locale/af_ZA.ISO8859-15/LC_MONETARY 3970 OLD_FILES+=usr/share/locale/af_ZA.ISO8859-15/LC_NUMERIC 3971 OLD_FILES+=usr/share/locale/af_ZA.ISO8859-15/LC_TIME 3972 OLD_DIRS+=usr/share/locale/af_ZA.ISO8859-1 3973 OLD_FILES+=usr/share/locale/af_ZA.ISO8859-1/LC_COLLATE 3974 OLD_FILES+=usr/share/locale/af_ZA.ISO8859-1/LC_CTYPE [all …]
|
| /freebsd/contrib/llvm-project/libcxx/include/__cxx03/ |
| H A D | __locale | 42 class _LIBCPP_EXPORTED_FROM_ABI locale; 45 _LIBCPP_HIDE_FROM_ABI bool has_facet(const locale&) _NOEXCEPT; 48 _LIBCPP_HIDE_FROM_ABI const _Facet& use_facet(const locale&); 50 class _LIBCPP_EXPORTED_FROM_ABI locale { 52 …// locale is essentially a shared_ptr that doesn't support weak_ptrs and never got a move construc… 53 using __trivially_relocatable = locale; 67 locale() _NOEXCEPT; 68 locale(const locale&) _NOEXCEPT; 69 explicit locale(const char*); 70 explicit locale(const string&); [all …]
|
| /freebsd/contrib/llvm-project/libcxx/src/support/ibm/ |
| H A D | xlocale_zos.cpp | 18 locale_t newlocale(int category_mask, const char* locale, locale_t base) { in newlocale() argument 23 if (category_mask == LC_ALL_MASK && setlocale(LC_ALL, locale) == nullptr) { in newlocale() 28 if ((_CATMASK(_Cat) & category_mask) != 0 && setlocale(_Cat, locale) == nullptr) { in newlocale() 51 newloc->lc_collate = locale; in newlocale() 53 newloc->lc_ctype = locale; in newlocale() 55 newloc->lc_monetary = locale; in newlocale() 57 newloc->lc_numeric = locale; in newlocale() 59 newloc->lc_time = locale; in newlocale() 61 newloc->lc_messages = locale; in newlocale()
|
| /freebsd/contrib/llvm-project/libcxx/include/__format/ |
| H A D | format_context.h | 57 optional<std::locale>&& __loc = nullopt) { 87 _LIBCPP_HIDE_FROM_ABI std::locale locale() { in _LIBCPP_PREFERRED_NAME() 89 __loc_ = std::locale{}; in _LIBCPP_PREFERRED_NAME() 110 optional<std::locale> __loc_; in _LIBCPP_PREFERRED_NAME() 114 …OutIt, basic_format_args<basic_format_context<_OtherOutIt, _OtherCharT>>, optional<std::locale>&&); in _LIBCPP_PREFERRED_NAME() 118 … _OutIt __out_it, basic_format_args<basic_format_context> __args, optional<std::locale>&& __loc) in _LIBCPP_PREFERRED_NAME() 162 __loc_([](void* __c) { return static_cast<_Context*>(__c)->locale(); }), in basic_format_context() 192 _LIBCPP_HIDE_FROM_ABI std::locale locale() { return __loc_(__ctx_); } in locale() function 201 std::locale (*__loc_)(void* __ctx);
|