LEFT | RIGHT |
(no file at all) | |
1 // © 2017 and later: Unicode, Inc. and others. | 1 // © 2017 and later: Unicode, Inc. and others. |
2 // License & terms of use: http://www.unicode.org/copyright.html#License | 2 // License & terms of use: http://www.unicode.org/copyright.html#License |
3 package com.ibm.icu.impl.number; | 3 package com.ibm.icu.impl.number; |
4 | 4 |
5 public interface AffixPatternProvider { | 5 public interface AffixPatternProvider { |
6 public static final class Flags { | 6 public static final class Flags { |
7 public static final int PLURAL_MASK = 0xff; | 7 public static final int PLURAL_MASK = 0xff; |
8 public static final int PREFIX = 0x100; | 8 public static final int PREFIX = 0x100; |
9 public static final int NEGATIVE_SUBPATTERN = 0x200; | 9 public static final int NEGATIVE_SUBPATTERN = 0x200; |
10 public static final int PADDING = 0x400; | 10 public static final int PADDING = 0x400; |
11 } | 11 } |
12 | 12 |
13 public char charAt(int flags, int i); | 13 // Convenience compound flags |
| 14 public static final int FLAG_POS_PREFIX = Flags.PREFIX; |
| 15 public static final int FLAG_POS_SUFFIX = 0; |
| 16 public static final int FLAG_NEG_PREFIX = Flags.PREFIX | Flags.NEGATIVE_SUBP
ATTERN; |
| 17 public static final int FLAG_NEG_SUFFIX = Flags.NEGATIVE_SUBPATTERN; |
14 | 18 |
15 public int length(int flags); | 19 public char charAt(int flags, int i); |
16 | 20 |
17 public boolean hasCurrencySign(); | 21 public int length(int flags); |
18 | 22 |
19 public boolean positiveHasPlusSign(); | 23 public String getString(int flags); |
20 | 24 |
21 public boolean hasNegativeSubpattern(); | 25 public boolean hasCurrencySign(); |
22 | 26 |
23 public boolean negativeHasMinusSign(); | 27 public boolean positiveHasPlusSign(); |
24 | 28 |
25 public boolean containsSymbolType(int type); | 29 public boolean hasNegativeSubpattern(); |
| 30 |
| 31 public boolean negativeHasMinusSign(); |
| 32 |
| 33 public boolean containsSymbolType(int type); |
26 } | 34 } |
LEFT | RIGHT |