Home
last modified time | relevance | path

Searched refs:skeletonString (Results 1 – 9 of 9) sorted by relevance

/external/icu/icu4c/source/test/intltest/
Dnumbertest_skeletons.cpp111 UnicodeString skeletonString(cas); in validTokens() local
112 status.setScope(skeletonString); in validTokens()
113 NumberFormatter::forSkeleton(skeletonString, status); in validTokens()
114 assertSuccess(CStr(skeletonString)(), status, true); in validTokens()
205 UnicodeString skeletonString = UnicodeString(stem) + suffix; in stemsRequiringOption() local
207 NumberFormatter::forSkeleton(skeletonString, status); in stemsRequiringOption()
208 assertEquals(skeletonString, U_NUMBER_SKELETON_SYNTAX_ERROR, status); in stemsRequiringOption()
226 UnicodeString skeletonString(cas); in defaultTokens() local
227 status.setScope(skeletonString); in defaultTokens()
229 skeletonString, status).toSkeleton(status); in defaultTokens()
[all …]
/external/icu/icu4c/source/i18n/
Dudatpg.cpp81 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()
Dnumber_capi.cpp95 UnicodeString skeletonString(skeletonLen == -1, skeleton, skeletonLen); in unumf_openForSkeletonAndLocale() local
96 impl->fFormatter = NumberFormatter::forSkeleton(skeletonString, *ec).locale(locale); in unumf_openForSkeletonAndLocale()
Dnumber_skeletons.h125 UnlocalizedNumberFormatter create(const UnicodeString& skeletonString, UErrorCode& status);
141 MacroProps parseSkeleton(const UnicodeString& skeletonString, UErrorCode& status);
Dnumber_skeletons.cpp409 UnlocalizedNumberFormatter skeleton::create(const UnicodeString& skeletonString, UErrorCode& status… in create() argument
411 MacroProps macros = parseSkeleton(skeletonString, status); in create()
422 MacroProps skeleton::parseSkeleton(const UnicodeString& skeletonString, UErrorCode& status) { in parseSkeleton() argument
426 UnicodeString tempSkeletonString(skeletonString); in parseSkeleton()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/number/
DNumberSkeletonTest.java225 String skeletonString = stem + suffix; in stemsRequiringOption() local
227 NumberFormatter.forSkeleton(skeletonString); in stemsRequiringOption()
228 fail(skeletonString); in stemsRequiringOption()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/number/
DNumberSkeletonTest.java228 String skeletonString = stem + suffix; in stemsRequiringOption() local
230 NumberFormatter.forSkeleton(skeletonString); in stemsRequiringOption()
231 fail(skeletonString); in stemsRequiringOption()
/external/icu/android_icu4j/src/main/java/android/icu/number/
DNumberSkeletonImpl.java457 protected UnlocalizedNumberFormatter createInstance(String skeletonString, Void unused) {
458 return create(skeletonString);
470 public static UnlocalizedNumberFormatter getOrCreate(String skeletonString) { in getOrCreate() argument
473 return cache.getInstance(skeletonString, null); in getOrCreate()
483 public static UnlocalizedNumberFormatter create(String skeletonString) { in create() argument
484 MacroProps macros = parseSkeleton(skeletonString); in create()
506 private static MacroProps parseSkeleton(String skeletonString) { in parseSkeleton() argument
508 skeletonString += " "; in parseSkeleton()
511 StringSegment segment = new StringSegment(skeletonString, false); in parseSkeleton()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/number/
DNumberSkeletonImpl.java456 protected UnlocalizedNumberFormatter createInstance(String skeletonString, Void unused) {
457 return create(skeletonString);
469 public static UnlocalizedNumberFormatter getOrCreate(String skeletonString) { in getOrCreate() argument
472 return cache.getInstance(skeletonString, null); in getOrCreate()
482 public static UnlocalizedNumberFormatter create(String skeletonString) { in create() argument
483 MacroProps macros = parseSkeleton(skeletonString); in create()
505 private static MacroProps parseSkeleton(String skeletonString) { in parseSkeleton() argument
507 skeletonString += " "; in parseSkeleton()
510 StringSegment segment = new StringSegment(skeletonString, false); in parseSkeleton()