Searched defs:numberFormat (Results 1 - 25 of 34) sorted by relevance

12

/external/icu/icu4c/source/i18n/
H A Dnfsubs.h37 DecimalFormat* numberFormat; member in class:NFSubstitution
55 const DecimalFormat* getNumberFormat() const { return numberFormat; }
H A Dtimezone.cpp1333 NumberFormat* numberFormat = 0; local
1354 numberFormat = NumberFormat::createInstance(success);
1358 numberFormat->setParseIntegerOnly(TRUE);
1359 //numberFormat->setLenient(TRUE); // TODO: May need to set this, depends on latest timezone parsing
1364 numberFormat->parse(id, n, pos);
1366 delete numberFormat;
1374 delete numberFormat;
1381 numberFormat->parse(id, n, pos);
1384 delete numberFormat;
1390 delete numberFormat;
[all...]
/external/icu/icu4c/source/i18n/unicode/
H A Dplurfmt.h573 NumberFormat* numberFormat; member in class:PluralFormat
H A Dmeasfmt.h336 const SharedNumberFormat *numberFormat; member in class:MeasureFormat
/external/icu/android_icu4j/src/main/java/android/icu/text/
H A DQuantityFormatter.java60 * @param numberFormat used to actually format the number.
61 * @param pluralRules uses the number and the numberFormat to determine what plural
65 public String format(double number, NumberFormat numberFormat, PluralRules pluralRules) { argument
66 String formatStr = numberFormat.format(number);
67 StandardPlural p = selectPlural(number, numberFormat, pluralRules);
95 public static StandardPlural selectPlural(double number, NumberFormat numberFormat, PluralRules rules) { argument
97 if (numberFormat instanceof DecimalFormat) {
98 pluralKeyword = rules.select(((DecimalFormat) numberFormat).getFixedDecimal(number));
H A DNFSubstitution.java38 * (Either this or numberFormat has to be non-null.)
46 final DecimalFormat numberFormat; field in class:NFSubstitution
185 this.numberFormat = null;
192 this.numberFormat = null;
200 this.numberFormat = (DecimalFormat) ruleSet.owner.getDecimalFormat().clone();
201 this.numberFormat.applyPattern(description);
210 this.numberFormat = null;
253 && (numberFormat == null ? (that2.numberFormat == null) : numberFormat
[all...]
H A DPluralFormat.java174 private NumberFormat numberFormat = null; field in class:PluralFormat
353 * @param numberFormat The number formatter to use.
356 /*package*/ PluralFormat(ULocale ulocale, PluralType type, String pattern, NumberFormat numberFormat) { argument
357 init(null, type, ulocale, numberFormat);
371 * <code>numberFormat</code>: a <code>NumberFormat</code> for the locale
374 private void init(PluralRules rules, PluralType type, ULocale locale, NumberFormat numberFormat) { argument
379 this.numberFormat = (numberFormat == null) ? NumberFormat.getInstance(ulocale) : numberFormat;
592 return numberFormat
[all...]
H A DTimeUnitFormat.java170 private TimeUnitFormat(ULocale locale, int style, NumberFormat numberFormat) { argument
172 if (numberFormat != null) {
173 setNumberFormat((NumberFormat) numberFormat.clone());
H A DRelativeDateTimeFormatter.java449 // This class is thread-safe, yet numberFormat is not. To ensure thread-safety of this
450 // class we must guarantee that only one thread at a time uses our numberFormat.
451 synchronized (numberFormat) {
455 numberFormat, pluralRules, formatStr, fieldPosition);
666 // This class is thread-safe, yet numberFormat is not. To ensure thread-safety of this
667 // class we must guarantee that only one thread at a time uses our numberFormat.
668 synchronized (numberFormat) {
669 return (NumberFormat) numberFormat.clone();
708 NumberFormat numberFormat,
717 this.numberFormat
703 RelativeDateTimeFormatter( EnumMap<Style, EnumMap<AbsoluteUnit, EnumMap<Direction, String>>> qualitativeUnitMap, EnumMap<Style, EnumMap<RelativeUnit, String[][]>> patternMap, String combinedDateAndTime, PluralRules pluralRules, NumberFormat numberFormat, Style style, DisplayContext capitalizationContext, BreakIterator breakIterator, ULocale locale) argument
766 private final NumberFormat numberFormat; field in class:RelativeDateTimeFormatter
[all...]
H A DMeasureFormat.java122 private final transient ImmutableNumberFormat numberFormat; field in class:MeasureFormat
312 toAppendTo.append(formatMeasure((Measure) obj, numberFormat, new StringBuilder(), fpos));
386 int maxFrac = numberFormat.nf.getMaximumFractionDigits();
387 int minFrac = numberFormat.nf.getMinimumFractionDigits();
389 DecimalFormat currentNumberFormat = (DecimalFormat) numberFormat.get();
397 lowFormatted = numberFormat.format(lowNumber, new StringBuffer(), lowFpos);
398 highFormatted = numberFormat.format(highNumber, new StringBuffer(), highFpos);
489 return formatMeasure(newMeasure, numberFormat, appendTo, pos);
494 formatMeasure(measure, numberFormat, new StringBuilder(), fpos),
524 return formatMeasure(measures[0], numberFormat, appendT
1363 private NumberFormat numberFormat; field in class:MeasureFormat.MeasureProxy
1367 MeasureProxy( ULocale locale, FormatWidth width, NumberFormat numberFormat, int subClass) argument
[all...]
H A DDateFormat.java161 protected NumberFormat numberFormat; field in class:DateFormat
1460 numberFormat = (NumberFormat)newNumberFormat.clone();
1461 fixNumberFormatForDates(numberFormat);
1483 return numberFormat;
1635 return numberFormat.hashCode();
1650 ((numberFormat==null && other.numberFormat==null) ||
1651 (numberFormat!=null && other.numberFormat!=null && numberFormat
[all...]
H A DSimpleDateFormat.java1064 NumberFormat numberFormat, ULocale locale, boolean useFastFormat,String override) {
1068 this.numberFormat = numberFormat;
1111 if (numberFormat == null) {
1116 numberFormat = NumberFormat.getInstance(locale);
1120 numberFormat = new DateNumberFormat(locale, digitString, nsName);
1123 if (numberFormat instanceof DecimalFormat) {
1124 fixNumberFormatForDates(numberFormat);
1144 * the current numberFormat and update its digits if necessary. When false,
1152 if (numberFormat instanceo
1063 SimpleDateFormat(String pattern, DateFormatSymbols formatData, Calendar calendar, NumberFormat numberFormat, ULocale locale, boolean useFastFormat,String override) argument
[all...]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
H A DQuantityFormatter.java59 * @param numberFormat used to actually format the number.
60 * @param pluralRules uses the number and the numberFormat to determine what plural
64 public String format(double number, NumberFormat numberFormat, PluralRules pluralRules) { argument
65 String formatStr = numberFormat.format(number);
66 StandardPlural p = selectPlural(number, numberFormat, pluralRules);
94 public static StandardPlural selectPlural(double number, NumberFormat numberFormat, PluralRules rules) { argument
96 if (numberFormat instanceof DecimalFormat) {
97 pluralKeyword = rules.select(((DecimalFormat) numberFormat).getFixedDecimal(number));
H A DNFSubstitution.java37 * (Either this or numberFormat has to be non-null.)
45 final DecimalFormat numberFormat; field in class:NFSubstitution
184 this.numberFormat = null;
191 this.numberFormat = null;
199 this.numberFormat = (DecimalFormat) ruleSet.owner.getDecimalFormat().clone();
200 this.numberFormat.applyPattern(description);
209 this.numberFormat = null;
252 && (numberFormat == null ? (that2.numberFormat == null) : numberFormat
[all...]
H A DPluralFormat.java174 private NumberFormat numberFormat = null; field in class:PluralFormat
366 * @param numberFormat The number formatter to use.
369 /*package*/ PluralFormat(ULocale ulocale, PluralType type, String pattern, NumberFormat numberFormat) { argument
370 init(null, type, ulocale, numberFormat);
384 * <code>numberFormat</code>: a <code>NumberFormat</code> for the locale
387 private void init(PluralRules rules, PluralType type, ULocale locale, NumberFormat numberFormat) { argument
392 this.numberFormat = (numberFormat == null) ? NumberFormat.getInstance(ulocale) : numberFormat;
609 return numberFormat
[all...]
H A DTimeUnitFormat.java168 private TimeUnitFormat(ULocale locale, int style, NumberFormat numberFormat) { argument
170 if (numberFormat != null) {
171 setNumberFormat((NumberFormat) numberFormat.clone());
H A DRelativeDateTimeFormatter.java505 // This class is thread-safe, yet numberFormat is not. To ensure thread-safety of this
506 // class we must guarantee that only one thread at a time uses our numberFormat.
507 synchronized (numberFormat) {
511 numberFormat, pluralRules, formatStr, fieldPosition);
727 // This class is thread-safe, yet numberFormat is not. To ensure thread-safety of this
728 // class we must guarantee that only one thread at a time uses our numberFormat.
729 synchronized (numberFormat) {
730 return (NumberFormat) numberFormat.clone();
771 NumberFormat numberFormat,
780 this.numberFormat
766 RelativeDateTimeFormatter( EnumMap<Style, EnumMap<AbsoluteUnit, EnumMap<Direction, String>>> qualitativeUnitMap, EnumMap<Style, EnumMap<RelativeUnit, String[][]>> patternMap, String combinedDateAndTime, PluralRules pluralRules, NumberFormat numberFormat, Style style, DisplayContext capitalizationContext, BreakIterator breakIterator, ULocale locale) argument
829 private final NumberFormat numberFormat; field in class:RelativeDateTimeFormatter
[all...]
H A DMeasureFormat.java122 private final transient ImmutableNumberFormat numberFormat; field in class:MeasureFormat
328 toAppendTo.append(formatMeasure((Measure) obj, numberFormat, new StringBuilder(), fpos));
403 int maxFrac = numberFormat.nf.getMaximumFractionDigits();
404 int minFrac = numberFormat.nf.getMinimumFractionDigits();
406 DecimalFormat currentNumberFormat = (DecimalFormat) numberFormat.get();
414 lowFormatted = numberFormat.format(lowNumber, new StringBuffer(), lowFpos);
415 highFormatted = numberFormat.format(highNumber, new StringBuffer(), highFpos);
507 return formatMeasure(newMeasure, numberFormat, appendTo, pos);
512 formatMeasure(measure, numberFormat, new StringBuilder(), fpos),
543 return formatMeasure(measures[0], numberFormat, appendT
1392 private NumberFormat numberFormat; field in class:MeasureFormat.MeasureProxy
1396 MeasureProxy( ULocale locale, FormatWidth width, NumberFormat numberFormat, int subClass) argument
[all...]
H A DDateFormat.java163 protected NumberFormat numberFormat; field in class:DateFormat
1574 numberFormat = (NumberFormat)newNumberFormat.clone();
1575 fixNumberFormatForDates(numberFormat);
1598 return numberFormat;
1761 return numberFormat.hashCode();
1777 ((numberFormat==null && other.numberFormat==null) ||
1778 (numberFormat!=null && other.numberFormat!=null && numberFormat
[all...]
H A DSimpleDateFormat.java1070 NumberFormat numberFormat, ULocale locale, boolean useFastFormat,String override) {
1074 this.numberFormat = numberFormat;
1116 if (numberFormat == null) {
1121 numberFormat = NumberFormat.getInstance(locale);
1125 numberFormat = new DateNumberFormat(locale, digitString, nsName);
1128 if (numberFormat instanceof DecimalFormat) {
1129 fixNumberFormatForDates(numberFormat);
1149 * the current numberFormat and update its digits if necessary. When false,
1157 if (numberFormat instanceo
1069 SimpleDateFormat(String pattern, DateFormatSymbols formatData, Calendar calendar, NumberFormat numberFormat, ULocale locale, boolean useFastFormat,String override) argument
[all...]
/external/libphonenumber/libphonenumber/src/com/google/i18n/phonenumbers/
H A DAsYouTypeFormatter.java45 // The pattern from numberFormat that is currently used to create formattingTemplate.
80 // A pattern that is used to determine if a numberFormat under availableFormats is eligible to be
81 // used by the AYTF. It is eligible when the format element under numberFormat contains groups of
93 // formatter. The first element of the leadingDigitsPattern of each numberFormat contains a
154 NumberFormat numberFormat = it.next();
155 String pattern = numberFormat.getPattern();
159 if (createFormattingTemplate(numberFormat)) {
163 numberFormat.getNationalPrefixFormattingRule()).find();
245 private String getFormattingTemplate(String numberPattern, String numberFormat) { argument
257 // Formats the number according to numberFormat
[all...]
H A DPhoneNumberUtil.java1175 * @param numberFormat the format the phone number should be formatted into
1178 public String format(PhoneNumber number, PhoneNumberFormat numberFormat) { argument
1191 format(number, numberFormat, formattedNumber);
1199 public void format(PhoneNumber number, PhoneNumberFormat numberFormat, argument
1206 if (numberFormat == PhoneNumberFormat.E164) {
1226 formattedNumber.append(formatNsn(nationalSignificantNumber, metadata, numberFormat));
1227 maybeAppendFormattedExtension(number, metadata, numberFormat, formattedNumber);
1228 prefixNumberWithCountryCallingCode(countryCallingCode, numberFormat, formattedNumber);
1238 * @param numberFormat the format the phone number should be formatted into
1243 PhoneNumberFormat numberFormat,
1242 formatByPattern(PhoneNumber number, PhoneNumberFormat numberFormat, List<NumberFormat> userDefinedFormats) argument
1818 prefixNumberWithCountryCallingCode(int countryCallingCode, PhoneNumberFormat numberFormat, StringBuilder formattedNumber) argument
1839 formatNsn(String number, PhoneMetadata metadata, PhoneNumberFormat numberFormat) argument
1847 formatNsn(String number, PhoneMetadata metadata, PhoneNumberFormat numberFormat, CharSequence carrierCode) argument
1881 formatNsnUsingPattern(String nationalNumber, NumberFormat formattingPattern, PhoneNumberFormat numberFormat) argument
1889 formatNsnUsingPattern(String nationalNumber, NumberFormat formattingPattern, PhoneNumberFormat numberFormat, CharSequence carrierCode) argument
2096 maybeAppendFormattedExtension(PhoneNumber number, PhoneMetadata metadata, PhoneNumberFormat numberFormat, StringBuilder formattedNumber) argument
[all...]
/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base/src/com/ibm/icu/text/
H A DNumberFormat.java168 public final java.text.NumberFormat numberFormat; field in class:NumberFormat
175 this.numberFormat = delegate;
245 StringBuffer buf = numberFormat.format(number, toAppendTo, jdkPos);
263 return numberFormat.parse(source, parsePosition);
272 return numberFormat.format(number);
281 return numberFormat.format(number);
289 return numberFormat.format(number);
297 return numberFormat.format(number);
305 return numberFormat.format(number.toBigDecimal());
325 StringBuffer buf = numberFormat
[all...]
/external/v8/src/js/
H A Di18n.js1261 var numberFormat = %CreateNumberFormat(requestedLocale, internalOptions, variable
1269 %MarkAsInitializedIntlObjectOfType(numberFormat, 'numberformat');
1270 numberFormat[resolvedSymbol] = resolved;
1272 return numberFormat;
2101 var numberFormat = cachedOrNewService('numberformat', locales, options);
2102 return formatNumber(numberFormat, this);
/external/guice/lib/build/
H A Dspring-beans.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/springframework/ org/springframework/beans/ org/springframework/beans/annotation/ ...

Completed in 1606 milliseconds

12