Home
last modified time | relevance | path

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

/external/icu/android_icu4j/src/main/java/android/icu/text/
DMessageFormat.java675 public void setFormatByArgumentIndex(int argumentIndex, Format newFormat) { in setFormatByArgumentIndex() argument
683 setCustomArgStartFormat(partIndex, newFormat); in setFormatByArgumentIndex()
706 public void setFormatByArgumentName(String argumentName, Format newFormat) { in setFormatByArgumentName() argument
713 setCustomArgStartFormat(partIndex, newFormat); in setFormatByArgumentName()
735 public void setFormat(int formatElementIndex, Format newFormat) { in setFormat() argument
739 setCustomArgStartFormat(partIndex, newFormat); in setFormat()
2147 Format newFormat = null; in createAppropriateFormat() local
2153 newFormat = NumberFormat.getInstance(ulocale); in createAppropriateFormat()
2156 newFormat = NumberFormat.getCurrencyInstance(ulocale); in createAppropriateFormat()
2159 newFormat = NumberFormat.getPercentInstance(ulocale); in createAppropriateFormat()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DMessageFormat.java693 public void setFormatByArgumentIndex(int argumentIndex, Format newFormat) { in setFormatByArgumentIndex() argument
701 setCustomArgStartFormat(partIndex, newFormat); in setFormatByArgumentIndex()
725 public void setFormatByArgumentName(String argumentName, Format newFormat) { in setFormatByArgumentName() argument
732 setCustomArgStartFormat(partIndex, newFormat); in setFormatByArgumentName()
755 public void setFormat(int formatElementIndex, Format newFormat) { in setFormat() argument
759 setCustomArgStartFormat(partIndex, newFormat); in setFormat()
2194 Format newFormat = null; in createAppropriateFormat() local
2200 newFormat = NumberFormat.getInstance(ulocale); in createAppropriateFormat()
2203 newFormat = NumberFormat.getCurrencyInstance(ulocale); in createAppropriateFormat()
2206 newFormat = NumberFormat.getPercentInstance(ulocale); in createAppropriateFormat()
[all …]
/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base/src/com/ibm/icu/text/
DMessageFormat.java694 public void setFormatByArgumentIndex(int argumentIndex, Format newFormat) { in setFormatByArgumentIndex() argument
695 messageFormat.setFormatByArgumentIndex(argumentIndex, newFormat); in setFormatByArgumentIndex()
740 public void setFormat(int formatElementIndex, Format newFormat) { in setFormat() argument
741 messageFormat.setFormat(formatElementIndex, newFormat); in setFormat()
/external/icu/icu4c/source/i18n/
Dmsgfmt.cpp660 Format* newFormat = NULL; in setFormats() local
662 newFormat = newFormats[formatNumber]->clone(); in setFormats()
663 if (newFormat == NULL) { in setFormats()
667 setCustomArgStartFormat(partIndex, newFormat, status); in setFormats()
680 MessageFormat::adoptFormat(int32_t n, Format *newFormat) { in adoptFormat() argument
681 LocalPointer<Format> p(newFormat); in adoptFormat()
736 MessageFormat::setFormat(int32_t n, const Format& newFormat) { in setFormat() argument
743 Format* new_format = newFormat.clone(); in setFormat()
780 const Format& newFormat, in setFormat() argument
793 Format* new_format = newFormat.clone(); in setFormat()
[all …]
Dsmpdtfmt.cpp2015 const SharedNumberFormat *newFormat = createSharedNumberFormat(fmt.orphan()); in adoptNumberFormat() local
2016 if (newFormat == NULL) { in adoptNumberFormat()
2026 newFormat->deleteIfZeroRefCount(); in adoptNumberFormat()
2032 newFormat, fSharedNumberFormatters[patternCharIndex]); in adoptNumberFormat()
2034 newFormat->deleteIfZeroRefCount(); in adoptNumberFormat()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DDateTimeGeneratorTest.java649 SimpleDateFormat newFormat = new SimpleDateFormat(newPattern, locales[i]); in TestReplacingZoneString() local
650 newFormat.setTimeZone(testTimeZone); in TestReplacingZoneString()
651 String formatted = newFormat.format(testDate); in TestReplacingZoneString()
654 newFormat.parse(formatted, calendar, parsePosition); in TestReplacingZoneString()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DDateTimeGeneratorTest.java646 SimpleDateFormat newFormat = new SimpleDateFormat(newPattern, locales[i]); in TestReplacingZoneString() local
647 newFormat.setTimeZone(testTimeZone); in TestReplacingZoneString()
648 String formatted = newFormat.format(testDate); in TestReplacingZoneString()
651 newFormat.parse(formatted, calendar, parsePosition); in TestReplacingZoneString()
/external/libphonenumber/libphonenumber/src/com/google/i18n/phonenumbers/
DPhoneNumberUtil.java1756 NumberFormat.Builder newFormat = NumberFormat.newBuilder();
1757 newFormat.mergeFrom(formattingPattern);
1759 newFormat.setPattern("(\\d+)(.*)");
1761 newFormat.setFormat("$1$2");
1767 return formatNsnUsingPattern(rawInput, newFormat, PhoneNumberFormat.NATIONAL);
/external/libphonenumber/repackaged/libphonenumber/src/com/android/i18n/phonenumbers/
DPhoneNumberUtil.java1792 NumberFormat.Builder newFormat = NumberFormat.newBuilder();
1793 newFormat.mergeFrom(formattingPattern);
1795 newFormat.setPattern("(\\d+)(.*)");
1797 newFormat.setFormat("$1$2");
1803 return formatNsnUsingPattern(rawInput, newFormat, PhoneNumberFormat.NATIONAL);