Home
last modified time | relevance | path

Searched refs:setlocale (Results 1 – 25 of 266) sorted by relevance

1234567891011

/third_party/python/Lib/test/
Dtest__locale.py1 from _locale import (setlocale, LC_ALL, LC_CTYPE, LC_NUMERIC, localeconv, Error)
36 old_locale = locale.setlocale(locale.LC_ALL)
41 locale.setlocale(locale.LC_ALL, loc)
54 locale.setlocale(locale.LC_ALL, old_locale)
82 self.oldlocale = setlocale(LC_ALL)
85 setlocale(LC_ALL, self.oldlocale)
95 set_locale = setlocale(LC_NUMERIC)
114 setlocale(LC_NUMERIC, loc)
115 setlocale(LC_CTYPE, loc)
130 setlocale(LC_NUMERIC, loc)
[all …]
Dtest_locale.py31 oldlocale = locale.setlocale(locale.LC_NUMERIC)
34 locale.setlocale(locale.LC_NUMERIC, tloc)
43 locale.setlocale(locale.LC_NUMERIC, oldlocale)
46 oldlocale = locale.setlocale(self.locale_type)
47 self.addCleanup(locale.setlocale, self.locale_type, oldlocale)
48 locale.setlocale(self.locale_type, self.enUS_locale)
546 locale.setlocale(locale.LC_ALL)
547 locale.setlocale(locale.LC_TIME)
548 locale.setlocale(locale.LC_CTYPE)
549 locale.setlocale(locale.LC_COLLATE)
[all …]
Dtest_strftime.py61 from locale import setlocale, LC_TIME
62 saved_locale = setlocale(LC_TIME)
63 setlocale(LC_TIME, 'C')
64 self.addCleanup(setlocale, LC_TIME, saved_locale)
/third_party/musl/libc-test/src/functionalext/locale/
Dlanginfo.c33 char *lo = setlocale(LC_TIME, ""); in langinfo_0100()
38 lo = setlocale(LC_TIME, "zh_CN.UTF-8"); in langinfo_0100()
51 char *lo = setlocale(LC_TIME, ""); in nl_langinfo_0200()
71 char *lo = setlocale(LC_TIME, ""); in nl_langinfo_0300()
76 lo = setlocale(LC_TIME, "zh_CN.UTF-8"); in nl_langinfo_0300()
90 setlocale(LC_MESSAGES, "zh_CN.UTF-8"); in nl_langinfo_0400()
103 char *lo = setlocale(LC_CTYPE, ""); in nl_langinfo_0500()
111 lo = setlocale(LC_TIME, ""); in nl_langinfo_0500()
128 char *lo = setlocale(LC_ALL, ""); in nl_langinfo_0600()
145 char *lo = setlocale(LC_ALL, ""); in nl_langinfo_0700()
[all …]
Dsetlocale.c58 const char *locale = setlocale(LcArry[i], NULL); in setlocale_0100()
78 const char *locale = setlocale(LcArry[i], "C"); in setlocale_0200()
94 const char *locale1 = setlocale(PARAM_ERROR_VALUE_1, NULL); in setlocale_0300()
99 const char *locale2 = setlocale(PARAM_ERROR_VALUE_2, NULL); in setlocale_0300()
115 const char *locale = setlocale(LcArry[i], ""); in setlocale_0400()
131 char *rev = setlocale(LC_ALL, "C"); in setlocale_0500()
137 const char *locale = setlocale(LcArry[i], "en_ZA"); in setlocale_0500()
159 char *locale = setlocale(LC_ALL, ""); in setlocale_0600()
169 char *str = setlocale(LC_ALL, "sss123456"); in setlocale_0700()
Dlocaleconv.c68 setlocale(LC_ALL, "zh_CN"); in localeconv_0200()
110 setlocale(LC_ALL, "C"); in localeconv_0300()
111 setlocale(LC_NUMERIC, "zh_CN.UTF-8"); in localeconv_0300()
153 setlocale(LC_ALL, "C"); in localeconv_0400()
154 setlocale(LC_MONETARY, "zh_CN.UTF-8"); in localeconv_0400()
Dnewlocale.c37 char *lo = setlocale(LC_ALL, "C"); in newlocale_0100()
58 char *lo = setlocale(LC_ALL, "C"); in newlocale_0200()
81 char *lo = setlocale(LC_ALL, "C"); in newlocale_0300()
Duselocale.c27 char *rev = setlocale(LC_ALL, "C"); in uselocale_0100()
45 char *rev = setlocale(LC_ALL, "C"); in uselocale_0200()
Dduplocale.c27 char *lo = setlocale(LC_ALL, "C"); in duplocale_0100()
49 char *lo = setlocale(LC_ALL, "C"); in duplocale_0200()
/third_party/musl/libc-test/src/common/
Dutf8.c9 setlocale(LC_CTYPE, "C.UTF-8") || in t_setutf8()
10 setlocale(LC_CTYPE, "POSIX.UTF-8") || in t_setutf8()
11 setlocale(LC_CTYPE, "en_US.UTF-8") || in t_setutf8()
12 setlocale(LC_CTYPE, "en_GB.UTF-8") || in t_setutf8()
13 setlocale(LC_CTYPE, "en.UTF-8") || in t_setutf8()
14 setlocale(LC_CTYPE, "UTF-8") || in t_setutf8()
15 setlocale(LC_CTYPE, "") ); in t_setutf8()
/third_party/musl/libc-test/src/functionalext/supplement/locale/
Dlanginfo_sup.c33 char *lo = setlocale(LC_TIME, ""); in langinfo_0100()
38 lo = setlocale(LC_TIME, "zh_CN.UTF-8"); in langinfo_0100()
51 char *lo = setlocale(LC_TIME, ""); in nl_langinfo_0200()
70 char *lo = setlocale(LC_TIME, ""); in nl_langinfo_0300()
75 lo = setlocale(LC_TIME, "zh_CN.UTF-8"); in nl_langinfo_0300()
88 setlocale(LC_MESSAGES, "zh_CN.UTF-8"); in nl_langinfo_0400()
101 char *lo = setlocale(LC_CTYPE, ""); in nl_langinfo_0500()
109 lo = setlocale(LC_TIME, ""); in nl_langinfo_0500()
Dsetlocale_sup.c49 const char *locale = setlocale(LcArry[i], NULL); in setlocale_0100()
69 const char *locale = setlocale(LcArry[i], "C"); in setlocale_0200()
85 const char *locale1 = setlocale(PARAM_ERROR_VALUE_1, NULL); in setlocale_0300()
90 const char *locale2 = setlocale(PARAM_ERROR_VALUE_2, NULL); in setlocale_0300()
106 const char *locale = setlocale(LcArry[i], ""); in setlocale_0400()
122 char *rev = setlocale(LC_ALL, "C"); in setlocale_0500()
128 const char *locale = setlocale(LcArry[i], "en_ZA"); in setlocale_0500()
150 char *locale = setlocale(LC_ALL, ""); in setlocale_0600()
Dnewlocale_sup.c35 char *lo = setlocale(LC_ALL, "C"); in newlocale_0100()
56 char *lo = setlocale(LC_ALL, "C"); in newlocale_0200()
78 char *lo = setlocale(LC_ALL, "C"); in newlocale_0300()
Dduplocale_sup.c27 char *lo = setlocale(LC_ALL, "C"); in duplocale_0100()
49 char *lo = setlocale(LC_ALL, "C"); in duplocale_0200()
Duselocale_sup.c27 char *rev = setlocale(LC_ALL, "C"); in uselocale_0100()
45 char *rev = setlocale(LC_ALL, "C"); in uselocale_0200()
/third_party/musl/libc-test/src/functional/
Dmbc.c31 setlocale(LC_CTYPE, "en_US.UTF-8") || in main()
32 setlocale(LC_CTYPE, "en_GB.UTF-8") || in main()
33 setlocale(LC_CTYPE, "en.UTF-8") || in main()
34 setlocale(LC_CTYPE, "POSIX.UTF-8") || in main()
35 setlocale(LC_CTYPE, "C.UTF-8") || in main()
36 setlocale(LC_CTYPE, "UTF-8") || in main()
37 setlocale(LC_CTYPE, "") ); in main()
Dswprintf.c105 setlocale(LC_CTYPE, "en_US.UTF-8") || in main()
106 setlocale(LC_CTYPE, "en_GB.UTF-8") || in main()
107 setlocale(LC_CTYPE, "en.UTF-8") || in main()
108 setlocale(LC_CTYPE, "POSIX.UTF-8") || in main()
109 setlocale(LC_CTYPE, "C.UTF-8") || in main()
110 setlocale(LC_CTYPE, "UTF-8") || in main()
111 setlocale(LC_CTYPE, "") ); in main()
/third_party/protobuf/src/google/protobuf/stubs/
Dstringprintf_unittest.cc94 char* old_locale = setlocale(LC_CTYPE, nullptr); in TEST()
96 setlocale(LC_CTYPE, "en_US.utf8"); in TEST()
118 setlocale(LC_CTYPE, old_locale); in TEST()
123 char* old_locale = setlocale(LC_CTYPE, nullptr); in TEST()
124 setlocale(LC_CTYPE, "POSIX"); in TEST()
126 setlocale(LC_CTYPE, old_locale); in TEST()
/third_party/musl/Benchmark/musl/
Dlibc_locale.cpp44 benchmark::DoNotOptimize(setlocale(LC_ALL, nullptr)); in Bm_function_Setlocale_All()
52 benchmark::DoNotOptimize(setlocale(LC_ALL, "C")); in Bm_function_Setlocale_All1()
60 benchmark::DoNotOptimize(setlocale(LC_ALL, "")); in Bm_function_Setlocale_All2()
68 benchmark::DoNotOptimize(setlocale(LC_COLLATE, nullptr)); in Bm_function_Setlocale_Collate()
76 benchmark::DoNotOptimize(setlocale(LC_CTYPE, nullptr)); in Bm_function_Setlocale_Ctype()
84 benchmark::DoNotOptimize(setlocale(LC_TIME, nullptr)); in Bm_function_Setlocale_Time()
Dlibc_string.cpp395 setlocale(LC_ALL, ""); in BM_function_Wcscoll()
415 setlocale(LC_ALL, ""); in BM_function_Wcscoll_l()
436 setlocale(LC_ALL, ""); in Bm_function_Wctob()
447 setlocale(LC_ALL, ""); in Bm_function_Btowc()
478 setlocale(LC_ALL, ""); in Bm_function_Strxfrm_l()
500 setlocale(LC_ALL, ""); in Bm_function_Wcsxfrm()
520 setlocale(LC_ALL, ""); in Bm_function_Wcsxfrm_l()
541 setlocale(LC_ALL, ""); in BM_function_Strcoll()
563 setlocale(LC_ALL, ""); in BM_function_Strcoll_l()
/third_party/musl/libc-test/src/functionalext/supplement/ctype/
Diswalhpa.c33 setlocale(LC_CTYPE, "UTF-8"); in iswalhpa_0100()
54 setlocale(LC_CTYPE, "UTF-8"); in iswalhpa_0200()
75 setlocale(LC_CTYPE, "UTF-8"); in iswalhpa_0300()
96 setlocale(LC_CTYPE, "UTF-8"); in iswalhpa_0400()
D__ctype_get_mb_cur_max.c31 setlocale(LC_ALL, ".1252"); in __ctype_get_mb_cur_max_0100()
44 setlocale(LC_CTYPE, "zh_CN.utf8"); in __ctype_get_mb_cur_max_0200()
57 setlocale(LC_ALL, ".936"); in __ctype_get_mb_cur_max_0300()
/third_party/python/Lib/
Dlocale.py87 def setlocale(category, value=None): function
345 setlocale(LC_ALL, "")
360 _setlocale = setlocale
605 def setlocale(category, locale=None): function
666 old_loc = setlocale(LC_CTYPE)
669 setlocale(LC_CTYPE, "")
674 setlocale(LC_CTYPE, old_loc)
1729 setlocale(LC_ALL, "")
/third_party/python/Python/
Dfrozenmain.c57 oldloc = _PyMem_RawStrdup(setlocale(LC_ALL, NULL)); in Py_FrozenMain()
63 setlocale(LC_ALL, ""); in Py_FrozenMain()
74 setlocale(LC_ALL, oldloc); in Py_FrozenMain()
/third_party/python/Doc/library/
Dlocale.rst29 Exception raised when the locale passed to :func:`setlocale` is not
33 .. function:: setlocale(category, locale=None)
35 If *locale* is given and not ``None``, :func:`setlocale` modifies the locale
46 :func:`setlocale` is not thread-safe on most systems. Applications typically
50 locale.setlocale(locale.LC_ALL, '')
287 According to POSIX, a program which has not called ``setlocale(LC_ALL, '')``
288 runs using the portable ``'C'`` locale. Calling ``setlocale(LC_ALL, '')`` lets
323 On some systems, it is necessary to invoke :func:`setlocale` to obtain the
324 user preferences, so this function is not thread-safe. If invoking setlocale
342 code is formatted for use with :func:`setlocale`. If normalization fails, the
[all …]

1234567891011