Home
last modified time | relevance | path

Searched refs:old_locale (Results 1 – 13 of 13) 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/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()
/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/angle/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/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/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/webrtc/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/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/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/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/python/cpython3/Lib/test/
Dtest__locale.py36 old_locale = locale.setlocale(locale.LC_ALL)
54 locale.setlocale(locale.LC_ALL, old_locale)