/external/icu/android_icu4j/src/main/java/android/icu/impl/number/ |
D | PropertiesAffixPatternProvider.java | 12 private final String negPrefix; field in PropertiesAffixPatternProvider 59 negPrefix = npo; in PropertiesAffixPatternProvider() 61 negPrefix = npp; in PropertiesAffixPatternProvider() 65 negPrefix = ppp == null ? "-" : "-" + ppp; in PropertiesAffixPatternProvider() 101 return negPrefix; in getString() 121 negPrefix.length() != posPrefix.length() + 1 || in hasNegativeSubpattern() 122 !negPrefix.regionMatches(1, posPrefix, 0, posPrefix.length()) || in hasNegativeSubpattern() 123 negPrefix.charAt(0) != '-' in hasNegativeSubpattern() 129 return AffixUtils.containsType(negPrefix, AffixUtils.TYPE_MINUS_SIGN) in negativeHasMinusSign() 141 … || AffixUtils.containsType(negPrefix, type) || AffixUtils.containsType(negSuffix, type); in containsSymbolType() [all …]
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/ |
D | PropertiesAffixPatternProvider.java | 8 private final String negPrefix; field in PropertiesAffixPatternProvider 55 negPrefix = npo; in PropertiesAffixPatternProvider() 57 negPrefix = npp; in PropertiesAffixPatternProvider() 61 negPrefix = ppp == null ? "-" : "-" + ppp; in PropertiesAffixPatternProvider() 97 return negPrefix; in getString() 117 negPrefix.length() != posPrefix.length() + 1 || in hasNegativeSubpattern() 118 !negPrefix.regionMatches(1, posPrefix, 0, posPrefix.length()) || in hasNegativeSubpattern() 119 negPrefix.charAt(0) != '-' in hasNegativeSubpattern() 125 return AffixUtils.containsType(negPrefix, AffixUtils.TYPE_MINUS_SIGN) in negativeHasMinusSign() 137 … || AffixUtils.containsType(negPrefix, type) || AffixUtils.containsType(negSuffix, type); in containsSymbolType() [all …]
|
/external/icu/icu4c/source/i18n/ |
D | number_mapper.cpp | 372 negPrefix = npo; in setTo() 374 negPrefix = npp; in setTo() 378 negPrefix = ppp.isBogus() ? u"-" : u"-" + ppp; in setTo() 415 return negPrefix; in getStringInternal() 435 negPrefix.tempSubString(1) != posPrefix || in hasNegativeSubpattern() 436 negPrefix.charAt(0) != u'-' in hasNegativeSubpattern() 442 return AffixUtils::containsType(negPrefix, TYPE_MINUS_SIGN, localStatus) || in negativeHasMinusSign() 453 AffixUtils::containsType(negPrefix, type, status) || in containsSymbolType()
|
D | number_mapper.h | 64 UnicodeString negPrefix; variable
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
D | IntlTestDecimalFormatAPI.java | 196 String negPrefix; in TestAPI() local 198 negPrefix = pat.getNegativePrefix(); in TestAPI() 199 logln("Negative prefix (should be -): " + negPrefix); in TestAPI() 200 assertEquals("ERROR: setNegativePrefix() failed", "-", negPrefix); in TestAPI()
|
D | IntlTestDecimalFormatAPIC.java | 155 String negPrefix; in TestAPI() local 157 negPrefix = pat.getNegativePrefix(); in TestAPI() 158 logln("Negative prefix (should be -): " + negPrefix); in TestAPI() 159 assertEquals("ERROR: setNegativePrefix() failed", "-", negPrefix); in TestAPI()
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/ |
D | IntlTestDecimalFormatAPI.java | 199 String negPrefix; in TestAPI() local 201 negPrefix = pat.getNegativePrefix(); in TestAPI() 202 logln("Negative prefix (should be -): " + negPrefix); in TestAPI() 203 assertEquals("ERROR: setNegativePrefix() failed", "-", negPrefix); in TestAPI()
|
D | IntlTestDecimalFormatAPIC.java | 158 String negPrefix; in TestAPI() local 160 negPrefix = pat.getNegativePrefix(); in TestAPI() 161 logln("Negative prefix (should be -): " + negPrefix); in TestAPI() 162 assertEquals("ERROR: setNegativePrefix() failed", "-", negPrefix); in TestAPI()
|
/external/icu/icu4c/source/test/intltest/ |
D | dcfmapts.cpp | 291 UnicodeString negPrefix; in testAPI() local 293 negPrefix = pat.getNegativePrefix(negPrefix); in testAPI() 294 logln((UnicodeString)"Negative prefix (should be -): " + negPrefix); in testAPI() 295 if(negPrefix != "-") { in testAPI()
|