Home
last modified time | relevance | path

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

/bionic/libc/bionic/
Dlocale.cpp118 static bool __is_supported_locale(const char* locale_name) { in __is_supported_locale() argument
119 return (strcmp(locale_name, "") == 0 || in __is_supported_locale()
120 strcmp(locale_name, "C") == 0 || in __is_supported_locale()
121 strcmp(locale_name, "C.UTF-8") == 0 || in __is_supported_locale()
122 strcmp(locale_name, "en_US.UTF-8") == 0 || in __is_supported_locale()
123 strcmp(locale_name, "POSIX") == 0); in __is_supported_locale()
126 static bool __is_utf8_locale(const char* locale_name) { in __is_utf8_locale() argument
127 return (*locale_name == '\0' || strstr(locale_name, "UTF-8")); in __is_utf8_locale()
143 locale_t newlocale(int category_mask, const char* locale_name, locale_t /*base*/) { in newlocale() argument
145 if ((category_mask & ~LC_ALL_MASK) != 0 || locale_name == nullptr) { in newlocale()
[all …]