Home
last modified time | relevance | path

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

12345678910

/external/python/cpython3/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)
78 self.oldlocale = setlocale(LC_ALL)
81 setlocale(LC_ALL, self.oldlocale)
91 set_locale = setlocale(LC_NUMERIC)
110 setlocale(LC_NUMERIC, loc)
111 setlocale(LC_CTYPE, loc)
126 setlocale(LC_NUMERIC, loc)
[all …]
Dtest_locale.py29 oldlocale = locale.setlocale(locale.LC_NUMERIC)
32 locale.setlocale(locale.LC_NUMERIC, tloc)
41 locale.setlocale(locale.LC_NUMERIC, oldlocale)
44 oldlocale = locale.setlocale(self.locale_type)
45 self.addCleanup(locale.setlocale, self.locale_type, oldlocale)
46 locale.setlocale(self.locale_type, self.enUS_locale)
545 locale.setlocale(locale.LC_ALL)
546 locale.setlocale(locale.LC_TIME)
547 locale.setlocale(locale.LC_CTYPE)
548 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)
/external/python/cpython2/Lib/test/
Dtest__locale.py2 from _locale import (setlocale, LC_NUMERIC, localeconv, Error)
51 self.oldlocale = setlocale(LC_NUMERIC)
54 setlocale(LC_NUMERIC, self.oldlocale)
64 set_locale = setlocale(LC_NUMERIC)
83 setlocale(LC_NUMERIC, loc)
98 setlocale(LC_NUMERIC, loc)
114 setlocale(LC_NUMERIC, loc)
122 set_locale = setlocale(LC_NUMERIC)
140 setlocale(LC_NUMERIC, loc)
Dtest_locale.py24 oldlocale = locale.setlocale(locale.LC_NUMERIC)
27 locale.setlocale(locale.LC_NUMERIC, tloc)
35 locale.setlocale(locale.LC_NUMERIC, oldlocale)
44 self.oldlocale = locale.setlocale(self.locale_type)
45 locale.setlocale(self.locale_type, enUS_locale)
50 locale.setlocale(self.locale_type, self.oldlocale)
460 locale.setlocale(locale.LC_ALL)
461 locale.setlocale(locale.LC_TIME)
462 locale.setlocale(locale.LC_CTYPE)
463 locale.setlocale(locale.LC_COLLATE)
[all …]
Dtest_strftime.py63 from locale import setlocale, LC_TIME
64 saved_locale = setlocale(LC_TIME)
65 setlocale(LC_TIME, 'C')
66 self.addCleanup(setlocale, LC_TIME, saved_locale)
/external/tensorflow/tensorflow/core/platform/
Dstringprintf_test.cc69 char* old_locale = setlocale(LC_CTYPE, nullptr); in TEST()
71 setlocale(LC_CTYPE, "en_US.utf8"); in TEST()
93 setlocale(LC_CTYPE, old_locale); in TEST()
98 char* old_locale = setlocale(LC_CTYPE, nullptr); in TEST()
99 setlocale(LC_CTYPE, "POSIX"); in TEST()
101 setlocale(LC_CTYPE, old_locale); in TEST()
/external/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()
/external/libiio/src/
Dutilities.c46 old_locale = iio_strdup(setlocale(LC_NUMERIC, NULL)); in read_double_locale()
50 setlocale(LC_NUMERIC, "C"); in read_double_locale()
52 setlocale(LC_NUMERIC, old_locale); in read_double_locale()
65 char *old_locale = iio_strdup(setlocale(LC_NUMERIC, NULL)); in write_double_locale()
69 setlocale(LC_NUMERIC, "C"); in write_double_locale()
71 setlocale(LC_NUMERIC, old_locale); in write_double_locale()
/external/libchrome/base/test/
Dscoped_locale.cc14 prev_locale_ = setlocale(LC_ALL, nullptr); in ScopedLocale()
15 EXPECT_TRUE(setlocale(LC_ALL, locale.c_str()) != nullptr) in ScopedLocale()
20 EXPECT_STREQ(prev_locale_.c_str(), setlocale(LC_ALL, prev_locale_.c_str())); in ~ScopedLocale()
/external/pdfium/third_party/base/test/
Dscoped_locale.cc15 prev_locale_ = setlocale(LC_ALL, nullptr); in ScopedLocale()
16 EXPECT_TRUE(setlocale(LC_ALL, locale.c_str()) != nullptr) in ScopedLocale()
21 EXPECT_STREQ(prev_locale_.c_str(), setlocale(LC_ALL, prev_locale_.c_str())); in ~ScopedLocale()
/external/python/cpython2/Lib/
Dlocale.py85 def setlocale(category, value=None): function
325 setlocale(LC_ALL, "")
340 _setlocale = setlocale
566 def setlocale(category, locale=None): function
614 oldloc = setlocale(LC_CTYPE)
616 setlocale(LC_CTYPE, "")
620 setlocale(LC_CTYPE, oldloc)
2093 setlocale(LC_ALL, "")
/external/python/cpython3/Lib/
Dlocale.py87 def setlocale(category, value=None): function
333 setlocale(LC_ALL, "")
348 _setlocale = setlocale
593 def setlocale(category, locale=None): function
658 oldloc = setlocale(LC_CTYPE)
660 setlocale(LC_CTYPE, "")
665 setlocale(LC_CTYPE, oldloc)
1721 setlocale(LC_ALL, "")
/external/libcups/cups/
Dlangprintf.c279 setlocale(LC_ALL, ""); in _cupsSetLocale()
282 if ((lc_time = setlocale(LC_TIME, NULL)) == NULL) in _cupsSetLocale()
283 lc_time = setlocale(LC_ALL, NULL); in _cupsSetLocale()
296 setlocale(LC_TIME, new_lc_time); in _cupsSetLocale()
/external/python/cpython3/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()
/external/python/cpython2/Doc/library/
Dlocale.rst26 Exception raised when the locale passed to :func:`setlocale` is not
30 .. function:: setlocale(category[, locale])
32 If *locale* is given and not ``None``, :func:`setlocale` modifies the locale
43 :func:`setlocale` is not thread-safe on most systems. Applications typically
47 locale.setlocale(locale.LC_ALL, '')
279 According to POSIX, a program which has not called ``setlocale(LC_ALL, '')``
280 runs using the portable ``'C'`` locale. Calling ``setlocale(LC_ALL, '')`` lets
319 On some systems, it is necessary to invoke :func:`setlocale` to obtain the user
320 preferences, so this function is not thread-safe. If invoking setlocale is not
329 code is formatted for use with :func:`setlocale`. If normalization fails, the
[all …]
/external/openssh/
Dutf8.c326 (setlocale(LC_CTYPE, "C.UTF-8") != NULL || in msetlocale()
327 setlocale(LC_CTYPE, "POSIX.UTF-8") != NULL)) in msetlocale()
329 setlocale(LC_CTYPE, "C"); in msetlocale()
333 setlocale(LC_CTYPE, ""); in msetlocale()
/external/one-true-awk/
Dmain.c67 setlocale(LC_CTYPE, ""); in main()
68 setlocale(LC_NUMERIC, "C"); /* for parsing cmdline & prog */ in main()
180 setlocale(LC_NUMERIC, ""); /* back to whatever it is locally */ in main()
/external/e2fsprogs/misc/
Duuidgen.c45 setlocale(LC_MESSAGES, ""); in main()
46 setlocale(LC_CTYPE, ""); in main()
Dmklost+found.c41 setlocale(LC_MESSAGES, ""); in main()
42 setlocale(LC_CTYPE, ""); in main()
/external/flatbuffers/tests/fuzzer/
Dflatbuffers_parser_fuzzer.cc56 FLATBUFFERS_ASSERT(setlocale(LC_ALL, OneTimeTestInit::test_locale())); in LLVMFuzzerTestOneInput()
63 if (use_locale) { FLATBUFFERS_ASSERT(setlocale(LC_ALL, "C")); } in LLVMFuzzerTestOneInput()
/external/libcxx/include/
Dclocale31 char* setlocale(int category, const char* locale);
49 using ::setlocale;
/external/skia/src/gpu/
DGrAutoLocaleSetter.h45 char* oldLocale = setlocale(LC_ALL, name); in GrAutoLocaleSetter()
73 setlocale(LC_ALL, fOldLocale.c_str()); in ~GrAutoLocaleSetter()
/external/skqp/src/gpu/
DGrAutoLocaleSetter.h45 char* oldLocale = setlocale(LC_ALL, name); in GrAutoLocaleSetter()
73 setlocale(LC_ALL, fOldLocale.c_str()); in ~GrAutoLocaleSetter()
/external/python/cpython3/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 user
324 preferences, so this function is not thread-safe. If invoking setlocale is not
338 code is formatted for use with :func:`setlocale`. If normalization fails, the
[all …]

12345678910