Home
last modified time | relevance | path

Searched refs:old_locale (Results 1 – 23 of 23) sorted by relevance

/third_party/boost/libs/math/test/
Dtest_nonfinite_io.cpp69 std::locale old_locale;
70 std::locale tmp_locale(old_locale,
128 std::locale old_locale;
129 std::locale new_locale(old_locale,
149 std::locale old_locale;
150 std::locale tmp_locale(old_locale, new nonfinite_num_put<CharType>);
197 std::locale old_locale;
198 std::locale new_locale(old_locale,
218 std::locale old_locale;
219 std::locale tmp_locale(old_locale, new nonfinite_num_put<CharType>);
[all …]
Dtest_nonfinite_trap.cpp63 std::locale old_locale; in trap_test_finite_impl() local
64 std::locale tmp_locale(old_locale, in trap_test_finite_impl()
122 std::locale old_locale; in trap_test_put_inf_impl() local
123 std::locale new_locale(old_locale, in trap_test_put_inf_impl()
143 std::locale old_locale; in trap_test_get_inf_impl() local
144 std::locale tmp_locale(old_locale, new nonfinite_num_put<CharType>); in trap_test_get_inf_impl()
191 std::locale old_locale; in trap_test_put_nan_impl() local
192 std::locale new_locale(old_locale, in trap_test_put_nan_impl()
212 std::locale old_locale; in trap_test_get_nan_impl() local
213 std::locale tmp_locale(old_locale, new nonfinite_num_put<CharType>); in trap_test_get_nan_impl()
Dtest_basic_nonfinite.cpp85 std::locale old_locale; in basic_test_finite_impl() local
86 std::locale tmp_locale(old_locale, new nonfinite_num_put<CharType>); in basic_test_finite_impl()
137 std::locale old_locale; in basic_test_inf_impl() local
138 std::locale tmp_locale(old_locale, new nonfinite_num_put<CharType>); in basic_test_inf_impl()
187 std::locale old_locale; in basic_test_nan_impl() local
188 std::locale tmp_locale(old_locale, new nonfinite_num_put<CharType>); in basic_test_nan_impl()
245 std::locale old_locale; in basic_test_format_impl() local
246 std::locale tmp_locale(old_locale, new nonfinite_num_put<CharType>); in basic_test_format_impl()
Dtest_legacy_nonfinite.cpp75 std::locale old_locale; in legacy_test_inf_impl() local
76 std::locale new_locale(old_locale, new nonfinite_num_get<CharType>(legacy)); in legacy_test_inf_impl()
112 std::locale old_locale; in legacy_test_nan_impl() local
113 std::locale new_locale(old_locale, new nonfinite_num_get<CharType>(legacy)); in legacy_test_nan_impl()
Dtest_signed_zero.cpp73 std::locale old_locale; in signed_zero_test_impl() local
75 old_locale, new nonfinite_num_put<CharType>(signed_zero)); in signed_zero_test_impl()
114 std::locale old_locale;\
115 std::locale tmp_locale(old_locale, new nonfinite_num_put<char>(0));\
124 std::locale old_locale;\
125 std::locale tmp_locale(old_locale, new nonfinite_num_put<char>(signed_zero));\
Dtest_lexical_cast.cpp61 std::locale old_locale; in lexical_cast_test_impl() local
62 std::locale tmp_locale(old_locale, in lexical_cast_test_impl()
117 std::locale::global(old_locale); in lexical_cast_test_impl()
/third_party/protobuf/src/google/protobuf/stubs/
Dstringprintf_unittest.cc94 char* old_locale = setlocale(LC_CTYPE, nullptr); in TEST() local
118 setlocale(LC_CTYPE, old_locale); in TEST()
123 char* old_locale = setlocale(LC_CTYPE, nullptr); in TEST() local
126 setlocale(LC_CTYPE, old_locale); in TEST()
Dstrutil_unittest.cc55 string old_locale = old_locale_cstr; in TEST() local
74 setlocale(LC_NUMERIC, old_locale.c_str()); in TEST()
/third_party/libsnd/tests/
Dlocale_test.c135 const char *old_locale ; in locale_test()
143 if ((old_locale = setlocale (LC_CTYPE, utf8_locname)) == NULL) in locale_test()
164 setlocale (LC_CTYPE, old_locale) ; in locale_test()
/third_party/musl/src/signal/
Dpsignal.c17 void *old_locale = f->locale; in psignal() local
24 f->locale = old_locale; in psignal()
/third_party/musl/porting/liteos_a/kernel/src/stdio/
Dperror.c15 void *old_locale = f->locale; in perror() local
27 f->locale = old_locale; in perror()
/third_party/musl/porting/uniproton/kernel/src/stdio/
Dperror.c15 void *old_locale = f->locale; in perror() local
27 f->locale = old_locale; in perror()
/third_party/musl/src/stdio/
Dperror.c15 void *old_locale = f->locale; in perror() local
27 f->locale = old_locale; in perror()
/third_party/musl/porting/liteos_m/kernel/src/stdio/
Dperror.c15 void *old_locale = f->locale; in perror() local
27 f->locale = old_locale; in perror()
/third_party/abseil-cpp/absl/strings/
Dascii_test.cc135 const char* old_locale = setlocale(LC_CTYPE, "C"); in TEST() local
136 ASSERT_TRUE(old_locale != nullptr); in TEST()
157 ASSERT_TRUE(setlocale(LC_CTYPE, old_locale)); in TEST()
164 const char* old_locale = setlocale(LC_CTYPE, "C"); in TEST() local
165 ASSERT_TRUE(old_locale != nullptr); in TEST()
191 ASSERT_TRUE(setlocale(LC_CTYPE, old_locale)); in TEST()
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/
Dascii_test.cc135 const char* old_locale = setlocale(LC_CTYPE, "C"); in TEST() local
136 ASSERT_TRUE(old_locale != nullptr); in TEST()
157 ASSERT_TRUE(setlocale(LC_CTYPE, old_locale)); in TEST()
164 const char* old_locale = setlocale(LC_CTYPE, "C"); in TEST() local
165 ASSERT_TRUE(old_locale != nullptr); in TEST()
191 ASSERT_TRUE(setlocale(LC_CTYPE, old_locale)); in TEST()
/third_party/boost/libs/math/example/
Dnonfinite_facet_sstream.cpp45 locale old_locale; in main() local
46 locale tmp_locale(old_locale, new nonfinite_num_put<char>); in main()
/third_party/boost/libs/multiprecision/example/
Dnumeric_limits_snips.cpp439 std::locale old_locale; in BOOST_AUTO_TEST_CASE() local
440 std::locale tmp_locale(old_locale, new nonfinite_num_put<char>); in BOOST_AUTO_TEST_CASE()
462 std::locale old_locale; in BOOST_AUTO_TEST_CASE() local
463 std::locale tmp_locale(old_locale, new nonfinite_num_put<char>); in BOOST_AUTO_TEST_CASE()
/third_party/icu/icu4c/source/test/intltest/
Dwinnmtst.cpp322 char *old_locale = strdup(setlocale(LC_ALL, NULL)); in testLocales()
329 setlocale(LC_ALL, old_locale); in testLocales()
331 free(old_locale); in testLocales()
/third_party/python/Lib/test/
Dtest__locale.py36 old_locale = locale.setlocale(locale.LC_ALL)
54 locale.setlocale(locale.LC_ALL, old_locale)
/third_party/glib/glib/tests/
Dkeyfile.c714 gchar *old_locale; in test_locale_string() local
741 old_locale = g_strdup (setlocale (LC_ALL, NULL)); in test_locale_string()
757 setlocale (LC_ALL, old_locale); in test_locale_string()
758 g_free (old_locale); in test_locale_string()
766 gchar *old_locale = NULL; in test_locale_string_multiple_loads() local
781 old_locale = g_strdup (setlocale (LC_ALL, NULL)); in test_locale_string_multiple_loads()
799 setlocale (LC_ALL, old_locale); in test_locale_string_multiple_loads()
800 g_free (old_locale); in test_locale_string_multiple_loads()
Doption-context.c644 char *old_locale, *current_locale; in arg_test5() local
659 old_locale = g_strdup (setlocale (LC_NUMERIC, locale)); in arg_test5()
675 setlocale (LC_NUMERIC, old_locale); in arg_test5()
676 g_free (old_locale); in arg_test5()
/third_party/glib/glib/
Dgstrfuncs.c955 locale_t old_locale; in g_ascii_formatd() local
957 old_locale = uselocale (get_C_locale ()); in g_ascii_formatd()
959 uselocale (old_locale); in g_ascii_formatd()