Searched refs:oldloc (Results 1 – 10 of 10) sorted by relevance
/third_party/python/Python/ |
D | frozenmain.c | 28 char *oldloc = NULL; in Py_FrozenMain() local 57 oldloc = _PyMem_RawStrdup(setlocale(LC_ALL, NULL)); in Py_FrozenMain() 58 if (!oldloc) { in Py_FrozenMain() 74 setlocale(LC_ALL, oldloc); in Py_FrozenMain() 75 PyMem_RawFree(oldloc); in Py_FrozenMain() 76 oldloc = NULL; in Py_FrozenMain() 127 PyMem_RawFree(oldloc); in Py_FrozenMain()
|
D | fileutils.c | 2293 char *oldloc = NULL, *loc = NULL; in _Py_GetLocaleconvNumeric() local 2295 oldloc = setlocale(LC_CTYPE, NULL); in _Py_GetLocaleconvNumeric() 2296 if (!oldloc) { in _Py_GetLocaleconvNumeric() 2302 oldloc = _PyMem_Strdup(oldloc); in _Py_GetLocaleconvNumeric() 2303 if (!oldloc) { in _Py_GetLocaleconvNumeric() 2309 if (loc != NULL && strcmp(loc, oldloc) == 0) { in _Py_GetLocaleconvNumeric() 2345 setlocale(LC_CTYPE, oldloc); in _Py_GetLocaleconvNumeric() 2347 PyMem_Free(oldloc); in _Py_GetLocaleconvNumeric()
|
D | pylifecycle.c | 339 char *oldloc = NULL; in _Py_CoerceLegacyLocale() local 341 oldloc = _PyMem_RawStrdup(setlocale(LC_CTYPE, NULL)); in _Py_CoerceLegacyLocale() 342 if (oldloc == NULL) { in _Py_CoerceLegacyLocale() 372 setlocale(LC_CTYPE, oldloc); in _Py_CoerceLegacyLocale() 375 PyMem_RawFree(oldloc); in _Py_CoerceLegacyLocale()
|
/third_party/python/Modules/ |
D | _localemodule.c | 166 char *oldloc = NULL, *loc = NULL; in locale_decode_monetary() local 168 oldloc = setlocale(LC_CTYPE, NULL); in locale_decode_monetary() 169 if (!oldloc) { in locale_decode_monetary() 175 oldloc = _PyMem_Strdup(oldloc); in locale_decode_monetary() 176 if (!oldloc) { in locale_decode_monetary() 182 if (loc != NULL && strcmp(loc, oldloc) == 0) { in locale_decode_monetary() 228 setlocale(LC_CTYPE, oldloc); in locale_decode_monetary() 230 PyMem_Free(oldloc); in locale_decode_monetary()
|
/third_party/boost/libs/lexical_cast/test/ |
D | lexical_cast_float_types_test.cpp | 440 std::locale oldloc; member 441 ~restore_oldloc() { std::locale::global(oldloc); } in ~restore_oldloc() 477 std::locale const& oldloc = guard.oldloc; in test_conversion_from_to_float() local 479 std::string grouping1 = BOOST_USE_FACET(numpunct, oldloc).grouping(); in test_conversion_from_to_float()
|
D | lexical_cast_integral_types_test.cpp | 407 std::locale oldloc; member 408 ~restore_oldloc() { std::locale::global(oldloc); } in ~restore_oldloc() 487 std::locale const& oldloc = guard.oldloc; in test_conversion_from_to_integral() local 489 std::string grouping1 = BOOST_USE_FACET(numpunct, oldloc).grouping(); in test_conversion_from_to_integral()
|
/third_party/boost/boost/xpressive/detail/dynamic/ |
D | parser_traits.hpp | 84 locale_type oldloc = this->traits().imbue(loc); in imbue() local 87 return oldloc; in imbue()
|
/third_party/python/Lib/test/ |
D | test_format.py | 423 oldloc = locale.setlocale(locale.LC_ALL) 444 locale.setlocale(locale.LC_ALL, oldloc)
|
D | test_time.py | 568 self.oldloc = locale.setlocale(locale.LC_ALL) 571 locale.setlocale(locale.LC_ALL, self.oldloc)
|
/third_party/boost/boost/xpressive/ |
D | regex_compiler.hpp | 83 locale_type oldloc = this->traits_.imbue(loc); in imbue() local 85 return oldloc; in imbue()
|