Home
last modified time | relevance | path

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

/external/chromium_org/base/i18n/
Dnumber_formatting.cc34 number_format.reset(icu::NumberFormat::createInstance(status)); in Reset()
38 scoped_ptr<icu::NumberFormat> number_format; member
49 icu::NumberFormat* number_format = in FormatNumber() local
50 g_number_format_int.Get().number_format.get(); in FormatNumber()
52 if (!number_format) { in FormatNumber()
57 number_format->format(number, ustr); in FormatNumber()
63 icu::NumberFormat* number_format = in FormatDouble() local
64 g_number_format_float.Get().number_format.get(); in FormatDouble()
66 if (!number_format) { in FormatDouble()
70 number_format->setMaximumFractionDigits(fractional_digits); in FormatDouble()
[all …]
/external/chromium_org/v8/src/
Di18n.cc231 icu::DecimalFormat* number_format = NULL; in CreateICUNumberFormat() local
260 number_format = static_cast<icu::DecimalFormat*>( in CreateICUNumberFormat()
263 number_format = static_cast<icu::DecimalFormat*>( in CreateICUNumberFormat()
266 delete number_format; in CreateICUNumberFormat()
270 number_format->setMinimumFractionDigits(1); in CreateICUNumberFormat()
273 number_format = static_cast<icu::DecimalFormat*>( in CreateICUNumberFormat()
279 delete number_format; in CreateICUNumberFormat()
285 number_format->setCurrency(currency.getBuffer(), status); in CreateICUNumberFormat()
291 number_format->setMinimumIntegerDigits(digits); in CreateICUNumberFormat()
296 number_format->setMinimumFractionDigits(digits); in CreateICUNumberFormat()
[all …]
Druntime.cc14214 icu::DecimalFormat* number_format = NumberFormat::InitializeNumberFormat( in RUNTIME_FUNCTION() local
14217 if (!number_format) return isolate->ThrowIllegalOperation(); in RUNTIME_FUNCTION()
14219 local_object->SetInternalField(0, reinterpret_cast<Smi*>(number_format)); in RUNTIME_FUNCTION()
14246 icu::DecimalFormat* number_format = in RUNTIME_FUNCTION() local
14248 if (!number_format) return isolate->ThrowIllegalOperation(); in RUNTIME_FUNCTION()
14251 number_format->format(value->Number(), result); in RUNTIME_FUNCTION()
14274 icu::DecimalFormat* number_format = in RUNTIME_FUNCTION() local
14276 if (!number_format) return isolate->ThrowIllegalOperation(); in RUNTIME_FUNCTION()
14286 number_format->parse(u_number, result, status); in RUNTIME_FUNCTION()
/external/chromium_org/third_party/libphonenumber/src/phonenumbers/
Dasyoutypeformatter.cc178 const NumberFormat& number_format = **it; in MaybeCreateNewTemplate() local
179 const string& pattern = number_format.pattern(); in MaybeCreateNewTemplate()
183 if (CreateFormattingTemplate(number_format)) { in MaybeCreateNewTemplate()
185 SetShouldAddSpaceAfterNationalPrefix(number_format); in MaybeCreateNewTemplate()
202 : current_metadata_->number_format(); in GetAvailableFormats()
269 string number_format = format.format(); in CreateFormattingTemplate() local
272 GetFormattingTemplate(number_pattern, number_format, &temp_template); in CreateFormattingTemplate()
283 const string& number_format, in GetFormattingTemplate() argument
302 &a_phone_number, number_format); in GetFormattingTemplate()
492 const NumberFormat& number_format = **it; in AttemptToFormatAccruedDigits() local
[all …]
Dphonenumberutil.h289 PhoneNumberFormat number_format,
296 PhoneNumberFormat number_format,
699 PhoneNumberUtil::PhoneNumberFormat number_format,
706 PhoneNumberUtil::PhoneNumberFormat number_format,
727 PhoneNumberFormat number_format,
732 PhoneNumberFormat number_format,
739 PhoneNumberFormat number_format,
Dphonenumberutil.cc155 PhoneNumberUtil::PhoneNumberFormat number_format, in PrefixNumberWithCountryCallingCode() argument
157 switch (number_format) { in PrefixNumberWithCountryCallingCode()
868 PhoneNumberFormat number_format, in Format() argument
886 if (number_format == E164) { in Format()
910 FormatNsn(national_significant_number, *metadata, number_format, in Format()
912 MaybeAppendFormattedExtension(number, *metadata, number_format, in Format()
914 PrefixNumberWithCountryCallingCode(country_calling_code, number_format, in Format()
920 PhoneNumberFormat number_format, in FormatByPattern() argument
971 number_format, formatted_number); in FormatByPattern()
974 PrefixNumberWithCountryCallingCode(country_calling_code, number_format, in FormatByPattern()
[all …]
Dasyoutypeformatter.h109 const string& number_format,
Dphonenumbermatcher.cc681 alternate_formats->number_format().begin(); in CheckNumberGroupingIsValid()
682 it != alternate_formats->number_format().end(); ++it) { in CheckNumberGroupingIsValid()
749 phone_util_.ChooseFormattingPatternForNumber(metadata->number_format(), in IsNationalPrefixPresentIfRequired()
/external/chromium_org/third_party/libphonenumber/src/resources/
Dphonemetadata.proto219 repeated NumberFormat number_format = 19; field