Searched refs:intlFormat (Results 1 – 3 of 3) sorted by relevance
251 NumberFormat.Builder intlFormat = NumberFormat.newBuilder(); in loadInternationalFormat() local263 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()
249 // Note: this field is populated by setting a value for <intlFormat> inside250 // the <numberFormat> tag in the XML file. If <intlFormat> is not set then it254 // 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> to264 // <intlFormat>NA</intlFormat>
168 String intlFormat = "$1 $2"; in testLoadInternationalFormat() local169 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() local182 String xmlInput = "<numberFormat><intlFormat>" + intlFormat + "</intlFormat></numberFormat>"; in testLoadInternationalFormatWithBothNationalAndIntlFormatsDefined()190 assertEquals(intlFormat, metadata.getIntlNumberFormat(0).getFormat()); in testLoadInternationalFormatWithBothNationalAndIntlFormatsDefined()