Searched refs:numberFormatElement (Results 1 – 2 of 2) sorted by relevance
/third_party/libphonenumber/tools/java/common/src/com/google/i18n/phonenumbers/ |
D | BuildMetadataFromXml.java | 249 Element numberFormatElement, in loadInternationalFormat() argument 252 NodeList intlFormatPattern = numberFormatElement.getElementsByTagName(INTL_FORMAT); in loadInternationalFormat() 265 intlFormat.setPattern(numberFormatElement.getAttribute(PATTERN)); in loadInternationalFormat() 266 setLeadingDigitsPatterns(numberFormatElement, intlFormat); in loadInternationalFormat() 286 static void loadNationalFormat(PhoneMetadata.Builder metadata, Element numberFormatElement, in loadNationalFormat() argument 288 setLeadingDigitsPatterns(numberFormatElement, format); in loadNationalFormat() 289 format.setPattern(validateRE(numberFormatElement.getAttribute(PATTERN))); in loadNationalFormat() 291 NodeList formatPattern = numberFormatElement.getElementsByTagName(FORMAT); in loadNationalFormat() 325 Element numberFormatElement = (Element) numberFormatElements.item(i); in loadAvailableFormats() local 328 if (numberFormatElement.hasAttribute(NATIONAL_PREFIX_FORMATTING_RULE)) { in loadAvailableFormats() [all …]
|
/third_party/libphonenumber/tools/java/common/test/com/google/i18n/phonenumbers/ |
D | BuildMetadataFromXmlTest.java | 170 Element numberFormatElement = parseXmlString(xmlInput); in testLoadInternationalFormat() local 174 assertTrue(BuildMetadataFromXml.loadInternationalFormat(metadata, numberFormatElement, in testLoadInternationalFormat() 183 Element numberFormatElement = parseXmlString(xmlInput); in testLoadInternationalFormatWithBothNationalAndIntlFormatsDefined() local 188 assertTrue(BuildMetadataFromXml.loadInternationalFormat(metadata, numberFormatElement, in testLoadInternationalFormatWithBothNationalAndIntlFormatsDefined() 196 Element numberFormatElement = parseXmlString(xmlInput); in testLoadInternationalFormatExpectsOnlyOnePattern() local 201 BuildMetadataFromXml.loadInternationalFormat(metadata, numberFormatElement, in testLoadInternationalFormatExpectsOnlyOnePattern() 212 Element numberFormatElement = parseXmlString(xmlInput); in testLoadInternationalFormatUsesNationalFormatByDefault() local 218 assertFalse(BuildMetadataFromXml.loadInternationalFormat(metadata, numberFormatElement, in testLoadInternationalFormatUsesNationalFormatByDefault() 226 Element numberFormatElement = parseXmlString(xmlInput); in testLoadInternationalFormatCopiesNationalFormatData() local 232 assertFalse(BuildMetadataFromXml.loadInternationalFormat(metadata, numberFormatElement, in testLoadInternationalFormatCopiesNationalFormatData() [all …]
|