/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
D | DateIntervalFormat.java | 419 final String skeleton; field in DateIntervalFormat.SkeletonAndItsBestMatch 421 SkeletonAndItsBestMatch(String skeleton, String bestMatch) { in SkeletonAndItsBestMatch() argument 422 this.skeleton = skeleton; in SkeletonAndItsBestMatch() 518 public DateIntervalFormat(String skeleton, DateIntervalInfo dtItvInfo, in DateIntervalFormat() argument 524 fSkeleton = skeleton; in DateIntervalFormat() 532 private DateIntervalFormat(String skeleton, ULocale locale, in DateIntervalFormat() argument 536 fSkeleton = skeleton; in DateIntervalFormat() 558 getInstance(String skeleton) in getInstance() argument 561 return getInstance(skeleton, ULocale.getDefault(Category.FORMAT)); in getInstance() 578 getInstance(String skeleton, Locale locale) in getInstance() argument [all …]
|
D | DateIntervalInfo.java | 732 public void setIntervalPattern(String skeleton, in setIntervalPattern() argument 746 PatternInfo ptnInfo = setIntervalPatternInternally(skeleton, in setIntervalPattern() 750 setIntervalPattern(skeleton, in setIntervalPattern() 753 setIntervalPattern(skeleton, in setIntervalPattern() 758 setIntervalPattern(skeleton, in setIntervalPattern() 778 private PatternInfo setIntervalPatternInternally(String skeleton, in setIntervalPatternInternally() argument 781 Map<String, PatternInfo> patternsOfOneSkeleton = fIntervalPatterns.get(skeleton); in setIntervalPatternInternally() 802 fIntervalPatterns.put(skeleton, patternsOfOneSkeleton); in setIntervalPatternInternally() 815 private void setIntervalPattern(String skeleton, in setIntervalPattern() argument 818 Map<String, PatternInfo> patternsOfOneSkeleton = fIntervalPatterns.get(skeleton); in setIntervalPattern() [all …]
|
D | DateFormat.java | 2153 public final static DateFormat getInstanceForSkeleton(String skeleton) { in getInstanceForSkeleton() argument 2154 return getPatternInstance(skeleton, ULocale.getDefault(Category.FORMAT)); in getInstanceForSkeleton() 2169 public final static DateFormat getInstanceForSkeleton(String skeleton, Locale locale) { in getInstanceForSkeleton() argument 2170 return getPatternInstance(skeleton, ULocale.forLocale(locale)); in getInstanceForSkeleton() 2185 public final static DateFormat getInstanceForSkeleton(String skeleton, ULocale locale) { in getInstanceForSkeleton() argument 2187 final String bestPattern = generator.getBestPattern(skeleton); in getInstanceForSkeleton() 2206 …public final static DateFormat getInstanceForSkeleton(Calendar cal, String skeleton, Locale locale… in getInstanceForSkeleton() argument 2207 return getPatternInstance(cal, skeleton, ULocale.forLocale(locale)); in getInstanceForSkeleton() 2226 Calendar cal, String skeleton, ULocale locale) { in getInstanceForSkeleton() argument 2231 final String bestPattern = generator.getBestPattern(skeleton); in getInstanceForSkeleton() [all …]
|
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/text/ |
D | DateIntervalFormat.java | 404 final String skeleton; field in DateIntervalFormat.SkeletonAndItsBestMatch 406 SkeletonAndItsBestMatch(String skeleton, String bestMatch) { in SkeletonAndItsBestMatch() argument 407 this.skeleton = skeleton; in SkeletonAndItsBestMatch() 500 public DateIntervalFormat(String skeleton, DateIntervalInfo dtItvInfo, in DateIntervalFormat() argument 506 fSkeleton = skeleton; in DateIntervalFormat() 514 private DateIntervalFormat(String skeleton, ULocale locale, in DateIntervalFormat() argument 518 fSkeleton = skeleton; in DateIntervalFormat() 539 getInstance(String skeleton) in getInstance() argument 542 return getInstance(skeleton, ULocale.getDefault(Category.FORMAT)); in getInstance() 558 getInstance(String skeleton, Locale locale) in getInstance() argument [all …]
|
D | DateIntervalInfo.java | 715 public void setIntervalPattern(String skeleton, in setIntervalPattern() argument 729 PatternInfo ptnInfo = setIntervalPatternInternally(skeleton, in setIntervalPattern() 733 setIntervalPattern(skeleton, in setIntervalPattern() 736 setIntervalPattern(skeleton, in setIntervalPattern() 741 setIntervalPattern(skeleton, in setIntervalPattern() 761 private PatternInfo setIntervalPatternInternally(String skeleton, in setIntervalPatternInternally() argument 764 Map<String, PatternInfo> patternsOfOneSkeleton = fIntervalPatterns.get(skeleton); in setIntervalPatternInternally() 785 fIntervalPatterns.put(skeleton, patternsOfOneSkeleton); in setIntervalPatternInternally() 798 private void setIntervalPattern(String skeleton, in setIntervalPattern() argument 801 Map<String, PatternInfo> patternsOfOneSkeleton = fIntervalPatterns.get(skeleton); in setIntervalPattern() [all …]
|
D | DateFormat.java | 2013 public final static DateFormat getInstanceForSkeleton(String skeleton) { in getInstanceForSkeleton() argument 2014 return getPatternInstance(skeleton, ULocale.getDefault(Category.FORMAT)); in getInstanceForSkeleton() 2027 public final static DateFormat getInstanceForSkeleton(String skeleton, Locale locale) { in getInstanceForSkeleton() argument 2028 return getPatternInstance(skeleton, ULocale.forLocale(locale)); in getInstanceForSkeleton() 2041 public final static DateFormat getInstanceForSkeleton(String skeleton, ULocale locale) { in getInstanceForSkeleton() argument 2043 final String bestPattern = generator.getBestPattern(skeleton); in getInstanceForSkeleton() 2060 …public final static DateFormat getInstanceForSkeleton(Calendar cal, String skeleton, Locale locale… in getInstanceForSkeleton() argument 2061 return getPatternInstance(cal, skeleton, ULocale.forLocale(locale)); in getInstanceForSkeleton() 2078 Calendar cal, String skeleton, ULocale locale) { in getInstanceForSkeleton() argument 2083 final String bestPattern = generator.getBestPattern(skeleton); in getInstanceForSkeleton() [all …]
|
/third_party/icu/icu4c/source/test/intltest/ |
D | numbertest_skeletons.cpp | 326 const char16_t* skeleton; in flexibleSeparators() member 334 UnicodeString skeletonString(cas.skeleton); in flexibleSeparators() 436 UnicodeString skeleton(u"measure-unit/"); in perUnitInArabic() local 437 skeleton += cas1.type; in perUnitInArabic() 438 skeleton += u"-"; in perUnitInArabic() 439 skeleton += cas1.subtype; in perUnitInArabic() 440 skeleton += u" "; in perUnitInArabic() 441 skeleton += u"per-measure-unit/"; in perUnitInArabic() 442 skeleton += cas2.type; in perUnitInArabic() 443 skeleton += u"-"; in perUnitInArabic() [all …]
|
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/number/ |
D | NumberSkeletonTest.java | 313 for (String skeleton : cases) { in defaultTokens() 314 String normalized = NumberFormatter.forSkeleton(skeleton).toSkeleton(); in defaultTokens() 315 … assertEquals("Skeleton should become empty when normalized: " + skeleton, "", normalized); in defaultTokens() 328 String skeleton = cas[0]; in flexibleSeparators() local 330 … String actual = NumberFormatter.forSkeleton(skeleton).locale(ULocale.ENGLISH).format(5142.3) in flexibleSeparators() 332 assertEquals(skeleton, expected, actual); in flexibleSeparators() 362 String skeleton = NumberFormatter.with().roundingMode(mode).toSkeleton(); in roundingModeNames() local 364 assertEquals(mode.toString(), modeString, skeleton.substring(14)); in roundingModeNames() 419 String skeleton = "measure-unit/"; in perUnitInArabic() local 420 … skeleton += cas1[0] + "-" + cas1[1] + " per-measure-unit/" + cas2[0] + "-" + cas2[1]; in perUnitInArabic() [all …]
|
/third_party/node/deps/v8/src/objects/ |
D | js-number-format.cc | 390 const icu::UnicodeString& skeleton) { in CurrencyDisplayString() argument 393 if (skeleton.indexOf("unit-width-iso-code") >= 0) { in CurrencyDisplayString() 398 if (skeleton.indexOf("unit-width-full-name") >= 0) { in CurrencyDisplayString() 403 if (skeleton.indexOf("unit-width-narrow") >= 0) { in CurrencyDisplayString() 411 bool UseGroupingFromSkeleton(const icu::UnicodeString& skeleton) { in UseGroupingFromSkeleton() argument 412 return skeleton.indexOf("group-off") == -1; in UseGroupingFromSkeleton() 416 const icu::UnicodeString& skeleton) { in UseGroupingFromSkeleton() argument 419 int32_t start = skeleton.indexOf(group); in UseGroupingFromSkeleton() 422 icu::UnicodeString check = skeleton.tempSubString(start + 6); in UseGroupingFromSkeleton() 447 const icu::UnicodeString& skeleton) { in CurrencyFromSkeleton() argument [all …]
|
/third_party/icu/icu4c/source/i18n/ |
D | dtitvinf.cpp | 86 DateIntervalInfo::setIntervalPattern(const UnicodeString& skeleton, in setIntervalPattern() argument 92 setIntervalPatternInternally(skeleton, UCAL_AM_PM, intervalPattern, status); in setIntervalPattern() 93 setIntervalPatternInternally(skeleton, UCAL_HOUR, intervalPattern, status); in setIntervalPattern() 96 setIntervalPatternInternally(skeleton, UCAL_DATE, intervalPattern, status); in setIntervalPattern() 98 setIntervalPatternInternally(skeleton, lrgDiffCalUnit, intervalPattern, status); in setIntervalPattern() 182 DateIntervalInfo::getIntervalPattern(const UnicodeString& skeleton, in getIntervalPattern() argument 190 const UnicodeString* patternsOfOneSkeleton = (UnicodeString*) fIntervalPatterns->get(skeleton); in getIntervalPattern() 364 UnicodeString skeleton(currentSkeleton, -1, US_INV); in setIntervalPatternIfAbsent() local 366 (UnicodeString*)(dateIntervalInfo.fIntervalPatterns->get(skeleton)); in setIntervalPatternIfAbsent() 370 dateIntervalInfo.setIntervalPatternInternally(skeleton, lrgDiffCalUnit, in setIntervalPatternIfAbsent() [all …]
|
D | udatpg.cpp | 60 const UChar *skeleton, int32_t length, in udatpg_getBestPattern() argument 63 return udatpg_getBestPatternWithOptions(dtpg, skeleton, length, in udatpg_getBestPattern() 70 const UChar *skeleton, int32_t length, in udatpg_getBestPatternWithOptions() argument 77 if(skeleton==NULL && length!=0) { in udatpg_getBestPatternWithOptions() 81 UnicodeString skeletonString((UBool)(length<0), skeleton, length); in udatpg_getBestPatternWithOptions() 89 UChar *skeleton, int32_t capacity, in udatpg_getSkeleton() argument 101 return result.extract(skeleton, capacity, *pErrorCode); in udatpg_getSkeleton() 107 UChar *skeleton, int32_t capacity, in udatpg_getBaseSkeleton() argument 119 return result.extract(skeleton, capacity, *pErrorCode); in udatpg_getBaseSkeleton() 275 const UChar *skeleton, int32_t skeletonLength, in udatpg_replaceFieldTypes() argument [all …]
|
D | dtitvfmt.cpp | 89 DateIntervalFormat::createInstance(const UnicodeString& skeleton, in createInstance() argument 91 return createInstance(skeleton, Locale::getDefault(), status); in createInstance() 96 DateIntervalFormat::createInstance(const UnicodeString& skeleton, in createInstance() argument 103 skeleton.extract(0, skeleton.length(), result, "UTF-8"); in createInstance() 116 return create(locale, dtitvinf, &skeleton, status); in createInstance() 122 DateIntervalFormat::createInstance(const UnicodeString& skeleton, in createInstance() argument 125 return createInstance(skeleton, Locale::getDefault(), dtitvinf, status); in createInstance() 130 DateIntervalFormat::createInstance(const UnicodeString& skeleton, in createInstance() argument 135 return create(locale, ptn, &skeleton, status); in createInstance() 665 const UnicodeString* skeleton, in DateIntervalFormat() argument [all …]
|
/third_party/node/deps/icu-small/source/i18n/ |
D | dtitvinf.cpp | 86 DateIntervalInfo::setIntervalPattern(const UnicodeString& skeleton, in setIntervalPattern() argument 92 setIntervalPatternInternally(skeleton, UCAL_AM_PM, intervalPattern, status); in setIntervalPattern() 93 setIntervalPatternInternally(skeleton, UCAL_HOUR, intervalPattern, status); in setIntervalPattern() 96 setIntervalPatternInternally(skeleton, UCAL_DATE, intervalPattern, status); in setIntervalPattern() 98 setIntervalPatternInternally(skeleton, lrgDiffCalUnit, intervalPattern, status); in setIntervalPattern() 182 DateIntervalInfo::getIntervalPattern(const UnicodeString& skeleton, in getIntervalPattern() argument 190 const UnicodeString* patternsOfOneSkeleton = (UnicodeString*) fIntervalPatterns->get(skeleton); in getIntervalPattern() 364 UnicodeString skeleton(currentSkeleton, -1, US_INV); in setIntervalPatternIfAbsent() local 366 (UnicodeString*)(dateIntervalInfo.fIntervalPatterns->get(skeleton)); in setIntervalPatternIfAbsent() 370 dateIntervalInfo.setIntervalPatternInternally(skeleton, lrgDiffCalUnit, in setIntervalPatternIfAbsent() [all …]
|
D | udatpg.cpp | 60 const char16_t *skeleton, int32_t length, in udatpg_getBestPattern() argument 63 return udatpg_getBestPatternWithOptions(dtpg, skeleton, length, in udatpg_getBestPattern() 70 const char16_t *skeleton, int32_t length, in udatpg_getBestPatternWithOptions() argument 77 if(skeleton==nullptr && length!=0) { in udatpg_getBestPatternWithOptions() 81 UnicodeString skeletonString((UBool)(length<0), skeleton, length); in udatpg_getBestPatternWithOptions() 89 char16_t *skeleton, int32_t capacity, in udatpg_getSkeleton() argument 101 return result.extract(skeleton, capacity, *pErrorCode); in udatpg_getSkeleton() 107 char16_t *skeleton, int32_t capacity, in udatpg_getBaseSkeleton() argument 119 return result.extract(skeleton, capacity, *pErrorCode); in udatpg_getBaseSkeleton() 275 const char16_t *skeleton, int32_t skeletonLength, in udatpg_replaceFieldTypes() argument [all …]
|
D | dtitvfmt.cpp | 89 DateIntervalFormat::createInstance(const UnicodeString& skeleton, in createInstance() argument 91 return createInstance(skeleton, Locale::getDefault(), status); in createInstance() 96 DateIntervalFormat::createInstance(const UnicodeString& skeleton, in createInstance() argument 103 skeleton.extract(0, skeleton.length(), result, "UTF-8"); in createInstance() 116 return create(locale, dtitvinf, &skeleton, status); in createInstance() 122 DateIntervalFormat::createInstance(const UnicodeString& skeleton, in createInstance() argument 125 return createInstance(skeleton, Locale::getDefault(), dtitvinf, status); in createInstance() 130 DateIntervalFormat::createInstance(const UnicodeString& skeleton, in createInstance() argument 135 return create(locale, ptn, &skeleton, status); in createInstance() 665 const UnicodeString* skeleton, in DateIntervalFormat() argument [all …]
|
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/number/ |
D | NumberSkeletonTest.java | 300 for (String skeleton : cases) { in defaultTokens() 301 String normalized = NumberFormatter.forSkeleton(skeleton).toSkeleton(); in defaultTokens() 302 … assertEquals("Skeleton should become empty when normalized: " + skeleton, "", normalized); in defaultTokens() 315 String skeleton = cas[0]; in flexibleSeparators() local 317 … String actual = NumberFormatter.forSkeleton(skeleton).locale(ULocale.ENGLISH).format(5142.3) in flexibleSeparators() 319 assertEquals(skeleton, expected, actual); in flexibleSeparators() 350 String skeleton = NumberFormatter.with().roundingMode(mode).toSkeleton(); in roundingModeNames() local 352 assertEquals(mode.toString(), modeString, skeleton.substring(14)); in roundingModeNames() 407 String skeleton = "measure-unit/"; in perUnitInArabic() local 408 … skeleton += cas1[0] + "-" + cas1[1] + " per-measure-unit/" + cas2[0] + "-" + cas2[1]; in perUnitInArabic() [all …]
|
/third_party/skia/third_party/externals/icu/source/i18n/ |
D | dtitvinf.cpp | 87 DateIntervalInfo::setIntervalPattern(const UnicodeString& skeleton, in setIntervalPattern() argument 93 setIntervalPatternInternally(skeleton, UCAL_AM_PM, intervalPattern, status); in setIntervalPattern() 94 setIntervalPatternInternally(skeleton, UCAL_HOUR, intervalPattern, status); in setIntervalPattern() 97 setIntervalPatternInternally(skeleton, UCAL_DATE, intervalPattern, status); in setIntervalPattern() 99 setIntervalPatternInternally(skeleton, lrgDiffCalUnit, intervalPattern, status); in setIntervalPattern() 183 DateIntervalInfo::getIntervalPattern(const UnicodeString& skeleton, in getIntervalPattern() argument 191 const UnicodeString* patternsOfOneSkeleton = (UnicodeString*) fIntervalPatterns->get(skeleton); in getIntervalPattern() 365 UnicodeString skeleton(currentSkeleton, -1, US_INV); in setIntervalPatternIfAbsent() local 367 (UnicodeString*)(dateIntervalInfo.fIntervalPatterns->get(skeleton)); in setIntervalPatternIfAbsent() 371 dateIntervalInfo.setIntervalPatternInternally(skeleton, lrgDiffCalUnit, in setIntervalPatternIfAbsent() [all …]
|
D | udatpg.cpp | 60 const UChar *skeleton, int32_t length, in udatpg_getBestPattern() argument 63 return udatpg_getBestPatternWithOptions(dtpg, skeleton, length, in udatpg_getBestPattern() 70 const UChar *skeleton, int32_t length, in udatpg_getBestPatternWithOptions() argument 77 if(skeleton==NULL && length!=0) { in udatpg_getBestPatternWithOptions() 81 UnicodeString skeletonString((UBool)(length<0), skeleton, length); in udatpg_getBestPatternWithOptions() 89 UChar *skeleton, int32_t capacity, in udatpg_getSkeleton() argument 101 return result.extract(skeleton, capacity, *pErrorCode); in udatpg_getSkeleton() 107 UChar *skeleton, int32_t capacity, in udatpg_getBaseSkeleton() argument 119 return result.extract(skeleton, capacity, *pErrorCode); in udatpg_getBaseSkeleton() 240 const UChar *skeleton, int32_t skeletonLength, in udatpg_replaceFieldTypes() argument [all …]
|
D | dtitvfmt.cpp | 89 DateIntervalFormat::createInstance(const UnicodeString& skeleton, in createInstance() argument 91 return createInstance(skeleton, Locale::getDefault(), status); in createInstance() 96 DateIntervalFormat::createInstance(const UnicodeString& skeleton, in createInstance() argument 103 skeleton.extract(0, skeleton.length(), result, "UTF-8"); in createInstance() 116 return create(locale, dtitvinf, &skeleton, status); in createInstance() 122 DateIntervalFormat::createInstance(const UnicodeString& skeleton, in createInstance() argument 125 return createInstance(skeleton, Locale::getDefault(), dtitvinf, status); in createInstance() 130 DateIntervalFormat::createInstance(const UnicodeString& skeleton, in createInstance() argument 135 return create(locale, ptn, &skeleton, status); in createInstance() 665 const UnicodeString* skeleton, in DateIntervalFormat() argument [all …]
|
/third_party/icu/icu4j/samples/src/com/ibm/icu/samples/text/dateintervalformat/ |
D | DateIntervalFormatSample.java | 59 for (String skeleton:skeletons) { in dtitvfmtPreDefined() 60 System.out.printf("%-15s%-35s%-35s", skeleton,date[i].toString(), date[i+1].toString()); in dtitvfmtPreDefined() 61 … DateIntervalFormat dtitvfmtEn = DateIntervalFormat.getInstance(skeleton, ULocale.ENGLISH); in dtitvfmtPreDefined() 62 … DateIntervalFormat dtitvfmtJa = DateIntervalFormat.getInstance(skeleton, ULocale.JAPANESE); in dtitvfmtPreDefined() 106 for (String skeleton:skeletons){ in dtitvfmtCustomized() 108 System.out.printf("%-15s%-35s%-35s", skeleton,date[i].toString(), date[i+1].toString()); in dtitvfmtCustomized() 109 … DateIntervalFormat dtitvfmtEn = DateIntervalFormat.getInstance(skeleton,ULocale.ENGLISH,dtitvinf); in dtitvfmtCustomized() 110 …DateIntervalFormat dtitvfmtJa = DateIntervalFormat.getInstance(skeleton,ULocale.JAPANESE,dtitvinf); in dtitvfmtCustomized()
|
/third_party/icu/icu4c/source/i18n/unicode/ |
D | dtitvfmt.h | 317 const UnicodeString& skeleton, 355 const UnicodeString& skeleton, 375 const UnicodeString& skeleton, 420 const UnicodeString& skeleton, 781 const UnicodeString* skeleton, UErrorCode& status); 798 const UnicodeString* skeleton, 892 const UnicodeString& skeleton, 906 UnicodeString normalizeHourMetacharacters(const UnicodeString& skeleton) const; 934 static void U_EXPORT2 getDateTimeSkeleton(const UnicodeString& skeleton, 995 const UnicodeString* skeleton, [all …]
|
D | dtitvinf.h | 262 void setIntervalPattern(const UnicodeString& skeleton, 277 UnicodeString& getIntervalPattern(const UnicodeString& skeleton, 397 void setIntervalPatternInternally(const UnicodeString& skeleton, 421 const UnicodeString* getBestSkeleton(const UnicodeString& skeleton, 432 static void U_EXPORT2 parseSkeleton(const UnicodeString& skeleton,
|
/third_party/node/deps/icu-small/source/i18n/unicode/ |
D | dtitvfmt.h | 317 const UnicodeString& skeleton, 355 const UnicodeString& skeleton, 375 const UnicodeString& skeleton, 420 const UnicodeString& skeleton, 781 const UnicodeString* skeleton, UErrorCode& status); 798 const UnicodeString* skeleton, 892 const UnicodeString& skeleton, 906 UnicodeString normalizeHourMetacharacters(const UnicodeString& skeleton) const; 934 static void U_EXPORT2 getDateTimeSkeleton(const UnicodeString& skeleton, 995 const UnicodeString* skeleton, [all …]
|
/third_party/skia/third_party/externals/icu/source/i18n/unicode/ |
D | dtitvfmt.h | 317 const UnicodeString& skeleton, 355 const UnicodeString& skeleton, 375 const UnicodeString& skeleton, 420 const UnicodeString& skeleton, 783 const UnicodeString* skeleton, UErrorCode& status); 800 const UnicodeString* skeleton, 894 const UnicodeString& skeleton, 908 UnicodeString normalizeHourMetacharacters(const UnicodeString& skeleton) const; 936 static void U_EXPORT2 getDateTimeSkeleton(const UnicodeString& skeleton, 997 const UnicodeString* skeleton, [all …]
|
/third_party/libphonenumber/metadata/src/main/java/com/google/i18n/phonenumbers/metadata/model/ |
D | FormatSpec.java | 308 StringBuilder skeleton = new StringBuilder(); 325 skeleton.append(escapeGroupNumber(groups.size())); 351 skeleton.append(escapeGroupNumber(groups.size())); 363 skeleton.append(ESCAPED_NATIONAL_PREFIX); 370 skeleton.append(ESCAPED_CARRIER_CODE); 381 skeleton.append(c); 398 skeleton.toString()); 425 abstract String skeleton(); 473 String format = "$" + (fgIndex + 1) + skeleton().substring(getSuffixStart()); 500 String prefix = skeleton().substring(0, getSuffixStart()); [all …]
|