Home
last modified time | relevance | path

Searched refs:formattedNumber (Results 1 – 17 of 17) sorted by relevance

/external/icu/android_icu4j/testing/src/android/icu/extratest/number/
DFormattedNumberTest.java23 FormattedNumber formattedNumber = in test_enUS() local
25 assertEquals("Test toString()", "123.45", formattedNumber.toString()); in test_enUS()
26 assertEquals("Test charAt()", '2', formattedNumber.charAt(1)); in test_enUS()
27 assertEquals("Test length()", 6, formattedNumber.length()); in test_enUS()
28 assertEquals("Test subSequence()", "3.4", formattedNumber.subSequence(2,5)); in test_enUS()
30 formattedNumber.toBigDecimal()); in test_enUS()
/external/apache-xml/src/main/java/org/apache/xalan/templates/
DElemNumber.java1163 FastStringBuffer formattedNumber = StringBufferPool.get(); in formatNumberList() local
1259 formattedNumber.append(formatTokenString); in formatNumberList()
1262 formattedNumber.append(lastSep); in formatNumberList()
1265 list[i], formattedNumber); in formatNumberList()
1278 formattedNumber.append(lastSepString); in formatNumberList()
1284 formattedNumber.append(formatToken); in formatNumberList()
1287 numStr = formattedNumber.toString(); in formatNumberList()
1291 StringBufferPool.free(formattedNumber); in formatNumberList()
1317 FastStringBuffer formattedNumber) in getFormattedNumber() argument
1343 int2alphaCount(listElement, m_alphaCountTable, formattedNumber); in getFormattedNumber()
[all …]
/external/libphonenumber/libphonenumber/src/com/google/i18n/phonenumbers/
DPhoneNumberUtil.java1213 StringBuilder formattedNumber = new StringBuilder(20);
1214 format(number, numberFormat, formattedNumber);
1215 return formattedNumber.toString();
1223 StringBuilder formattedNumber) {
1225 formattedNumber.setLength(0);
1232 formattedNumber.append(nationalSignificantNumber);
1234 formattedNumber);
1238 formattedNumber.append(nationalSignificantNumber);
1249 formattedNumber.append(formatNsn(nationalSignificantNumber, metadata, numberFormat));
1250 maybeAppendFormattedExtension(number, metadata, numberFormat, formattedNumber);
[all …]
DAsYouTypeFormatter.java364 String formattedNumber = attemptToFormatAccruedDigits(); in inputDigitWithOptionToRememberPosition() local
365 if (formattedNumber.length() > 0) { in inputDigitWithOptionToRememberPosition()
366 return formattedNumber; in inputDigitWithOptionToRememberPosition()
428 String formattedNumber = m.replaceAll(numberFormat.getFormat()); in attemptToFormatAccruedDigits() local
435 String fullOutput = appendNationalNumber(formattedNumber); in attemptToFormatAccruedDigits()
498 String formattedNumber = attemptToFormatAccruedDigits(); in attemptToChooseFormattingPattern() local
499 if (formattedNumber.length() > 0) { in attemptToChooseFormattingPattern()
500 return formattedNumber; in attemptToChooseFormattingPattern()
/external/libphonenumber/repackaged/libphonenumber/src/com/android/i18n/phonenumbers/
DPhoneNumberUtil.java1248 StringBuilder formattedNumber = new StringBuilder(20);
1249 format(number, numberFormat, formattedNumber);
1250 return formattedNumber.toString();
1258 StringBuilder formattedNumber) {
1260 formattedNumber.setLength(0);
1267 formattedNumber.append(nationalSignificantNumber);
1269 formattedNumber);
1273 formattedNumber.append(nationalSignificantNumber);
1284 formattedNumber.append(formatNsn(nationalSignificantNumber, metadata, numberFormat));
1285 maybeAppendFormattedExtension(number, metadata, numberFormat, formattedNumber);
[all …]
DAsYouTypeFormatter.java369 String formattedNumber = attemptToFormatAccruedDigits(); in inputDigitWithOptionToRememberPosition() local
370 if (formattedNumber.length() > 0) { in inputDigitWithOptionToRememberPosition()
371 return formattedNumber; in inputDigitWithOptionToRememberPosition()
433 String formattedNumber = m.replaceAll(numberFormat.getFormat()); in attemptToFormatAccruedDigits() local
440 String fullOutput = appendNationalNumber(formattedNumber); in attemptToFormatAccruedDigits()
504 String formattedNumber = attemptToFormatAccruedDigits(); in attemptToChooseFormattingPattern() local
505 if (formattedNumber.length() > 0) { in attemptToChooseFormattingPattern()
506 return formattedNumber; in attemptToChooseFormattingPattern()
/external/icu/icu4c/source/i18n/
Dquantityformatter.cpp124 UnicodeString formattedNumber; in format() local
125 StandardPlural::Form p = selectPlural(number, fmt, rules, formattedNumber, pos, status); in format()
137 return format(*pattern, formattedNumber, appendTo, pos, status); in format()
147 UnicodeString &formattedNumber, in selectPlural() argument
162 decFmt->format(number, formattedNumber, pos, status); in selectPlural()
174 fmt.format(number, formattedNumber, pos, status); in selectPlural()
Dquantityformatter.h121 UnicodeString &formattedNumber,
Dmeasfmt.cpp690 UnicodeString formattedNumber; in formatMeasure() local
692 amtNumber, nf, **pluralRules, formattedNumber, pos, status); in formatMeasure()
700 return QuantityFormatter::format(formatter, formattedNumber, appendTo, pos, status); in formatMeasure()
/external/ims/rcs/presencepolling/src/com/android/service/ims/presence/
DPresenceContact.java47 public PresenceContact(String name, String number, String formattedNumber, String rawContactId, in PresenceContact() argument
51 mFormattedNumber = formattedNumber; in PresenceContact()
DEABDbUtil.java130 String formattedNumber = formatNumber(contactNumber); in validateAndSyncFromContactsDb() local
131 String uniquePhoneNum = formattedNumber + contactId in validateAndSyncFromContactsDb()
138 formattedNumber, rawContactId, contactId, dataId)); in validateAndSyncFromContactsDb()
142 + " formattedNumber: " + formattedNumber); in validateAndSyncFromContactsDb()
193 String phoneNumber, String formattedNumber, String rawContactId, String contactId, in addContactToEabDb() argument
199 .withValue(EABContract.EABColumns.FORMATTED_NUMBER, formattedNumber) in addContactToEabDb()
DEABProvider.java401 String formattedNumber = null; in verifyIfMdnExists() local
406 formattedNumber = cvalues.getAsString(EABContract.EABColumns.FORMATTED_NUMBER); in verifyIfMdnExists()
410 if (null == formattedNumber) { in verifyIfMdnExists()
427 String[] selectionArgs = new String[] { formattedNumber }; in verifyIfMdnExists()
440 if(contactNumberUtils.format(formattedNumber).equals( in verifyIfMdnExists()
DEABService.java971 String formattedNumber = EABDbUtil.formatNumber(phoneNumber); in handlePhoneNumberInsertion() local
973 contactListToInsert.add(new PresenceContact(contactName, phoneNumber, formattedNumber, in handlePhoneNumberInsertion()
/external/cldr/tools/java/org/unicode/cldr/util/
DVerifyCompactNumbers.java246 String formattedNumber = nf.format(source); in showNumbers() local
255 .addCell(formattedNumber) in showNumbers()
/external/icu/icu4c/source/test/intltest/
Dnumbertest_api.cpp3174 const char16_t* message, const FormattedNumber& formattedNumber, in assertNumberFieldPositions() argument
3181 static_cast<const FormattedValue&>(formattedNumber), in assertNumberFieldPositions()
3182 formattedNumber.toString(status), in assertNumberFieldPositions()
3188 …UnicodeString baseMessage = UnicodeString(message) + u": " + formattedNumber.toString(status) + u"… in assertNumberFieldPositions()
3190 formattedNumber.getAllFieldPositions(fpi, status); in assertNumberFieldPositions()
3213 UBool found = formattedNumber.nextFieldPosition(actual2, status); in assertNumberFieldPositions()
3236 found = formattedNumber.nextFieldPosition(actual2, status); in assertNumberFieldPositions()
Dnumbertest.h131 const FormattedNumber& formattedNumber,
/external/cldr/tools/java/org/unicode/cldr/test/
DExampleGenerator.java1118 String formattedNumber = unitDecimalFormat.format(example.getSource()); in formatCurrency() local
1120 resultItem = unitPattern.replace("{0}", formattedNumber).replace("{1}", unitName); in formatCurrency()