1 /* GENERATED SOURCE. DO NOT MODIFY. */ 2 // © 2018 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.parse; 5 6 import ohos.global.icu.text.DecimalFormatSymbols; 7 import ohos.global.icu.util.Currency; 8 import ohos.global.icu.util.ULocale; 9 10 /** 11 * Small helper class that generates matchers for individual tokens for AffixPatternMatcher. 12 * 13 * @author sffc 14 * @hide exposed on OHOS 15 */ 16 public class AffixTokenMatcherFactory { 17 public Currency currency; 18 public DecimalFormatSymbols symbols; 19 public IgnorablesMatcher ignorables; 20 public ULocale locale; 21 public int parseFlags; 22 minusSign()23 public MinusSignMatcher minusSign() { 24 return MinusSignMatcher.getInstance(symbols, true); 25 } 26 plusSign()27 public PlusSignMatcher plusSign() { 28 return PlusSignMatcher.getInstance(symbols, true); 29 } 30 percent()31 public PercentMatcher percent() { 32 return PercentMatcher.getInstance(symbols); 33 } 34 permille()35 public PermilleMatcher permille() { 36 return PermilleMatcher.getInstance(symbols); 37 } 38 currency()39 public CombinedCurrencyMatcher currency() { 40 return CombinedCurrencyMatcher.getInstance(currency, symbols, parseFlags); 41 } 42 ignorables()43 public IgnorablesMatcher ignorables() { 44 return ignorables; 45 } 46 } 47