/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/lib/libc/stdtime/ |
H A D | strptime.c | 79 locale_t locale) in _strptime() 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() 80 _strptime(const char * buf,const char * fmt,struct tm * tm,int * GMTp,locale_t locale) _strptime() argument [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()
|
H A D | strcasestr.c | 48 strcasestr_l(const char *s, const char *find, locale_t locale) in strcasestr_l() argument 52 FIX_LOCALE(locale); in strcasestr_l() 55 c = tolower_l((unsigned char)c, locale); in strcasestr_l() 61 } while ((char)tolower_l((unsigned char)sc, locale) != c); in strcasestr_l() 62 } while (strncasecmp_l(s, find, len, locale) != 0); in strcasestr_l()
|
/freebsd/lib/libc/stdio/ |
H A D | vfwscanf.c | 128 convert_char(FILE *fp, char * mbp, int width, locale_t locale) in convert_char() argument 137 while (width-- != 0 && (wi = __fgetwc(fp, locale)) != WEOF) { in convert_char() 152 convert_wchar(FILE *fp, wchar_t *wcp, int width, locale_t locale) in convert_wchar() argument 158 while (width-- != 0 && (wi = __fgetwc(fp, locale)) != WEOF) { in convert_wchar() 170 locale_t locale) in convert_ccl() argument 179 while ((wi = __fgetwc(fp, locale)) != WEOF && in convert_ccl() 190 __ungetwc(wi, fp, locale); in convert_ccl() 198 locale_t locale) in convert_wccl() argument 206 while ((wi = __fgetwc(fp, locale)) != WEOF && in convert_wccl() 210 __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 …]
|
H A D | vfprintf.c | 96 struct lconv *locale; in grouping_init() local 98 locale = localeconv_l(loc); in grouping_init() 99 gs->grouping = locale->grouping; in grouping_init() 100 gs->thousands_sep = locale->thousands_sep; in grouping_init() 123 const CHAR *cp, const CHAR *ep, locale_t locale) in grouping_print() argument 127 if (io_printandpad(iop, cp, ep, gs->lead, zeroes, locale)) in grouping_print() 137 if (io_print(iop, gs->thousands_sep, gs->thousep_len, locale)) in grouping_print() 139 if (io_printandpad(iop, cp, ep, *gs->grouping, zeroes, locale)) in grouping_print() 153 __sprint(FILE *fp, struct __suio *uio, locale_t locale) in __sprint() argument 173 __sbprintf(FILE *fp, locale_t locale, int serrno, const char *fmt, va_list ap) in __sbprintf() argument [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/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()
|
H A D | mblen.c | 39 mblen_l(const char *s, size_t n, locale_t locale) in mblen_l() argument 43 FIX_LOCALE(locale); in mblen_l() 47 XLOCALE_CTYPE(locale)->mblen = initial; in mblen_l() 50 rval = XLOCALE_CTYPE(locale)->__mbrtowc(NULL, s, n, in mblen_l() 51 &(XLOCALE_CTYPE(locale)->mblen)); in mblen_l()
|
/freebsd/contrib/bc/scripts/ |
H A D | locale_install.sh | 55 # Return an exit code based on whether a locale exists. 57 # @param locale The locale to search for. 217 locales=$(locale -a) 219 locales=$(locale -m) 225 locale=$(basename "$file" ".msg") 231 # Check if the locale exists and if not skip. 232 localeexists "$locales" "$locale" "$destdir" 245 printf 'Installing %s...' "$locale" 248 loc=$(gen_nlspath "$destdir/$nlspath" "$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/contrib/diff/lib/ |
H A D | hard-locale.c | 50 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/tools/build/mk/ |
H A D | OptionalObsoleteFiles.inc | 3694 OLD_DIRS+=usr/share/locale/af_ZA.ISO8859-15 3695 OLD_FILES+=usr/share/locale/af_ZA.ISO8859-15/LC_COLLATE 3696 OLD_FILES+=usr/share/locale/af_ZA.ISO8859-15/LC_CTYPE 3697 OLD_FILES+=usr/share/locale/af_ZA.ISO8859-15/LC_MESSAGES 3698 OLD_FILES+=usr/share/locale/af_ZA.ISO8859-15/LC_MONETARY 3699 OLD_FILES+=usr/share/locale/af_ZA.ISO8859-15/LC_NUMERIC 3700 OLD_FILES+=usr/share/locale/af_ZA.ISO8859-15/LC_TIME 3701 OLD_DIRS+=usr/share/locale/af_ZA.ISO8859-1 3702 OLD_FILES+=usr/share/locale/af_ZA.ISO8859-1/LC_COLLATE 3703 OLD_FILES+=usr/share/locale/af_ZA.ISO8859-1/LC_CTYPE [all …]
|
/freebsd/contrib/llvm-project/libcxx/include/ |
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 19 // Maintain current locale name(s) to restore later. in newlocale() 23 if (category_mask == LC_ALL_MASK && setlocale(LC_ALL, locale) == NULL) { in newlocale() 28 if ((_CATMASK(_Cat) & category_mask) != 0 && setlocale(_Cat, locale) == NULL) { in newlocale() 36 // Create new locale. 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() [all...] |
/freebsd/usr.sbin/mfiutil/ |
H A D | mfi_evt.c | 141 parse_locale(char *arg, uint16_t *locale) in parse_locale() argument 147 *locale = MFI_EVT_LOCALE_LD; in parse_locale() 151 *locale = MFI_EVT_LOCALE_PD; in parse_locale() 155 *locale = MFI_EVT_LOCALE_ENCL; in parse_locale() 160 *locale = MFI_EVT_LOCALE_BBU; in parse_locale() 164 *locale = MFI_EVT_LOCALE_SAS; in parse_locale() 168 *locale = MFI_EVT_LOCALE_CTRL; in parse_locale() 172 *locale = MFI_EVT_LOCALE_CONFIG; in parse_locale() 176 *locale = MFI_EVT_LOCALE_CLUSTER; in parse_locale() 180 *locale = MFI_EVT_LOCALE_ALL; in parse_locale() [all …]
|