Home
last modified time | relevance | path

Searched refs:capitalizationContext (Results 1 – 25 of 36) sorted by relevance

12

/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DRelativeDateFormat.java112 DisplayContext capitalizationContext = getContext(DisplayContext.Type.CAPITALIZATION); in format() local
127 … (capitalizationContext == DisplayContext.CAPITALIZATION_FOR_BEGINNING_OF_SENTENCE || in format()
128 …(capitalizationContext == DisplayContext.CAPITALIZATION_FOR_UI_LIST_OR_MENU && capitalizationOfRel… in format()
129 …(capitalizationContext == DisplayContext.CAPITALIZATION_FOR_STANDALONE && capitalizationOfRelative… in format()
140 fDateTimeFormat.setContext(capitalizationContext); in format()
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/
DRelativeDateFormat.java115 DisplayContext capitalizationContext = getContext(DisplayContext.Type.CAPITALIZATION); in format() local
130 … (capitalizationContext == DisplayContext.CAPITALIZATION_FOR_BEGINNING_OF_SENTENCE || in format()
131 …(capitalizationContext == DisplayContext.CAPITALIZATION_FOR_UI_LIST_OR_MENU && capitalizationOfRel… in format()
132 …(capitalizationContext == DisplayContext.CAPITALIZATION_FOR_STANDALONE && capitalizationOfRelative… in format()
143 fDateTimeFormat.setContext(capitalizationContext); in format()
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/text/
DRelativeDateTimeFormatter.java527 DisplayContext capitalizationContext) { in getInstance() argument
542 capitalizationContext, in getInstance()
543 capitalizationContext == DisplayContext.CAPITALIZATION_FOR_BEGINNING_OF_SENTENCE ? in getInstance()
940 return capitalizationContext; in getCapitalizationContext()
978 DisplayContext capitalizationContext, in RelativeDateTimeFormatter() argument
987 if (capitalizationContext.type() != DisplayContext.Type.CAPITALIZATION) { in RelativeDateTimeFormatter()
988 throw new IllegalArgumentException(capitalizationContext.toString()); in RelativeDateTimeFormatter()
990 this.capitalizationContext = capitalizationContext; in RelativeDateTimeFormatter()
1036 private final DisplayContext capitalizationContext; field in RelativeDateTimeFormatter
DChineseDateFormat.java129 int fieldNum, DisplayContext capitalizationContext, in subFormat() argument
137 …super.subFormat(buf, ch, count, beginOffset, fieldNum, capitalizationContext, pos, patternCharToOu… in subFormat()
DSimpleDateFormat.java1366 private StringBuffer format(Calendar cal, DisplayContext capitalizationContext, in format() argument
1389 i, capitalizationContext, pos, item.type, cal); in format()
1392 i, capitalizationContext, pos, item.type, cal)); in format()
1550 int fieldNum, DisplayContext capitalizationContext, in subFormat() argument
1556 …subFormat(buf, ch, count, beginOffset, fieldNum, capitalizationContext, pos, patternCharToOutput, … in subFormat()
1576 int fieldNum, DisplayContext capitalizationContext, in subFormat() argument
1940 … subFormat(buf, 'a', count, beginOffset, fieldNum, capitalizationContext, pos, 'b', cal); in subFormat()
1958 … subFormat(buf, 'a', count, beginOffset, fieldNum, capitalizationContext, pos, 'B', cal); in subFormat()
2027 … subFormat(buf, 'a', count, beginOffset, fieldNum, capitalizationContext, pos, 'B', cal); in subFormat()
2058 if (fieldNum == 0 && capitalizationContext != null && buf.length() > bufstart && in subFormat()
[all …]
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DRelativeDateTimeFormatter.java604 DisplayContext capitalizationContext) { in getInstance() argument
619 capitalizationContext, in getInstance()
620 capitalizationContext == DisplayContext.CAPITALIZATION_FOR_BEGINNING_OF_SENTENCE ? in getInstance()
1029 return capitalizationContext; in getCapitalizationContext()
1068 DisplayContext capitalizationContext, in RelativeDateTimeFormatter() argument
1077 if (capitalizationContext.type() != DisplayContext.Type.CAPITALIZATION) { in RelativeDateTimeFormatter()
1078 throw new IllegalArgumentException(capitalizationContext.toString()); in RelativeDateTimeFormatter()
1080 this.capitalizationContext = capitalizationContext; in RelativeDateTimeFormatter()
1126 private final DisplayContext capitalizationContext; field in RelativeDateTimeFormatter
DChineseDateFormat.java127 int fieldNum, DisplayContext capitalizationContext, in subFormat() argument
135 …super.subFormat(buf, ch, count, beginOffset, fieldNum, capitalizationContext, pos, patternCharToOu… in subFormat()
DSimpleDateFormat.java1372 private StringBuffer format(Calendar cal, DisplayContext capitalizationContext, in format() argument
1395 i, capitalizationContext, pos, item.type, cal); in format()
1398 i, capitalizationContext, pos, item.type, cal)); in format()
1559 int fieldNum, DisplayContext capitalizationContext, in subFormat() argument
1565 …subFormat(buf, ch, count, beginOffset, fieldNum, capitalizationContext, pos, patternCharToOutput, … in subFormat()
1585 int fieldNum, DisplayContext capitalizationContext, in subFormat() argument
1953 … subFormat(buf, 'a', count, beginOffset, fieldNum, capitalizationContext, pos, 'b', cal); in subFormat()
1971 … subFormat(buf, 'a', count, beginOffset, fieldNum, capitalizationContext, pos, 'B', cal); in subFormat()
2040 … subFormat(buf, 'a', count, beginOffset, fieldNum, capitalizationContext, pos, 'B', cal); in subFormat()
2071 if (fieldNum == 0 && capitalizationContext != null && buf.length() > bufstart && in subFormat()
[all …]
/third_party/skia/third_party/externals/icu/source/common/
Dlocdspnm.cpp283 UDisplayContext capitalizationContext; member in LocaleDisplayNamesImpl
360 , capitalizationContext(UDISPCTX_CAPITALIZATION_NONE) in LocaleDisplayNamesImpl()
373 , capitalizationContext(UDISPCTX_CAPITALIZATION_NONE) in LocaleDisplayNamesImpl()
386 capitalizationContext = value; in LocaleDisplayNamesImpl()
437 …int32_t titlecaseInt = (parent.capitalizationContext == UDISPCTX_CAPITALIZATION_FOR_UI_LIST_OR_MEN… in put()
494 …if (capitalizationContext == UDISPCTX_CAPITALIZATION_FOR_UI_LIST_OR_MENU || capitalizationContext in initialize()
508 if (needBrkIter || capitalizationContext == UDISPCTX_CAPITALIZATION_FOR_BEGINNING_OF_SENTENCE) { in initialize()
541 return capitalizationContext; in getContext()
558 …( capitalizationContext==UDISPCTX_CAPITALIZATION_FOR_BEGINNING_OF_SENTENCE || fCapitalization[usag… in adjustForUsageAndContext()
/third_party/node/deps/icu-small/source/common/
Dlocdspnm.cpp283 UDisplayContext capitalizationContext; member in LocaleDisplayNamesImpl
360 , capitalizationContext(UDISPCTX_CAPITALIZATION_NONE) in LocaleDisplayNamesImpl()
373 , capitalizationContext(UDISPCTX_CAPITALIZATION_NONE) in LocaleDisplayNamesImpl()
386 capitalizationContext = value; in LocaleDisplayNamesImpl()
437 …int32_t titlecaseInt = (parent.capitalizationContext == UDISPCTX_CAPITALIZATION_FOR_UI_LIST_OR_MEN… in put()
494 …if (capitalizationContext == UDISPCTX_CAPITALIZATION_FOR_UI_LIST_OR_MENU || capitalizationContext in initialize()
508 if (needBrkIter || capitalizationContext == UDISPCTX_CAPITALIZATION_FOR_BEGINNING_OF_SENTENCE) { in initialize()
541 return capitalizationContext; in getContext()
558 …( capitalizationContext==UDISPCTX_CAPITALIZATION_FOR_BEGINNING_OF_SENTENCE || fCapitalization[usag… in adjustForUsageAndContext()
/third_party/icu/icu4c/source/common/
Dlocdspnm.cpp283 UDisplayContext capitalizationContext; member in LocaleDisplayNamesImpl
360 , capitalizationContext(UDISPCTX_CAPITALIZATION_NONE) in LocaleDisplayNamesImpl()
373 , capitalizationContext(UDISPCTX_CAPITALIZATION_NONE) in LocaleDisplayNamesImpl()
386 capitalizationContext = value; in LocaleDisplayNamesImpl()
437 …int32_t titlecaseInt = (parent.capitalizationContext == UDISPCTX_CAPITALIZATION_FOR_UI_LIST_OR_MEN… in put()
494 …if (capitalizationContext == UDISPCTX_CAPITALIZATION_FOR_UI_LIST_OR_MENU || capitalizationContext in initialize()
508 if (needBrkIter || capitalizationContext == UDISPCTX_CAPITALIZATION_FOR_BEGINNING_OF_SENTENCE) { in initialize()
541 return capitalizationContext; in getContext()
558 …( capitalizationContext==UDISPCTX_CAPITALIZATION_FOR_BEGINNING_OF_SENTENCE || fCapitalization[usag… in adjustForUsageAndContext()
/third_party/skia/third_party/externals/icu/source/i18n/
Dreldtfmt.cpp160 UDisplayContext capitalizationContext = getContext(UDISPCTX_TYPE_CAPITALIZATION, status); in format() local
178 ( capitalizationContext==UDISPCTX_CAPITALIZATION_FOR_BEGINNING_OF_SENTENCE || in format()
179 …(capitalizationContext==UDISPCTX_CAPITALIZATION_FOR_UI_LIST_OR_MENU && fCapitalizationOfRelativeUn… in format()
180 …(capitalizationContext==UDISPCTX_CAPITALIZATION_FOR_STANDALONE && fCapitalizationOfRelativeUnitsFo… in format()
188 fDateTimeFormatter->setContext(capitalizationContext, status); in format()
Dreldatefmt.cpp787 UDisplayContext capitalizationContext, in RelativeDateTimeFormatter() argument
793 fContext(capitalizationContext), in RelativeDateTimeFormatter()
799 if ((capitalizationContext >> 8) != UDISPCTX_TYPE_CAPITALIZATION) { in RelativeDateTimeFormatter()
803 if (capitalizationContext == UDISPCTX_CAPITALIZATION_FOR_BEGINNING_OF_SENTENCE) { in RelativeDateTimeFormatter()
1280 UDisplayContext capitalizationContext, in ureldatefmt_open() argument
1288capitalizationContext, *status), *status); in ureldatefmt_open()
/third_party/node/deps/icu-small/source/i18n/
Dreldtfmt.cpp160 UDisplayContext capitalizationContext = getContext(UDISPCTX_TYPE_CAPITALIZATION, status); in format() local
178 ( capitalizationContext==UDISPCTX_CAPITALIZATION_FOR_BEGINNING_OF_SENTENCE || in format()
179 …(capitalizationContext==UDISPCTX_CAPITALIZATION_FOR_UI_LIST_OR_MENU && fCapitalizationOfRelativeUn… in format()
180 …(capitalizationContext==UDISPCTX_CAPITALIZATION_FOR_STANDALONE && fCapitalizationOfRelativeUnitsFo… in format()
188 fDateTimeFormatter->setContext(capitalizationContext, status); in format()
Dreldatefmt.cpp795 UDisplayContext capitalizationContext, in RelativeDateTimeFormatter() argument
801 fContext(capitalizationContext), in RelativeDateTimeFormatter()
807 if ((capitalizationContext >> 8) != UDISPCTX_TYPE_CAPITALIZATION) { in RelativeDateTimeFormatter()
811 if (capitalizationContext == UDISPCTX_CAPITALIZATION_FOR_BEGINNING_OF_SENTENCE) { in RelativeDateTimeFormatter()
1288 UDisplayContext capitalizationContext, in ureldatefmt_open() argument
1296capitalizationContext, *status), *status); in ureldatefmt_open()
/third_party/icu/icu4c/source/i18n/
Dreldtfmt.cpp160 UDisplayContext capitalizationContext = getContext(UDISPCTX_TYPE_CAPITALIZATION, status); in format() local
178 ( capitalizationContext==UDISPCTX_CAPITALIZATION_FOR_BEGINNING_OF_SENTENCE || in format()
179 …(capitalizationContext==UDISPCTX_CAPITALIZATION_FOR_UI_LIST_OR_MENU && fCapitalizationOfRelativeUn… in format()
180 …(capitalizationContext==UDISPCTX_CAPITALIZATION_FOR_STANDALONE && fCapitalizationOfRelativeUnitsFo… in format()
188 fDateTimeFormatter->setContext(capitalizationContext, status); in format()
Dreldatefmt.cpp795 UDisplayContext capitalizationContext, in RelativeDateTimeFormatter() argument
801 fContext(capitalizationContext), in RelativeDateTimeFormatter()
811 if ((capitalizationContext >> 8) != UDISPCTX_TYPE_CAPITALIZATION) { in RelativeDateTimeFormatter()
815 if (capitalizationContext == UDISPCTX_CAPITALIZATION_FOR_BEGINNING_OF_SENTENCE) { in RelativeDateTimeFormatter()
1296 UDisplayContext capitalizationContext, in ureldatefmt_open() argument
1304capitalizationContext, *status), *status); in ureldatefmt_open()
/third_party/icu/icu4c/source/test/cintltst/
Dcdattst.c1467 UDisplayContext capitalizationContext; member
1500 UDisplayContext capitalizationContext; member
1539 udat_setContext(udfmt, textContextItemPtr->capitalizationContext, &status); in TestContext()
1545 … textContextItemPtr->locale, (int)textContextItemPtr->capitalizationContext, u_errorName(status) ); in TestContext()
1551 … textContextItemPtr->locale, (int)textContextItemPtr->capitalizationContext, in TestContext()
1557 … textContextItemPtr->locale, (int)textContextItemPtr->capitalizationContext, u_errorName(status) ); in TestContext()
1558 } else if (getContext != textContextItemPtr->capitalizationContext) { in TestContext()
1560 … textContextItemPtr->locale, (int)textContextItemPtr->capitalizationContext, (int)getContext ); in TestContext()
1564 … textContextItemPtr->locale, (int)textContextItemPtr->capitalizationContext, u_errorName(status) ); in TestContext()
1584 udat_setContext(udfmt, textRelContextItemPtr->capitalizationContext, &status); in TestContext()
[all …]
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DDateFormatTest.java4581 public DisplayContext capitalizationContext; in TestContext() field in DateFormatTest.TestContextItem
4587 capitalizationContext = capCtxt; in TestContext()
4605 public DisplayContext capitalizationContext; in TestContext() field in DateFormatTest.TestRelativeContextItem
4611 capitalizationContext = capCtxt; in TestContext()
4635 sdfmt.setContext(item.capitalizationContext); in TestContext()
4638 …rrln("FAIL: for locale " + item.locale + ", capitalizationContext " + item.capitalizationContext + in TestContext()
4646 …AIL: format for locale " + item.locale + ", capitalizationContext " + item.capitalizationContext + in TestContext()
4651 … DisplayContext capitalizationContext = sdfmt.getContext(DisplayContext.Type.CAPITALIZATION); in TestContext() local
4652 if (capitalizationContext != item.capitalizationContext) { in TestContext()
4653 … getContext for locale " + item.locale + ", capitalizationContext " + item.capitalizationContext + in TestContext()
[all …]
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/format/
DDateFormatTest.java4484 public DisplayContext capitalizationContext; in TestContext() field in DateFormatTest.TestContextItem
4490 capitalizationContext = capCtxt; in TestContext()
4508 public DisplayContext capitalizationContext; in TestContext() field in DateFormatTest.TestRelativeContextItem
4514 capitalizationContext = capCtxt; in TestContext()
4538 sdfmt.setContext(item.capitalizationContext); in TestContext()
4541 …rrln("FAIL: for locale " + item.locale + ", capitalizationContext " + item.capitalizationContext + in TestContext()
4549 …AIL: format for locale " + item.locale + ", capitalizationContext " + item.capitalizationContext + in TestContext()
4554 … DisplayContext capitalizationContext = sdfmt.getContext(DisplayContext.Type.CAPITALIZATION); in TestContext() local
4555 if (capitalizationContext != item.capitalizationContext) { in TestContext()
4556 … getContext for locale " + item.locale + ", capitalizationContext " + item.capitalizationContext + in TestContext()
[all …]
/third_party/node/deps/icu-small/source/i18n/unicode/
Dureldatefmt.h244 UDisplayContext capitalizationContext,
Dreldatefmt.h443 UDisplayContext capitalizationContext,
/third_party/skia/third_party/externals/icu/source/i18n/unicode/
Dureldatefmt.h244 UDisplayContext capitalizationContext,
Dreldatefmt.h443 UDisplayContext capitalizationContext,
/third_party/icu/icu4c/source/i18n/unicode/
Dureldatefmt.h244 UDisplayContext capitalizationContext,

12