Home
last modified time | relevance | path

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

/third_party/icu/icu4c/source/test/intltest/
Dnumbertest_skeletons.cpp148 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()
274 UnicodeString skeletonString = UnicodeString(stem) + suffix; in stemsRequiringOption() local
277 NumberFormatter::forSkeleton(skeletonString, perror, status); in stemsRequiringOption()
278 assertEquals(skeletonString, U_NUMBER_SKELETON_SYNTAX_ERROR, status); in stemsRequiringOption()
284 assertEquals(skeletonString, expectedOffset, perror.offset); in stemsRequiringOption()
285 UnicodeString expectedPreContext = skeletonString.tempSubString(0, expectedOffset); in stemsRequiringOption()
[all …]
/third_party/flutter/skia/third_party/externals/icu/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()
/third_party/node/deps/icu-small/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.cpp93 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()
Dnumrange_capi.cpp99 UnicodeString skeletonString(skeletonLen == -1, skeleton, skeletonLen); in unumrf_openForSkeletonWithCollapseAndIdentityFallback() local
101 .numberFormatterBoth(NumberFormatter::forSkeleton(skeletonString, *perror, *ec)) in unumrf_openForSkeletonWithCollapseAndIdentityFallback()
Dnumber_skeletons.h153 const UnicodeString& skeletonString, UParseError* perror, UErrorCode& status);
169 MacroProps parseSkeleton(const UnicodeString& skeletonString, int32_t& errOffset, UErrorCode& statu…
Dnumber_skeletons.cpp456 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()
/third_party/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.cpp93 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()
Dnumrange_capi.cpp99 UnicodeString skeletonString(skeletonLen == -1, skeleton, skeletonLen); in unumrf_openForSkeletonWithCollapseAndIdentityFallback() local
101 .numberFormatterBoth(NumberFormatter::forSkeleton(skeletonString, *perror, *ec)) in unumrf_openForSkeletonWithCollapseAndIdentityFallback()
Dnumber_skeletons.h152 const UnicodeString& skeletonString, UParseError* perror, UErrorCode& status);
168 MacroProps parseSkeleton(const UnicodeString& skeletonString, int32_t& errOffset, UErrorCode& statu…
Dnumber_skeletons.cpp455 const UnicodeString& skeletonString, UParseError* perror, UErrorCode& status) { in create() argument
471 MacroProps macros = parseSkeleton(skeletonString, errOffset, status); in create()
483 int32_t contextEnd = uprv_min(skeletonString.length(), errOffset + U_PARSE_CONTEXT_LEN - 1); in create()
484 skeletonString.extract(contextStart, errOffset - contextStart, perror->preContext, 0); in create()
486 skeletonString.extract(errOffset, contextEnd - errOffset, perror->postContext, 0); in create()
499 const UnicodeString& skeletonString, int32_t& errOffset, UErrorCode& status) { in parseSkeleton() argument
504 UnicodeString tempSkeletonString(skeletonString); in parseSkeleton()
/third_party/skia/third_party/externals/icu/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.cpp93 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()
Dnumrange_capi.cpp99 UnicodeString skeletonString(skeletonLen == -1, skeleton, skeletonLen); in unumrf_openForSkeletonWithCollapseAndIdentityFallback() local
101 .numberFormatterBoth(NumberFormatter::forSkeleton(skeletonString, *perror, *ec)) in unumrf_openForSkeletonWithCollapseAndIdentityFallback()
Dnumber_skeletons.h152 const UnicodeString& skeletonString, UParseError* perror, UErrorCode& status);
168 MacroProps parseSkeleton(const UnicodeString& skeletonString, int32_t& errOffset, UErrorCode& statu…
Dnumber_skeletons.cpp455 const UnicodeString& skeletonString, UParseError* perror, UErrorCode& status) { in create() argument
471 MacroProps macros = parseSkeleton(skeletonString, errOffset, status); in create()
483 int32_t contextEnd = uprv_min(skeletonString.length(), errOffset + U_PARSE_CONTEXT_LEN - 1); in create()
484 skeletonString.extract(contextStart, errOffset - contextStart, perror->preContext, 0); in create()
486 skeletonString.extract(errOffset, contextEnd - errOffset, perror->postContext, 0); in create()
499 const UnicodeString& skeletonString, int32_t& errOffset, UErrorCode& status) { in parseSkeleton() argument
504 UnicodeString tempSkeletonString(skeletonString); in parseSkeleton()
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/number/
DNumberSkeletonTest.java278 String skeletonString = stem + suffix; in stemsRequiringOption() local
280 NumberFormatter.forSkeleton(skeletonString); in stemsRequiringOption()
281 fail(skeletonString); in stemsRequiringOption()
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/number/
DNumberSkeletonTest.java289 String skeletonString = stem + suffix; in stemsRequiringOption() local
291 NumberFormatter.forSkeleton(skeletonString); in stemsRequiringOption()
292 fail(skeletonString); in stemsRequiringOption()
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/number/
DNumberSkeletonImpl.java501 protected UnlocalizedNumberFormatter createInstance(String skeletonString, Void unused) {
502 return create(skeletonString);
514 public static UnlocalizedNumberFormatter getOrCreate(String skeletonString) { in getOrCreate() argument
517 return cache.getInstance(skeletonString, null); in getOrCreate()
527 public static UnlocalizedNumberFormatter create(String skeletonString) { in create() argument
528 MacroProps macros = parseSkeleton(skeletonString); in create()
550 private static MacroProps parseSkeleton(String skeletonString) { in parseSkeleton() argument
552 skeletonString += " "; in parseSkeleton()
555 StringSegment segment = new StringSegment(skeletonString, false); in parseSkeleton()
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/number/
DNumberSkeletonImpl.java524 protected UnlocalizedNumberFormatter createInstance(String skeletonString, Void unused) {
525 return create(skeletonString);
537 public static UnlocalizedNumberFormatter getOrCreate(String skeletonString) { in getOrCreate() argument
540 return cache.getInstance(skeletonString, null); in getOrCreate()
550 public static UnlocalizedNumberFormatter create(String skeletonString) { in create() argument
551 MacroProps macros = parseSkeleton(skeletonString); in create()
573 private static MacroProps parseSkeleton(String skeletonString) { in parseSkeleton() argument
575 skeletonString += " "; in parseSkeleton()
578 StringSegment segment = new StringSegment(skeletonString, false); in parseSkeleton()