Home
last modified time | relevance | path

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

/external/libcups/cups/
Dtestlang.c195 char locale_str[256], /* Locale ID C string */ in main() local
223 …if (!locale_id || !CFStringGetCString(locale_id, locale_str, (CFIndex)sizeof(locale_str), kCFStrin… in main()
232 printf("%d %s: FAIL (unable to get language ID string)\n", (int)j + 1, locale_str); in main()
239 …L (unable to convert language ID string to POSIX locale)\n", (int)j + 1, locale_str, language_str); in main()
251 …printf("%d %s(%s): FAIL (unable to load POSIX locale \"%s\")\n", (int)j + 1, locale_str, language_… in main()
258 … FAIL (unable to load POSIX locale \"%s\", got \"%s\")\n", (int)j + 1, locale_str, language_str, b… in main()
263 …printf("%d %s(%s): PASS (POSIX locale is \"%s\")\n", (int)j + 1, locale_str, language_str, buffer); in main()
/external/libtextclassifier/native/utils/i18n/
Dlocale-list.cc33 for (const StringPiece& locale_str : split_locales) { in ParseFrom() local
34 const Locale locale = Locale::FromBCP47(locale_str.ToString()); in ParseFrom()
37 << locale_str.ToString(); in ParseFrom()
Dlocale.cc225 for (const auto& locale_str : strings::Split(locales_list, ',')) { in ParseLocales() local
226 const Locale locale = Locale::FromBCP47(locale_str.ToString()); in ParseLocales()
228 TC3_LOG(ERROR) << "Invalid locale " << locale_str.ToString(); in ParseLocales()
/external/icu/icu4c/source/common/
Dlocalebuilder.cpp208 CharString locale_str("und-u-", errorCode); in _setUnicodeExtensions() local
209 locale_str.append(value, errorCode); in _setUnicodeExtensions()
211 Locale::forLanguageTag(locale_str.data(), errorCode), nullptr, in _setUnicodeExtensions()
436 CharString locale_str(language_, errorCode); in build() local
438 locale_str.append('-', errorCode).append(StringPiece(script_), errorCode); in build()
441 locale_str.append('-', errorCode).append(StringPiece(region_), errorCode); in build()
444 locale_str.append('-', errorCode).append(StringPiece(variant_->data()), errorCode); in build()
449 Locale product(locale_str.data()); in build()
/external/icu/libicu/test/src/
Duloc_jni_test.cpp98 std::unique_ptr<_jstring, decltype(jdeleter)> locale_str(env->NewStringUTF(localeID), jdeleter); in uloc_setDefault_java()
101 env->NewObject(ulocale_class.get(), ulocale_ctor, locale_str.get()), in uloc_setDefault_java()
/external/icu/icu4c/source/test/intltest/
Dloctest.cpp5832 std::string locale_str; in TestBug11053UnderlineTimeZone() local
5834 locale_str = "en-u-tz-"; in TestBug11053UnderlineTimeZone()
5835 locale_str += tz_in_ext[i]; in TestBug11053UnderlineTimeZone()
5836 Locale l(locale_str.c_str()); in TestBug11053UnderlineTimeZone()
5837 assertTrue((locale_str + " !l.isBogus()").c_str(), !l.isBogus()); in TestBug11053UnderlineTimeZone()
5840 locale_str = "en@timezone="; in TestBug11053UnderlineTimeZone()
5841 locale_str += tzname_with_underline[i]; in TestBug11053UnderlineTimeZone()
5842 Locale l(locale_str.c_str()); in TestBug11053UnderlineTimeZone()
5843 assertTrue((locale_str + " !l.isBogus()").c_str(), !l.isBogus()); in TestBug11053UnderlineTimeZone()
5845 locale_str = "en_US@timezone=America/Coral_Harbour"; in TestBug11053UnderlineTimeZone()
[all …]
/external/libtextclassifier/native/annotator/datetime/
Dregex-parser.cc307 for (const StringPiece& locale_str : locales) { in ParseAndExpandLocales() local
308 auto locale_it = locale_string_to_id_.find(locale_str.ToString()); in ParseAndExpandLocales()
313 const Locale locale = Locale::FromBCP47(locale_str.ToString()); in ParseAndExpandLocales()