• Home
  • Raw
  • Download

Lines Matching refs:icu

116     const std::vector<icu::PluralFormat*>& formatter(FormatType format_type) {  in formatter()
173 std::vector<icu::PluralFormat*> short_formatter_;
174 std::vector<icu::PluralFormat*> time_left_formatter_;
175 std::vector<icu::PluralFormat*> time_elapsed_formatter_;
177 std::vector<icu::PluralFormat*>* time_formats);
178 static icu::PluralFormat* createFallbackFormat(
179 const icu::PluralRules& rules, int index, FormatType format_type);
188 FormatType format_type, std::vector<icu::PluralFormat*>* time_formats) { in BuildFormats()
189 static const icu::UnicodeString kKeywords[] = { in BuildFormats()
195 scoped_ptr<icu::PluralRules> rules( in BuildFormats()
196 icu::PluralRules::forLocale(icu::Locale::getDefault(), err)); in BuildFormats()
199 icu::UnicodeString fallback_rules("one: n is 1", -1, US_INV); in BuildFormats()
200 rules.reset(icu::PluralRules::createRules(fallback_rules, err)); in BuildFormats()
207 icu::UnicodeString pattern; in BuildFormats()
220 pattern += icu::UnicodeString(sub_pattern.c_str(), "UTF-8"); in BuildFormats()
224 icu::PluralFormat* format = new icu::PluralFormat(*rules, pattern, err); in BuildFormats()
238 icu::PluralFormat* TimeFormatter::createFallbackFormat( in createFallbackFormat()
239 const icu::PluralRules& rules, int index, FormatType format_type) { in createFallbackFormat()
240 static const icu::UnicodeString kUnits[4][2] = { in createFallbackFormat()
246 icu::UnicodeString suffix(GetFallbackFormatSuffix(format_type), -1, US_INV); in createFallbackFormat()
247 icu::UnicodeString pattern; in createFallbackFormat()
253 icu::PluralFormat* format = new icu::PluralFormat(rules, pattern, err); in createFallbackFormat()
266 const std::vector<icu::PluralFormat*>& formatters = in FormatTimeImpl()
270 icu::UnicodeString time_string; in FormatTimeImpl()