Package com.ibm.icu.impl.number
Interface AffixPatternProvider
-
- All Known Implementing Classes:
CurrencyPluralInfoAffixProvider
,PatternStringParser.ParsedPatternInfo
,PropertiesAffixPatternProvider
public interface AffixPatternProvider
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
AffixPatternProvider.Flags
-
Field Summary
Fields Modifier and Type Field Description static int
FLAG_NEG_PREFIX
static int
FLAG_NEG_SUFFIX
static int
FLAG_POS_PREFIX
static int
FLAG_POS_SUFFIX
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description char
charAt(int flags, int i)
boolean
containsSymbolType(int type)
boolean
currencyAsDecimal()
True if the currency symbol should replace the decimal separator.java.lang.String
getString(int flags)
boolean
hasBody()
True if the pattern has a number placeholder like "0" or "#,##0.00"; false if the pattern does not have one.boolean
hasCurrencySign()
boolean
hasNegativeSubpattern()
int
length(int flags)
boolean
negativeHasMinusSign()
boolean
positiveHasPlusSign()
-
-
-
Field Detail
-
FLAG_POS_PREFIX
static final int FLAG_POS_PREFIX
- See Also:
- Constant Field Values
-
FLAG_POS_SUFFIX
static final int FLAG_POS_SUFFIX
- See Also:
- Constant Field Values
-
FLAG_NEG_PREFIX
static final int FLAG_NEG_PREFIX
- See Also:
- Constant Field Values
-
FLAG_NEG_SUFFIX
static final int FLAG_NEG_SUFFIX
- See Also:
- Constant Field Values
-
-
Method Detail
-
charAt
char charAt(int flags, int i)
-
length
int length(int flags)
-
getString
java.lang.String getString(int flags)
-
hasCurrencySign
boolean hasCurrencySign()
-
positiveHasPlusSign
boolean positiveHasPlusSign()
-
hasNegativeSubpattern
boolean hasNegativeSubpattern()
-
negativeHasMinusSign
boolean negativeHasMinusSign()
-
containsSymbolType
boolean containsSymbolType(int type)
-
hasBody
boolean hasBody()
True if the pattern has a number placeholder like "0" or "#,##0.00"; false if the pattern does not have one. This is used in cases like compact notation, where the pattern replaces the entire number instead of rendering the number.
-
currencyAsDecimal
boolean currencyAsDecimal()
True if the currency symbol should replace the decimal separator.
-
-