/external/icu/icu4c/source/test/intltest/ |
D | numbertest_skeletons.cpp | 148 UnicodeString skeletonString(cas); in validTokens() local 149 status.setScope(skeletonString); in validTokens() 151 NumberFormatter::forSkeleton(skeletonString, perror, status); in validTokens() 152 assertSuccess(CStr(skeletonString)(), status, true); in validTokens() 153 assertEquals(skeletonString, -1, perror.offset); in validTokens() 276 UnicodeString skeletonString = UnicodeString(stem) + suffix; in stemsRequiringOption() local 279 NumberFormatter::forSkeleton(skeletonString, perror, status); in stemsRequiringOption() 280 assertEquals(skeletonString, U_NUMBER_SKELETON_SYNTAX_ERROR, status); in stemsRequiringOption() 286 assertEquals(skeletonString, expectedOffset, perror.offset); in stemsRequiringOption() 287 UnicodeString expectedPreContext = skeletonString.tempSubString(0, expectedOffset); in stemsRequiringOption() [all …]
|
/external/icu/icu4c/source/i18n/ |
D | udatpg.cpp | 81 UnicodeString skeletonString((UBool)(length<0), skeleton, length); in udatpg_getBestPatternWithOptions() local 82 …UnicodeString result=((DateTimePatternGenerator *)dtpg)->getBestPattern(skeletonString, options, *… in udatpg_getBestPatternWithOptions() 263 UnicodeString skeletonString((UBool)(skeletonLength<0), skeleton, skeletonLength); in udatpg_replaceFieldTypesWithOptions() local 264 …((DateTimePatternGenerator *)dtpg)->replaceFieldTypes(patternString, skeletonString, options, *pEr… in udatpg_replaceFieldTypesWithOptions() 286 UnicodeString skeletonString((UBool)(skeletonLength<0), skeleton, skeletonLength); in udatpg_getPatternForSkeleton() local 287 …codeString &result=((const DateTimePatternGenerator *)dtpg)->getPatternForSkeleton(skeletonString); in udatpg_getPatternForSkeleton()
|
D | number_capi.cpp | 93 UnicodeString skeletonString(skeletonLen == -1, skeleton, skeletonLen); in unumf_openForSkeletonAndLocale() local 94 impl->fFormatter = NumberFormatter::forSkeleton(skeletonString, *ec).locale(locale); in unumf_openForSkeletonAndLocale() 107 UnicodeString skeletonString(skeletonLen == -1, skeleton, skeletonLen); in unumf_openForSkeletonAndLocaleWithError() local 108 impl->fFormatter = NumberFormatter::forSkeleton(skeletonString, *perror, *ec).locale(locale); in unumf_openForSkeletonAndLocaleWithError()
|
D | numrange_capi.cpp | 99 UnicodeString skeletonString(skeletonLen == -1, skeleton, skeletonLen); in unumrf_openForSkeletonWithCollapseAndIdentityFallback() local 101 .numberFormatterBoth(NumberFormatter::forSkeleton(skeletonString, *perror, *ec)) in unumrf_openForSkeletonWithCollapseAndIdentityFallback()
|
D | number_skeletons.h | 153 const UnicodeString& skeletonString, UParseError* perror, UErrorCode& status); 169 MacroProps parseSkeleton(const UnicodeString& skeletonString, int32_t& errOffset, UErrorCode& statu…
|
D | number_skeletons.cpp | 456 const UnicodeString& skeletonString, UParseError* perror, UErrorCode& status) { in create() argument 472 MacroProps macros = parseSkeleton(skeletonString, errOffset, status); in create() 484 int32_t contextEnd = uprv_min(skeletonString.length(), errOffset + U_PARSE_CONTEXT_LEN - 1); in create() 485 skeletonString.extract(contextStart, errOffset - contextStart, perror->preContext, 0); in create() 487 skeletonString.extract(errOffset, contextEnd - errOffset, perror->postContext, 0); in create() 500 const UnicodeString& skeletonString, int32_t& errOffset, UErrorCode& status) { in parseSkeleton() argument 505 UnicodeString tempSkeletonString(skeletonString); in parseSkeleton()
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/number/ |
D | NumberSkeletonTest.java | 294 String skeletonString = stem + suffix; in stemsRequiringOption() local 296 NumberFormatter.forSkeleton(skeletonString); in stemsRequiringOption() 297 fail(skeletonString); in stemsRequiringOption()
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/number/ |
D | NumberSkeletonTest.java | 291 String skeletonString = stem + suffix; in stemsRequiringOption() local 293 NumberFormatter.forSkeleton(skeletonString); in stemsRequiringOption() 294 fail(skeletonString); in stemsRequiringOption()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/number/ |
D | NumberSkeletonImpl.java | 526 protected UnlocalizedNumberFormatter createInstance(String skeletonString, Void unused) { 527 return create(skeletonString); 539 public static UnlocalizedNumberFormatter getOrCreate(String skeletonString) { in getOrCreate() argument 542 return cache.getInstance(skeletonString, null); in getOrCreate() 552 public static UnlocalizedNumberFormatter create(String skeletonString) { in create() argument 553 MacroProps macros = parseSkeleton(skeletonString); in create() 575 private static MacroProps parseSkeleton(String skeletonString) { in parseSkeleton() argument 577 skeletonString += " "; in parseSkeleton() 580 StringSegment segment = new StringSegment(skeletonString, false); in parseSkeleton()
|
/external/icu/android_icu4j/src/main/java/android/icu/number/ |
D | NumberSkeletonImpl.java | 527 protected UnlocalizedNumberFormatter createInstance(String skeletonString, Void unused) { 528 return create(skeletonString); 540 public static UnlocalizedNumberFormatter getOrCreate(String skeletonString) { in getOrCreate() argument 543 return cache.getInstance(skeletonString, null); in getOrCreate() 553 public static UnlocalizedNumberFormatter create(String skeletonString) { in create() argument 554 MacroProps macros = parseSkeleton(skeletonString); in create() 576 private static MacroProps parseSkeleton(String skeletonString) { in parseSkeleton() argument 578 skeletonString += " "; in parseSkeleton() 581 StringSegment segment = new StringSegment(skeletonString, false); in parseSkeleton()
|
/external/icu/libicu/cts_headers/ |
D | number_skeletons.h | 153 const UnicodeString& skeletonString, UParseError* perror, UErrorCode& status); 169 MacroProps parseSkeleton(const UnicodeString& skeletonString, int32_t& errOffset, UErrorCode& statu…
|