Home
last modified time | relevance | path

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

/external/libiio/src/
Dutilities.c40 char *end, *old_locale; in read_double_locale() local
46 old_locale = iio_strdup(setlocale(LC_NUMERIC, NULL)); in read_double_locale()
47 if (!old_locale) in read_double_locale()
52 setlocale(LC_NUMERIC, old_locale); in read_double_locale()
53 free(old_locale); in read_double_locale()
65 char *old_locale = iio_strdup(setlocale(LC_NUMERIC, NULL)); in write_double_locale() local
66 if (!old_locale) in write_double_locale()
71 setlocale(LC_NUMERIC, old_locale); in write_double_locale()
72 free(old_locale); in write_double_locale()
109 locale_t old_locale, new_locale; in read_double_locale() local
[all …]
/external/tensorflow/tensorflow/core/platform/
Dstringprintf_test.cc69 char* old_locale = setlocale(LC_CTYPE, nullptr); in TEST() local
93 setlocale(LC_CTYPE, old_locale); in TEST()
98 char* old_locale = setlocale(LC_CTYPE, nullptr); in TEST() local
101 setlocale(LC_CTYPE, old_locale); in TEST()
/external/cronet/third_party/protobuf/src/google/protobuf/stubs/
Dstringprintf_unittest.cc96 std::string old_locale = old_locale_c; in TEST() local
119 setlocale(LC_CTYPE, old_locale.c_str()); in TEST()
126 std::string old_locale = old_locale_c; in TEST() local
129 setlocale(LC_CTYPE, old_locale.c_str()); in TEST()
Dstrutil_unittest.cc55 std::string old_locale = old_locale_cstr; in TEST() local
74 setlocale(LC_NUMERIC, old_locale.c_str()); in TEST()
/external/protobuf/src/google/protobuf/stubs/
Dstringprintf_unittest.cc96 std::string old_locale = old_locale_c; in TEST() local
119 setlocale(LC_CTYPE, old_locale.c_str()); in TEST()
126 std::string old_locale = old_locale_c; in TEST() local
129 setlocale(LC_CTYPE, old_locale.c_str()); in TEST()
Dstrutil_unittest.cc55 std::string old_locale = old_locale_cstr; in TEST() local
74 setlocale(LC_NUMERIC, old_locale.c_str()); in TEST()
/external/musl/src/signal/
Dpsignal.c17 void *old_locale = f->locale; in psignal() local
24 f->locale = old_locale; in psignal()
/external/musl/src/stdio/
Dperror.c15 void *old_locale = f->locale; in perror() local
27 f->locale = old_locale; in perror()
/external/webrtc/third_party/abseil-cpp/absl/strings/
Dascii_test.cc131 const char* old_locale = setlocale(LC_CTYPE, "C"); in TEST() local
132 ASSERT_TRUE(old_locale != nullptr); in TEST()
154 ASSERT_TRUE(setlocale(LC_CTYPE, old_locale)); in TEST()
161 const char* old_locale = setlocale(LC_CTYPE, "C"); in TEST() local
162 ASSERT_TRUE(old_locale != nullptr); in TEST()
183 ASSERT_TRUE(setlocale(LC_CTYPE, old_locale)); in TEST()
/external/cronet/third_party/abseil-cpp/absl/strings/
Dascii_test.cc132 const char* old_locale = setlocale(LC_CTYPE, "C"); in TEST() local
133 ASSERT_TRUE(old_locale != nullptr); in TEST()
155 ASSERT_TRUE(setlocale(LC_CTYPE, old_locale)); in TEST()
162 const char* old_locale = setlocale(LC_CTYPE, "C"); in TEST() local
163 ASSERT_TRUE(old_locale != nullptr); in TEST()
184 ASSERT_TRUE(setlocale(LC_CTYPE, old_locale)); in TEST()
/external/angle/third_party/abseil-cpp/absl/strings/
Dascii_test.cc132 const char* old_locale = setlocale(LC_CTYPE, "C"); in TEST() local
133 ASSERT_TRUE(old_locale != nullptr); in TEST()
155 ASSERT_TRUE(setlocale(LC_CTYPE, old_locale)); in TEST()
162 const char* old_locale = setlocale(LC_CTYPE, "C"); in TEST() local
163 ASSERT_TRUE(old_locale != nullptr); in TEST()
184 ASSERT_TRUE(setlocale(LC_CTYPE, old_locale)); in TEST()
/external/rust/crates/grpcio-sys/grpc/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()
/external/libtextclassifier/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()
/external/tensorflow/third_party/absl/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()
/external/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()
/external/openscreen/third_party/abseil/src/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()
/external/libiio/src/examples/
Diio-monitor.c65 char *old_locale; in get_channel_value() local
69 old_locale = strdup(setlocale(LC_NUMERIC, NULL)); in get_channel_value()
90 setlocale(LC_NUMERIC, old_locale); in get_channel_value()
91 free(old_locale); in get_channel_value()
/external/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()
/external/cronet/third_party/icu/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()
/external/python/cpython3/Lib/test/
Dtest__locale.py36 old_locale = locale.setlocale(locale.LC_ALL)
54 locale.setlocale(locale.LC_ALL, old_locale)