Home
last modified time | relevance | path

Searched refs:LC_CTYPE (Results 1 – 25 of 134) sorted by relevance

123456

/external/protobuf/src/google/protobuf/stubs/
Dstringprintf_unittest.cc94 char* old_locale = setlocale(LC_CTYPE, NULL); 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, NULL); in TEST()
124 setlocale(LC_CTYPE, "POSIX"); in TEST()
126 setlocale(LC_CTYPE, old_locale); in TEST()
/external/tensorflow/tensorflow/core/lib/strings/
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/python/cpython3/Lib/test/
Dtest__locale.py1 from _locale import (setlocale, LC_ALL, LC_CTYPE, LC_NUMERIC, localeconv, Error)
111 setlocale(LC_CTYPE, loc)
127 setlocale(LC_CTYPE, loc)
145 setlocale(LC_CTYPE, loc)
172 setlocale(LC_CTYPE, loc)
Dtest_locale.py511 locale.setlocale(locale.LC_CTYPE)
521 oldlocale = locale.setlocale(locale.LC_CTYPE)
522 self.addCleanup(locale.setlocale, locale.LC_CTYPE, oldlocale)
524 locale.setlocale(locale.LC_CTYPE, 'tr_TR')
528 loc = locale.getlocale(locale.LC_CTYPE)
531 locale.setlocale(locale.LC_CTYPE, loc)
532 self.assertEqual(loc, locale.getlocale(locale.LC_CTYPE))
Dtest_c_locale_coercion.py412 old_loc = locale.setlocale(locale.LC_CTYPE, None)
413 self.addCleanup(locale.setlocale, locale.LC_CTYPE, old_loc)
414 loc = locale.setlocale(locale.LC_CTYPE, "")
/external/python/cpython2/Lib/test/
Dtest_locale.py340 locale_type = locale.LC_CTYPE
462 locale.setlocale(locale.LC_CTYPE)
473 self.addCleanup(locale.setlocale, locale.LC_CTYPE, oldlocale)
476 locale.setlocale(locale.LC_CTYPE, loc)
485 locale.setlocale(locale.LC_CTYPE, loc)
498 self.addCleanup(locale.setlocale, locale.LC_CTYPE, oldlocale)
500 user_locale = locale.setlocale(locale.LC_CTYPE, '')
503 user_locale2 = locale.setlocale(locale.LC_CTYPE, unicode_locale)
Dtest___all__.py79 locale_tuple = locale.getlocale(locale.LC_CTYPE)
85 locale.setlocale(locale.LC_CTYPE, locale_tuple)
/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/libcxx/test/std/depr/depr.c.headers/
Dlocale_h.pass.cpp23 #ifndef LC_CTYPE
24 #error LC_CTYPE not defined
/external/libcxx/test/std/localization/c.locales/
Dclocale.pass.cpp25 #ifndef LC_CTYPE
26 #error LC_CTYPE not defined
/external/openssh/regress/unittests/utf8/
Dtests.c60 loc = setlocale(LC_CTYPE, "en_US.UTF-8"); in tests()
82 loc = setlocale(LC_CTYPE, "C"); in tests()
/external/python/cpython2/Lib/
Dlocale.py54 LC_CTYPE = 0 variable
548 def getlocale(category=LC_CTYPE):
614 oldloc = setlocale(LC_CTYPE)
616 setlocale(LC_CTYPE, "")
620 setlocale(LC_CTYPE, oldloc)
Dre.py238 if loc is None or loc == _locale.setlocale(_locale.LC_CTYPE):
258 loc = _locale.setlocale(_locale.LC_CTYPE)
/external/python/cpython3/Lib/
Dlocale.py56 LC_CTYPE = 0 variable
571 def getlocale(category=LC_CTYPE):
654 oldloc = setlocale(LC_CTYPE)
656 setlocale(LC_CTYPE, "")
661 setlocale(LC_CTYPE, oldloc)
/external/libjpeg-turbo/
Drdjpgcom.c228 setlocale(LC_CTYPE, ""); in process_COM()
266 setlocale(LC_CTYPE, "C"); in process_COM()
/external/curl/tests/
Dtestcurl.pl189 $ENV{LC_CTYPE}="C" if (($ENV{LC_CTYPE}) && ($ENV{LC_CTYPE} !~ /^C$/));
/external/python/cpython3/Modules/
D_localemodule.c142 oldloc = setlocale(LC_CTYPE, NULL); in locale_decode_monetary()
164 setlocale(LC_CTYPE, loc); in locale_decode_monetary()
194 setlocale(LC_CTYPE, oldloc); in locale_decode_monetary()
741 PyModule_AddIntMacro(m, LC_CTYPE); in PyInit__locale()
/external/libcxx/include/support/xlocale/
D__nop_locale_mgmt.h36 #define LC_CTYPE_MASK (1 << LC_CTYPE)
/external/python/cpython3/Python/
Dpylifecycle.c386 const char *ctype_loc = setlocale(LC_CTYPE, NULL); in _Py_LegacyLocaleDetected()
424 const char *ctype_loc = setlocale(LC_CTYPE, NULL); in get_default_standard_stream_error_handler()
480 oldloc = _PyMem_RawStrdup(setlocale(LC_CTYPE, NULL)); in _Py_CoerceLegacyLocale()
490 const char *new_locale = setlocale(LC_CTYPE, in _Py_CoerceLegacyLocale()
500 _Py_SetLocaleFromEnv(LC_CTYPE); in _Py_CoerceLegacyLocale()
512 setlocale(LC_CTYPE, oldloc); in _Py_CoerceLegacyLocale()
846 _Py_SetLocaleFromEnv(LC_CTYPE); in _Py_InitializeCore()
/external/e2fsprogs/misc/
Duuidgen.c46 setlocale(LC_CTYPE, ""); in main()
Dpartinfo.c37 setlocale(LC_CTYPE, ""); in main()
/external/e2fsprogs/lib/ss/
Dmk_cmds.sh.in10 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
/external/libcxx/include/
Dclocale21 LC_CTYPE
/external/python/cpython2/Modules/
Dreadline.c24 # define RESTORE_LOCALE(sl) { setlocale(LC_CTYPE, sl); free(sl); }
908 char *saved_locale = strdup(setlocale(LC_CTYPE, NULL)); in setup_readline()
1128 char *saved_locale = strdup(setlocale(LC_CTYPE, NULL)); in call_readline()
1131 setlocale(LC_CTYPE, ""); in call_readline()
/external/mksh/src/
Dvar_spec.h59 FN(LC_CTYPE)

123456