Lines Matching refs:icu

40                           icu::UnicodeString* setting) {  in ExtractStringSetting()
46 *setting = icu::UnicodeString::fromUTF8(*utf8_string); in ExtractStringSetting()
81 icu::SimpleDateFormat* CreateICUDateFormat( in CreateICUDateFormat()
83 const icu::Locale& icu_locale, in CreateICUDateFormat()
87 icu::TimeZone* tz = NULL; in CreateICUDateFormat()
88 icu::UnicodeString timezone; in CreateICUDateFormat()
90 tz = icu::TimeZone::createTimeZone(timezone); in CreateICUDateFormat()
92 tz = icu::TimeZone::createDefault(); in CreateICUDateFormat()
97 icu::Calendar* calendar = in CreateICUDateFormat()
98 icu::Calendar::createInstance(tz, icu_locale, status); in CreateICUDateFormat()
101 icu::GregorianCalendar::getStaticClassID()) { in CreateICUDateFormat()
102 icu::GregorianCalendar* gc = (icu::GregorianCalendar*)calendar; in CreateICUDateFormat()
112 icu::SimpleDateFormat* date_format = NULL; in CreateICUDateFormat()
113 icu::UnicodeString skeleton; in CreateICUDateFormat()
115 icu::DateTimePatternGenerator* generator = in CreateICUDateFormat()
116 icu::DateTimePatternGenerator::createInstance(icu_locale, status); in CreateICUDateFormat()
117 icu::UnicodeString pattern; in CreateICUDateFormat()
123 date_format = new icu::SimpleDateFormat(pattern, icu_locale, status); in CreateICUDateFormat()
140 const icu::Locale& icu_locale, in SetResolvedDateSettings()
141 icu::SimpleDateFormat* date_format, in SetResolvedDateSettings()
145 icu::UnicodeString pattern; in SetResolvedDateSettings()
156 const icu::Calendar* calendar = date_format->getCalendar(); in SetResolvedDateSettings()
162 const icu::TimeZone& tz = calendar->getTimeZone(); in SetResolvedDateSettings()
163 icu::UnicodeString time_zone; in SetResolvedDateSettings()
166 icu::UnicodeString canonical_time_zone; in SetResolvedDateSettings()
167 icu::TimeZone::getCanonicalID(time_zone, canonical_time_zone, status); in SetResolvedDateSettings()
189 icu::NumberingSystem* numbering_system = in SetResolvedDateSettings()
190 icu::NumberingSystem::createInstance(icu_locale, status); in SetResolvedDateSettings()
238 icu::DecimalFormat* CreateICUNumberFormat( in CreateICUNumberFormat()
240 const icu::Locale& icu_locale, in CreateICUNumberFormat()
245 icu::DecimalFormat* number_format = NULL; in CreateICUNumberFormat()
246 icu::UnicodeString style; in CreateICUNumberFormat()
247 icu::UnicodeString currency; in CreateICUNumberFormat()
250 icu::UnicodeString display; in CreateICUNumberFormat()
255 icu::NumberFormat::EStyles format_style; in CreateICUNumberFormat()
257 format_style = icu::NumberFormat::kIsoCurrencyStyle; in CreateICUNumberFormat()
259 format_style = icu::NumberFormat::kPluralCurrencyStyle; in CreateICUNumberFormat()
261 format_style = icu::NumberFormat::kCurrencyStyle; in CreateICUNumberFormat()
274 number_format = static_cast<icu::DecimalFormat*>( in CreateICUNumberFormat()
275 icu::NumberFormat::createInstance(icu_locale, format_style, status)); in CreateICUNumberFormat()
294 number_format = static_cast<icu::DecimalFormat*>( in CreateICUNumberFormat()
295 icu::NumberFormat::createPercentInstance(icu_locale, status)); in CreateICUNumberFormat()
304 number_format = static_cast<icu::DecimalFormat*>( in CreateICUNumberFormat()
305 icu::NumberFormat::createInstance(icu_locale, status)); in CreateICUNumberFormat()
356 number_format->setRoundingMode(icu::DecimalFormat::kRoundHalfUp); in CreateICUNumberFormat()
363 const icu::Locale& icu_locale, in SetResolvedNumberSettings()
364 icu::DecimalFormat* number_format, in SetResolvedNumberSettings()
367 icu::UnicodeString pattern; in SetResolvedNumberSettings()
378 icu::UnicodeString currency(number_format->getCurrency()); in SetResolvedNumberSettings()
393 icu::NumberingSystem* numbering_system = in SetResolvedNumberSettings()
394 icu::NumberingSystem::createInstance(icu_locale, status); in SetResolvedNumberSettings()
465 icu::Collator* CreateICUCollator( in CreateICUCollator()
467 const icu::Locale& icu_locale, in CreateICUCollator()
470 icu::Collator* collator = NULL; in CreateICUCollator()
472 collator = icu::Collator::createInstance(icu_locale, status); in CreateICUCollator()
491 icu::UnicodeString case_first; in CreateICUCollator()
503 icu::UnicodeString sensitivity; in CreateICUCollator()
506 collator->setStrength(icu::Collator::PRIMARY); in CreateICUCollator()
508 collator->setStrength(icu::Collator::SECONDARY); in CreateICUCollator()
510 collator->setStrength(icu::Collator::PRIMARY); in CreateICUCollator()
514 collator->setStrength(icu::Collator::TERTIARY); in CreateICUCollator()
530 const icu::Locale& icu_locale, in SetResolvedCollatorSettings()
531 icu::Collator* collator, in SetResolvedCollatorSettings()
636 icu::BreakIterator* CreateICUBreakIterator( in CreateICUBreakIterator()
638 const icu::Locale& icu_locale, in CreateICUBreakIterator()
641 icu::BreakIterator* break_iterator = NULL; in CreateICUBreakIterator()
642 icu::UnicodeString type; in CreateICUBreakIterator()
647 icu::BreakIterator::createCharacterInstance(icu_locale, status); in CreateICUBreakIterator()
650 icu::BreakIterator::createSentenceInstance(icu_locale, status); in CreateICUBreakIterator()
653 icu::BreakIterator::createLineInstance(icu_locale, status); in CreateICUBreakIterator()
657 icu::BreakIterator::createWordInstance(icu_locale, status); in CreateICUBreakIterator()
672 const icu::Locale& icu_locale, in SetResolvedBreakIteratorSettings()
673 icu::BreakIterator* break_iterator, in SetResolvedBreakIteratorSettings()
711 icu::SimpleDateFormat* DateFormat::InitializeDateTimeFormat( in InitializeDateTimeFormat()
718 icu::Locale icu_locale; in InitializeDateTimeFormat()
728 icu_locale = icu::Locale(icu_result); in InitializeDateTimeFormat()
731 icu::SimpleDateFormat* date_format = CreateICUDateFormat( in InitializeDateTimeFormat()
735 icu::Locale no_extension_locale(icu_locale.getBaseName()); in InitializeDateTimeFormat()
753 icu::SimpleDateFormat* DateFormat::UnpackDateFormat( in UnpackDateFormat()
761 return reinterpret_cast<icu::SimpleDateFormat*>( in UnpackDateFormat()
785 DeleteNativeObjectAt<icu::SimpleDateFormat>(data, 0); in DeleteDateFormat()
790 icu::DecimalFormat* NumberFormat::InitializeNumberFormat( in InitializeNumberFormat()
797 icu::Locale icu_locale; in InitializeNumberFormat()
807 icu_locale = icu::Locale(icu_result); in InitializeNumberFormat()
810 icu::DecimalFormat* number_format = in InitializeNumberFormat()
814 icu::Locale no_extension_locale(icu_locale.getBaseName()); in InitializeNumberFormat()
833 icu::DecimalFormat* NumberFormat::UnpackNumberFormat( in UnpackNumberFormat()
841 return reinterpret_cast<icu::DecimalFormat*>(obj->GetInternalField(0)); in UnpackNumberFormat()
850 DeleteNativeObjectAt<icu::DecimalFormat>(data, 0); in DeleteNumberFormat()
855 icu::Collator* Collator::InitializeCollator( in InitializeCollator()
862 icu::Locale icu_locale; in InitializeCollator()
872 icu_locale = icu::Locale(icu_result); in InitializeCollator()
875 icu::Collator* collator = CreateICUCollator(isolate, icu_locale, options); in InitializeCollator()
878 icu::Locale no_extension_locale(icu_locale.getBaseName()); in InitializeCollator()
896 icu::Collator* Collator::UnpackCollator(Isolate* isolate, in UnpackCollator()
902 return reinterpret_cast<icu::Collator*>(obj->GetInternalField(0)); in UnpackCollator()
911 DeleteNativeObjectAt<icu::Collator>(data, 0); in DeleteCollator()
916 icu::BreakIterator* BreakIterator::InitializeBreakIterator( in InitializeBreakIterator()
923 icu::Locale icu_locale; in InitializeBreakIterator()
933 icu_locale = icu::Locale(icu_result); in InitializeBreakIterator()
936 icu::BreakIterator* break_iterator = CreateICUBreakIterator( in InitializeBreakIterator()
940 icu::Locale no_extension_locale(icu_locale.getBaseName()); in InitializeBreakIterator()
960 icu::BreakIterator* BreakIterator::UnpackBreakIterator(Isolate* isolate, in UnpackBreakIterator()
967 return reinterpret_cast<icu::BreakIterator*>(obj->GetInternalField(0)); in UnpackBreakIterator()
976 DeleteNativeObjectAt<icu::BreakIterator>(data, 0); in DeleteBreakIterator()
977 DeleteNativeObjectAt<icu::UnicodeString>(data, 1); in DeleteBreakIterator()