| Modifier and Type | Class and Description |
|---|---|
| public static enum |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static String | Returns: The pattern expressed in the other notation.The pattern to convert. input, DecimalFormatSymbols The symbols corresponding to the localized pattern. symbols, boolean true to convert from standard to localized notation; false to convert from localized to
standard notation. toLocalized)Converts a pattern between standard notation and localized notation. |
| private static int | Returns: The number of chars inserted.
|
| public static boolean | Returns: true if roundIncr should be ignored for formatting.The roundingIncrement to be checked. Must be non-null. roundIncrDec, int The current maximum fraction digits value. maxFrac)Determine whether a given roundingIncrement should be ignored for formatting based on the current maxFrac value (maximum fraction digits). |
| public static void | patternInfoToStringBuilder(AffixPatternProvider patternInfo, boolean isPrefix, PatternStringUtils.
This method contains the heart of the logic for rendering LDML affix strings. |
| public static String | Returns: A pattern string approximately serializing the property bag.The property bag to serialize. properties)Creates a pattern string from a property bag. |
| public static PatternStringUtils. |
| PatternStringUtils | back to summary |
|---|---|
| public PatternStringUtils() | |
| convertLocalized | back to summary |
|---|---|
| public static String convertLocalized(String input, DecimalFormatSymbols symbols, boolean toLocalized) Converts a pattern between standard notation and localized notation. Localized notation means that instead of using generic placeholders in the pattern, you use the corresponding locale-specific characters instead. For example, in locale fr-FR, the period in the pattern "0.000" means "decimal" in standard notation (as it does in every other locale), but it means "grouping" in localized notation. A greedy string-substitution strategy is used to substitute locale symbols. If two symbols are ambiguous or have the same prefix, the result is not well-defined. Locale symbols are not allowed to contain the ASCII quote character. This method is provided for backwards compatibility and should not be used in any new code.
| |
| escapePaddingString | back to summary |
|---|---|
private static int escapePaddingString(CharSequence input, StringBuilder output, int startIndex)
| |
| ignoreRoundingIncrement | back to summary |
|---|---|
| public static boolean ignoreRoundingIncrement(BigDecimal roundIncrDec, int maxFrac) Determine whether a given roundingIncrement should be ignored for formatting based on the current maxFrac value (maximum fraction digits). For example a roundingIncrement of 0.01 should be ignored if maxFrac is 1, but not if maxFrac is 2 or more. Note that roundingIncrements are rounded up in significance, so a roundingIncrement of 0.006 is treated like 0.01 for this determination, i.e. it should not be ignored if maxFrac is 2 or more (but a roundingIncrement of 0.005 is treated like 0.001 for significance). This test is needed for both NumberPropertyMapper.oldToNew and PatternStringUtils.propertiesToPatternString, but NumberPropertyMapper is package-private so we have it here.
| |
| patternInfoToStringBuilder | back to summary |
|---|---|
| public static void patternInfoToStringBuilder(AffixPatternProvider patternInfo, boolean isPrefix, PatternStringUtils. This method contains the heart of the logic for rendering LDML affix strings. It handles sign-always-shown resolution, whether to use the positive or negative subpattern, permille substitution, and plural forms for CurrencyPluralInfo. | |
| propertiesToPatternString | back to summary |
|---|---|
| public static String propertiesToPatternString(DecimalFormatProperties properties) Creates a pattern string from a property bag. Since pattern strings support only a subset of the functionality available in a property bag, a new property bag created from the string returned by this function may not be the same as the original property bag.
| |
| resolveSignDisplay | back to summary |
|---|---|
| public static PatternStringUtils. | |
| Modifier and Type | Field and Description |
|---|---|
| public static final PatternStringUtils. | |
| public static final PatternStringUtils. | |
| public static final PatternStringUtils. | |
| public static final PatternStringUtils. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static PatternStringUtils. | |
| public static PatternStringUtils. |
| NEG | back to summary |
|---|---|
| public static final PatternStringUtils. | |
| POS | back to summary |
|---|---|
| public static final PatternStringUtils. | |
| POS_SIGN | back to summary |
|---|---|
| public static final PatternStringUtils. | |
| VALUES | back to summary |
|---|---|
| public static final PatternStringUtils. | |
| PatternSignType | back to summary |
|---|---|
| private PatternSignType() | |
| valueOf | back to summary |
|---|---|
| public static PatternStringUtils. | |
| values | back to summary |
|---|---|
| public static PatternStringUtils. | |