• Home
  • Raw
  • Download

Lines Matching refs:icu

48                           icu::UnicodeString* setting) {  in ExtractStringSetting()
55 *setting = icu::UnicodeString::fromUTF8(*utf8_string); in ExtractStringSetting()
92 icu::SimpleDateFormat* CreateICUDateFormat( in CreateICUDateFormat()
94 const icu::Locale& icu_locale, in CreateICUDateFormat()
98 icu::TimeZone* tz = NULL; in CreateICUDateFormat()
99 icu::UnicodeString timezone; in CreateICUDateFormat()
101 tz = icu::TimeZone::createTimeZone(timezone); in CreateICUDateFormat()
103 tz = icu::TimeZone::createDefault(); in CreateICUDateFormat()
108 icu::Calendar* calendar = in CreateICUDateFormat()
109 icu::Calendar::createInstance(tz, icu_locale, status); in CreateICUDateFormat()
112 icu::GregorianCalendar::getStaticClassID()) { in CreateICUDateFormat()
113 icu::GregorianCalendar* gc = (icu::GregorianCalendar*)calendar; in CreateICUDateFormat()
123 icu::SimpleDateFormat* date_format = NULL; in CreateICUDateFormat()
124 icu::UnicodeString skeleton; in CreateICUDateFormat()
126 std::unique_ptr<icu::DateTimePatternGenerator> generator( in CreateICUDateFormat()
127 icu::DateTimePatternGenerator::createInstance(icu_locale, status)); in CreateICUDateFormat()
128 icu::UnicodeString pattern; in CreateICUDateFormat()
132 date_format = new icu::SimpleDateFormat(pattern, icu_locale, status); in CreateICUDateFormat()
149 const icu::Locale& icu_locale, in SetResolvedDateSettings()
150 icu::SimpleDateFormat* date_format, in SetResolvedDateSettings()
154 icu::UnicodeString pattern; in SetResolvedDateSettings()
165 const icu::Calendar* calendar = date_format->getCalendar(); in SetResolvedDateSettings()
174 const icu::TimeZone& tz = calendar->getTimeZone(); in SetResolvedDateSettings()
175 icu::UnicodeString time_zone; in SetResolvedDateSettings()
178 icu::UnicodeString canonical_time_zone; in SetResolvedDateSettings()
179 icu::TimeZone::getCanonicalID(time_zone, canonical_time_zone, status); in SetResolvedDateSettings()
201 icu::NumberingSystem* numbering_system = in SetResolvedDateSettings()
202 icu::NumberingSystem::createInstance(icu_locale, status); in SetResolvedDateSettings()
233 icu::DecimalFormat* CreateICUNumberFormat( in CreateICUNumberFormat()
235 const icu::Locale& icu_locale, in CreateICUNumberFormat()
240 icu::DecimalFormat* number_format = NULL; in CreateICUNumberFormat()
241 icu::UnicodeString style; in CreateICUNumberFormat()
242 icu::UnicodeString currency; in CreateICUNumberFormat()
245 icu::UnicodeString display; in CreateICUNumberFormat()
250 icu::NumberFormat::EStyles format_style; in CreateICUNumberFormat()
252 format_style = icu::NumberFormat::kIsoCurrencyStyle; in CreateICUNumberFormat()
254 format_style = icu::NumberFormat::kPluralCurrencyStyle; in CreateICUNumberFormat()
256 format_style = icu::NumberFormat::kCurrencyStyle; in CreateICUNumberFormat()
269 number_format = static_cast<icu::DecimalFormat*>( in CreateICUNumberFormat()
270 icu::NumberFormat::createInstance(icu_locale, format_style, status)); in CreateICUNumberFormat()
280 icu::toUCharPtr(currency.getTerminatedBuffer()), &status_digits); 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()
699 icu::SimpleDateFormat* DateFormat::InitializeDateTimeFormat( in InitializeDateTimeFormat()
706 icu::Locale icu_locale; in InitializeDateTimeFormat()
716 icu_locale = icu::Locale(icu_result); in InitializeDateTimeFormat()
719 icu::SimpleDateFormat* date_format = CreateICUDateFormat( in InitializeDateTimeFormat()
723 icu::Locale no_extension_locale(icu_locale.getBaseName()); in InitializeDateTimeFormat()
741 icu::SimpleDateFormat* DateFormat::UnpackDateFormat( in UnpackDateFormat()
744 return reinterpret_cast<icu::SimpleDateFormat*>(obj->GetInternalField(0)); in UnpackDateFormat()
748 delete reinterpret_cast<icu::SimpleDateFormat*>(data.GetInternalField(0)); in DeleteDateFormat()
753 icu::DecimalFormat* NumberFormat::InitializeNumberFormat( in InitializeNumberFormat()
760 icu::Locale icu_locale; in InitializeNumberFormat()
770 icu_locale = icu::Locale(icu_result); in InitializeNumberFormat()
773 icu::DecimalFormat* number_format = in InitializeNumberFormat()
777 icu::Locale no_extension_locale(icu_locale.getBaseName()); in InitializeNumberFormat()
796 icu::DecimalFormat* NumberFormat::UnpackNumberFormat( in UnpackNumberFormat()
799 return reinterpret_cast<icu::DecimalFormat*>(obj->GetInternalField(0)); in UnpackNumberFormat()
803 delete reinterpret_cast<icu::DecimalFormat*>(data.GetInternalField(0)); in DeleteNumberFormat()
808 icu::Collator* Collator::InitializeCollator( in InitializeCollator()
815 icu::Locale icu_locale; in InitializeCollator()
825 icu_locale = icu::Locale(icu_result); in InitializeCollator()
828 icu::Collator* collator = CreateICUCollator(isolate, icu_locale, options); in InitializeCollator()
831 icu::Locale no_extension_locale(icu_locale.getBaseName()); in InitializeCollator()
849 icu::Collator* Collator::UnpackCollator(Isolate* isolate, in UnpackCollator()
851 return reinterpret_cast<icu::Collator*>(obj->GetInternalField(0)); in UnpackCollator()
855 delete reinterpret_cast<icu::Collator*>(data.GetInternalField(0)); in DeleteCollator()
859 icu::BreakIterator* V8BreakIterator::InitializeBreakIterator( in InitializeBreakIterator()
864 icu::Locale icu_locale; in InitializeBreakIterator()
874 icu_locale = icu::Locale(icu_result); in InitializeBreakIterator()
877 icu::BreakIterator* break_iterator = CreateICUBreakIterator( in InitializeBreakIterator()
881 icu::Locale no_extension_locale(icu_locale.getBaseName()); in InitializeBreakIterator()
900 icu::BreakIterator* V8BreakIterator::UnpackBreakIterator(Isolate* isolate, in UnpackBreakIterator()
902 return reinterpret_cast<icu::BreakIterator*>(obj->GetInternalField(0)); in UnpackBreakIterator()
907 delete reinterpret_cast<icu::BreakIterator*>(data.GetInternalField(0)); in DeleteBreakIterator()
908 delete reinterpret_cast<icu::UnicodeString*>(data.GetInternalField(1)); in DeleteBreakIterator()