• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* GENERATED SOURCE. DO NOT MODIFY. */
2 // © 2017 and later: Unicode, Inc. and others.
3 // License & terms of use: http://www.unicode.org/copyright.html#License
4 package ohos.global.icu.impl.number;
5 
6 /**
7  * @hide exposed on OHOS
8  */
9 public interface AffixPatternProvider {
10     /**
11      * @hide exposed on OHOS
12      */
13     public static final class Flags {
14         public static final int PLURAL_MASK = 0xff;
15         public static final int PREFIX = 0x100;
16         public static final int NEGATIVE_SUBPATTERN = 0x200;
17         public static final int PADDING = 0x400;
18     }
19 
20     // Convenience compound flags
21     public static final int FLAG_POS_PREFIX = Flags.PREFIX;
22     public static final int FLAG_POS_SUFFIX = 0;
23     public static final int FLAG_NEG_PREFIX = Flags.PREFIX | Flags.NEGATIVE_SUBPATTERN;
24     public static final int FLAG_NEG_SUFFIX = Flags.NEGATIVE_SUBPATTERN;
25 
charAt(int flags, int i)26     public char charAt(int flags, int i);
27 
length(int flags)28     public int length(int flags);
29 
getString(int flags)30     public String getString(int flags);
31 
hasCurrencySign()32     public boolean hasCurrencySign();
33 
positiveHasPlusSign()34     public boolean positiveHasPlusSign();
35 
hasNegativeSubpattern()36     public boolean hasNegativeSubpattern();
37 
negativeHasMinusSign()38     public boolean negativeHasMinusSign();
39 
containsSymbolType(int type)40     public boolean containsSymbolType(int type);
41 
42     /**
43      * True if the pattern has a number placeholder like "0" or "#,##0.00"; false if the pattern does not
44      * have one. This is used in cases like compact notation, where the pattern replaces the entire
45      * number instead of rendering the number.
46      */
hasBody()47     public boolean hasBody();
48 }
49