Home
last modified time | relevance | path

Searched refs:intlFormat (Results 1 – 3 of 3) sorted by relevance

/third_party/libphonenumber/tools/java/common/src/com/google/i18n/phonenumbers/
DBuildMetadataFromXml.java251 NumberFormat.Builder intlFormat = NumberFormat.newBuilder(); in loadInternationalFormat() local
263 intlFormat.mergeFrom(nationalFormat); in loadInternationalFormat()
265 intlFormat.setPattern(numberFormatElement.getAttribute(PATTERN)); in loadInternationalFormat()
266 setLeadingDigitsPatterns(numberFormatElement, intlFormat); in loadInternationalFormat()
269 intlFormat.setFormat(intlFormatPatternValue); in loadInternationalFormat()
274 if (intlFormat.hasFormat()) { in loadInternationalFormat()
275 metadata.addIntlNumberFormat(intlFormat.build()); in loadInternationalFormat()
/third_party/libphonenumber/resources/
Dphonemetadata.proto249 // Note: this field is populated by setting a value for <intlFormat> inside
250 // the <numberFormat> tag in the XML file. If <intlFormat> is not set then it
254 // To set the <intlFormat> to a different value than the <format>:
257 // <intlFormat>$1-$2-$3</intlFormat>
260 // To have a format only used for national formatting, set <intlFormat> to
264 // <intlFormat>NA</intlFormat>
/third_party/libphonenumber/tools/java/common/test/com/google/i18n/phonenumbers/
DBuildMetadataFromXmlTest.java168 String intlFormat = "$1 $2"; in testLoadInternationalFormat() local
169 String xmlInput = "<numberFormat><intlFormat>" + intlFormat + "</intlFormat></numberFormat>"; in testLoadInternationalFormat()
176 assertEquals(intlFormat, metadata.getIntlNumberFormat(0).getFormat()); in testLoadInternationalFormat()
181 String intlFormat = "$1 $2"; in testLoadInternationalFormatWithBothNationalAndIntlFormatsDefined() local
182 String xmlInput = "<numberFormat><intlFormat>" + intlFormat + "</intlFormat></numberFormat>"; in testLoadInternationalFormatWithBothNationalAndIntlFormatsDefined()
190 assertEquals(intlFormat, metadata.getIntlNumberFormat(0).getFormat()); in testLoadInternationalFormatWithBothNationalAndIntlFormatsDefined()