/picolibc-3.7.0-3.6.0/newlib/libc/ctype/ |
D | iswctype_l.c | 9 iswctype_l (wint_t c, wctype_t desc, struct __locale_t *locale) in iswctype_l() argument 14 return iswalnum_l (c, locale); in iswctype_l() 16 return iswalpha_l (c, locale); in iswctype_l() 18 return iswblank_l (c, locale); in iswctype_l() 20 return iswcntrl_l (c, locale); in iswctype_l() 22 return iswdigit_l (c, locale); in iswctype_l() 24 return iswgraph_l (c, locale); in iswctype_l() 26 return iswlower_l (c, locale); in iswctype_l() 28 return iswprint_l (c, locale); in iswctype_l() 30 return iswpunct_l (c, locale); in iswctype_l() [all …]
|
D | tolower_l.c | 17 tolower_l (int c, struct __locale_t *locale) in tolower_l() argument 21 return isupper_l (c, locale) ? c - 'A' + 'a' : c; in tolower_l() 22 else if (c != EOF && __locale_mb_cur_max_l (locale) == 1 in tolower_l() 23 && isupper_l (c, locale)) in tolower_l() 30 if (locale->mbtowc (_REENT, &wc, s, 1, &state) >= 0 in tolower_l() 31 && locale->wctomb (_REENT, s, in tolower_l() 32 (wchar_t) towlower_l ((wint_t) wc, locale), in tolower_l() 38 return isupper_l (c, locale) ? (c) - 'A' + 'a' : c; in tolower_l()
|
D | toupper_l.c | 18 toupper_l (int c, struct __locale_t *locale) in toupper_l() argument 23 return islower_l (c, locale) ? c - 'a' + 'A' : c; in toupper_l() 24 else if (c != EOF && __locale_mb_cur_max_l (locale) == 1 in toupper_l() 25 && islower_l (c, locale)) in toupper_l() 32 if (locale->mbtowc (_REENT, &wc, s, 1, &state) >= 0 in toupper_l() 33 && locale->wctomb (_REENT, s, in toupper_l() 34 (wchar_t) towupper_l ((wint_t) wc, locale), in toupper_l() 40 return islower_l (c, locale) ? c - 'a' + 'A' : c; in toupper_l()
|
D | towlower_l.c | 13 towlower_l (wint_t c, struct __locale_t *locale) in towlower_l() argument 15 (void) locale; in towlower_l() 17 return towctrans_l (c, WCT_TOLOWER, locale); in towlower_l()
|
D | towupper_l.c | 12 towupper_l (wint_t c, struct __locale_t *locale) in towupper_l() argument 14 (void) locale; in towupper_l() 16 return towctrans_l (c, WCT_TOUPPER, locale); in towupper_l()
|
D | isspace_l.c | 10 isspace_l (int c, struct __locale_t *locale) in isspace_l() argument 13 (void) locale; in isspace_l() 16 return __locale_ctype_ptr_l (locale)[c+1] & _S; in isspace_l()
|
D | iscntrl_l.c | 10 iscntrl_l (int c, struct __locale_t *locale) in iscntrl_l() argument 13 (void) locale; in iscntrl_l() 16 return __locale_ctype_ptr_l (locale)[c+1] & _C; in iscntrl_l()
|
D | isdigit_l.c | 11 isdigit_l (int c, struct __locale_t *locale) in isdigit_l() argument 14 (void) locale; in isdigit_l() 17 return __locale_ctype_ptr_l (locale)[c+1] & _N; in isdigit_l()
|
D | ispunct_l.c | 10 ispunct_l (int c, struct __locale_t *locale) in ispunct_l() argument 13 (void) locale; in ispunct_l() 16 return __locale_ctype_ptr_l (locale)[c+1] & _P; in ispunct_l()
|
D | isblank_l.c | 10 isblank_l (int c, struct __locale_t *locale) in isblank_l() argument 13 (void) locale; in isblank_l() 16 return (__locale_ctype_ptr_l (locale)[c+1] & _B) || (c == '\t'); in isblank_l()
|
D | isxdigit_l.c | 11 isxdigit_l (int c, struct __locale_t *locale) in isxdigit_l() argument 14 return __locale_ctype_ptr_l (locale)[c+1] & ((_X)|(_N)); in isxdigit_l() 16 (void) locale; in isxdigit_l()
|
D | isalpha_l.c | 10 isalpha_l (int c, struct __locale_t *locale) in isalpha_l() argument 13 (void) locale; in isalpha_l() 16 return __locale_ctype_ptr_l (locale)[c+1] & (_U|_L); in isalpha_l()
|
D | isupper_l.c | 10 isupper_l (int c, struct __locale_t *locale) in isupper_l() argument 13 (void) locale; in isupper_l() 16 return (__locale_ctype_ptr_l (locale)[c+1] & (_U|_L)) == _U; in isupper_l()
|
D | isalnum_l.c | 10 isalnum_l (int c, struct __locale_t *locale) in isalnum_l() argument 13 (void) locale; in isalnum_l() 16 return __locale_ctype_ptr_l (locale)[c+1] & (_U|_L|_N); in isalnum_l()
|
D | islower_l.c | 11 islower_l (int c, struct __locale_t *locale) in islower_l() argument 14 (void) locale; in islower_l() 17 return (__locale_ctype_ptr_l (locale)[c+1] & (_U|_L)) == _L; in islower_l()
|
D | isgraph_l.c | 11 isgraph_l (int c, struct __locale_t *locale) in isgraph_l() argument 14 (void) locale; in isgraph_l() 17 return __locale_ctype_ptr_l (locale)[c+1] & (_P|_U|_L|_N); in isgraph_l()
|
D | isprint_l.c | 11 isprint_l (int c, struct __locale_t *locale) in isprint_l() argument 14 (void) locale; in isprint_l() 17 return __locale_ctype_ptr_l (locale)[c+1] & (_P|_U|_L|_N|_B); in isprint_l()
|
D | iswblank_l.c | 13 iswblank_l (wint_t c, struct __locale_t *locale) in iswblank_l() argument 15 (void) locale; in iswblank_l() 17 c = _jp2uc_l (c, locale); in iswblank_l()
|
/picolibc-3.7.0-3.6.0/newlib/libc/locale/ |
D | setlocale.h | 208 extern struct lconv *__localeconv_l (struct __locale_t *locale); 247 __get_collate_locale (struct __locale_t *locale) in __get_collate_locale() argument 249 return (const struct lc_collate_T *) locale->lc_cat[LC_COLLATE].ptr; in __get_collate_locale() 262 __get_ctype_locale (struct __locale_t *locale) in __get_ctype_locale() argument 264 return (const struct lc_ctype_T *) (locale)->lc_cat[LC_CTYPE].ptr; in __get_ctype_locale() 276 __locale_mb_cur_max_l (struct __locale_t *locale) in __locale_mb_cur_max_l() argument 279 return __get_ctype_locale (locale)->mb_cur_max[0]; in __locale_mb_cur_max_l() 281 return locale->mb_cur_max[0]; in __locale_mb_cur_max_l() 287 __get_monetary_locale (struct __locale_t *locale) in __get_monetary_locale() argument 289 return (const struct lc_monetary_T *) (locale)->lc_cat[LC_MONETARY].ptr; in __get_monetary_locale() [all …]
|
D | nl_langinfo.c | 173 char *nl_langinfo_l (nl_item item, struct __locale_t *locale) in nl_langinfo_l() argument 186 ret = (char *) __get_time_locale (locale)->codeset; in nl_langinfo_l() 189 ret = (char *) __get_numeric_locale (locale)->codeset; in nl_langinfo_l() 192 ret = (char *) __get_monetary_locale (locale)->codeset; in nl_langinfo_l() 197 ret = (char *) __get_collate_locale (locale)->codeset; in nl_langinfo_l() 205 ret = (char *) __locale_charset (locale); in nl_langinfo_l() 257 ret = (char *) __get_time_locale (locale)->c_fmt; in nl_langinfo_l() 260 ret = (char *) __get_time_locale (locale)->x_fmt; in nl_langinfo_l() 263 ret = (char *) __get_time_locale (locale)->X_fmt; in nl_langinfo_l() 266 ret = (char *) __get_time_locale (locale)->ampm_fmt; in nl_langinfo_l() [all …]
|
D | locale.c | 290 const char *locale) in setlocale() argument 294 if (locale) in setlocale() 296 if (strcmp (locale, "POSIX") && strcmp (locale, "C") in setlocale() 297 && strcmp (locale, "")) in setlocale() 314 if (locale == NULL) in setlocale() 327 if (!*locale) in setlocale() 355 if (strlen (locale) > ENCODING_LEN) in setlocale() 360 strcpy (new_categories[category], locale); in setlocale() 364 if ((r = strchr (locale, '/')) == NULL) in setlocale() 366 if (strlen (locale) > ENCODING_LEN) in setlocale() [all …]
|
D | locale.tex | 31 @chapter Locale (@file{locale.h}) 33 A @dfn{locale} is the name for a collection of parameters (affecting 35 depending on location or culture. The @code{"C"} locale is the only 39 value for locale; strings representing other locales are not 40 honored. (@code{""} is also accepted; it represents the default locale 44 @file{locale.h} defines the structure @code{lconv} to collect the 45 information on a locale, with the following fields: 51 C locale. 56 @code{""} in the C locale. 65 desired. @code{""} in the C locale. [all …]
|
/picolibc-3.7.0-3.6.0/newlib/libc/time/ |
D | strptime.c | 76 locale_t locale) in match_string() argument 83 if (strncasecmp_l (*buf, strs[i], len, locale) == 0) { in match_string() 158 locale_t locale) in strptime_l() argument 163 const struct lc_time_T *_CurrentTimeLocale = __get_time_locale (locale); in strptime_l() 168 if (isspace_l ((unsigned char) c, locale)) { in strptime_l() 169 while (isspace_l ((unsigned char) *buf, locale)) in strptime_l() 177 ret = match_string (&buf, _ctloc (weekday), locale); in strptime_l() 184 ret = match_string (&buf, _ctloc (wday), locale); in strptime_l() 191 ret = match_string (&buf, _ctloc (month), locale); in strptime_l() 199 ret = match_string (&buf, _ctloc (mon), locale); in strptime_l() [all …]
|
/picolibc-3.7.0-3.6.0/newlib/libc/string/ |
D | strcasecmp_l.c | 45 strcasecmp_l (const char *s1, const char *s2, struct __locale_t *locale) in strcasecmp_l() argument 50 const int c1 = tolower_l (*s1++, locale); in strcasecmp_l() 51 const int c2 = tolower_l (*s2++, locale); in strcasecmp_l()
|
D | wcscasecmp_l.c | 47 wcscasecmp_l (const wchar_t *s1, const wchar_t *s2, struct __locale_t *locale) in wcscasecmp_l() argument 52 const int c1 = towlower_l (*s1++, locale); in wcscasecmp_l() 53 const int c2 = towlower_l (*s2++, locale); in wcscasecmp_l()
|