Home
last modified time | relevance | path

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

/external/icu/android_icu4j/src/main/java/android/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()
/external/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()
/external/icu/android_icu4j/src/main/java/android/icu/text/
DChineseDateFormat.java129 int fieldNum, DisplayContext capitalizationContext, in subFormat() argument
137 …super.subFormat(buf, ch, count, beginOffset, fieldNum, capitalizationContext, pos, patternCharToOu… in subFormat()
DRelativeDateTimeFormatter.java527 DisplayContext capitalizationContext) { in getInstance() argument
542 capitalizationContext, in getInstance()
543 capitalizationContext == DisplayContext.CAPITALIZATION_FOR_BEGINNING_OF_SENTENCE ? in getInstance()
945 return capitalizationContext; in getCapitalizationContext()
983 DisplayContext capitalizationContext, in RelativeDateTimeFormatter() argument
992 if (capitalizationContext.type() != DisplayContext.Type.CAPITALIZATION) { in RelativeDateTimeFormatter()
993 throw new IllegalArgumentException(capitalizationContext.toString()); in RelativeDateTimeFormatter()
995 this.capitalizationContext = capitalizationContext; in RelativeDateTimeFormatter()
1042 private final DisplayContext capitalizationContext; field in RelativeDateTimeFormatter
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 …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DChineseDateFormat.java127 int fieldNum, DisplayContext capitalizationContext, in subFormat() argument
135 …super.subFormat(buf, ch, count, beginOffset, fieldNum, capitalizationContext, pos, patternCharToOu… in subFormat()
DRelativeDateTimeFormatter.java604 DisplayContext capitalizationContext) { in getInstance() argument
619 capitalizationContext, in getInstance()
620 capitalizationContext == DisplayContext.CAPITALIZATION_FOR_BEGINNING_OF_SENTENCE ? in getInstance()
1034 return capitalizationContext; in getCapitalizationContext()
1073 DisplayContext capitalizationContext, in RelativeDateTimeFormatter() argument
1082 if (capitalizationContext.type() != DisplayContext.Type.CAPITALIZATION) { in RelativeDateTimeFormatter()
1083 throw new IllegalArgumentException(capitalizationContext.toString()); in RelativeDateTimeFormatter()
1085 this.capitalizationContext = capitalizationContext; in RelativeDateTimeFormatter()
1132 private final DisplayContext capitalizationContext; field in RelativeDateTimeFormatter
DSimpleDateFormat.java1375 private StringBuffer format(Calendar cal, DisplayContext capitalizationContext, in format() argument
1398 i, capitalizationContext, pos, item.type, cal); in format()
1401 i, capitalizationContext, pos, item.type, cal)); in format()
1562 int fieldNum, DisplayContext capitalizationContext, in subFormat() argument
1568 …subFormat(buf, ch, count, beginOffset, fieldNum, capitalizationContext, pos, patternCharToOutput, … in subFormat()
1588 int fieldNum, DisplayContext capitalizationContext, in subFormat() argument
1952 … subFormat(buf, 'a', count, beginOffset, fieldNum, capitalizationContext, pos, 'b', cal); in subFormat()
1970 … subFormat(buf, 'a', count, beginOffset, fieldNum, capitalizationContext, pos, 'B', cal); in subFormat()
2039 … subFormat(buf, 'a', count, beginOffset, fieldNum, capitalizationContext, pos, 'B', cal); in subFormat()
2070 if (fieldNum == 0 && capitalizationContext != null && buf.length() > bufstart && in subFormat()
[all …]
/external/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()
/external/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.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()
Drbnf.cpp1325 UDisplayContext capitalizationContext = getContext(UDISPCTX_TYPE_CAPITALIZATION, status); in adjustForCapitalizationContext() local
1326 …if (capitalizationContext != UDISPCTX_CAPITALIZATION_NONE && startPos == 0 && currentResult.length… in adjustForCapitalizationContext()
1330 ( capitalizationContext == UDISPCTX_CAPITALIZATION_FOR_BEGINNING_OF_SENTENCE || in adjustForCapitalizationContext()
1331 …(capitalizationContext == UDISPCTX_CAPITALIZATION_FOR_UI_LIST_OR_MENU && capitalizationForUIListMe… in adjustForCapitalizationContext()
1332 …(capitalizationContext == UDISPCTX_CAPITALIZATION_FOR_STANDALONE && capitalizationForStandAlone)) … in adjustForCapitalizationContext()
Dsmpdtfmt.cpp1051 UDisplayContext capitalizationContext = getContext(UDISPCTX_TYPE_CAPITALIZATION, status); in _format() local
1060 subFormat(appendTo, prevCh, count, capitalizationContext, fieldNum++, in _format()
1088 subFormat(appendTo, prevCh, count, capitalizationContext, fieldNum++, in _format()
1470 UDisplayContext capitalizationContext, in subFormat() argument
1923 … subFormat(appendTo, u'a', count, capitalizationContext, fieldNum, u'b', handler, cal, status); in subFormat()
1947 … subFormat(appendTo, u'a', count, capitalizationContext, fieldNum, u'B', handler, cal, status); in subFormat()
2020 … subFormat(appendTo, u'a', count, capitalizationContext, fieldNum, u'B', handler, cal, status); in subFormat()
2041 switch (capitalizationContext) { in subFormat()
/external/icu/icu4c/source/test/cintltst/
Dcdattst.c1449 UDisplayContext capitalizationContext; member
1482 UDisplayContext capitalizationContext; member
1521 udat_setContext(udfmt, textContextItemPtr->capitalizationContext, &status); in TestContext()
1527 … textContextItemPtr->locale, (int)textContextItemPtr->capitalizationContext, u_errorName(status) ); in TestContext()
1533 … textContextItemPtr->locale, (int)textContextItemPtr->capitalizationContext, in TestContext()
1539 … textContextItemPtr->locale, (int)textContextItemPtr->capitalizationContext, u_errorName(status) ); in TestContext()
1540 } else if (getContext != textContextItemPtr->capitalizationContext) { in TestContext()
1542 … textContextItemPtr->locale, (int)textContextItemPtr->capitalizationContext, (int)getContext ); in TestContext()
1546 … textContextItemPtr->locale, (int)textContextItemPtr->capitalizationContext, u_errorName(status) ); in TestContext()
1566 udat_setContext(udfmt, textRelContextItemPtr->capitalizationContext, &status); in TestContext()
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DDateFormatTest.java4568 public DisplayContext capitalizationContext; in TestContext() field in DateFormatTest.TestContextItem
4574 capitalizationContext = capCtxt; in TestContext()
4592 public DisplayContext capitalizationContext; in TestContext() field in DateFormatTest.TestRelativeContextItem
4598 capitalizationContext = capCtxt; in TestContext()
4622 sdfmt.setContext(item.capitalizationContext); in TestContext()
4625 …rrln("FAIL: for locale " + item.locale + ", capitalizationContext " + item.capitalizationContext + in TestContext()
4633 …AIL: format for locale " + item.locale + ", capitalizationContext " + item.capitalizationContext + in TestContext()
4638 … DisplayContext capitalizationContext = sdfmt.getContext(DisplayContext.Type.CAPITALIZATION); in TestContext() local
4639 if (capitalizationContext != item.capitalizationContext) { in TestContext()
4640 … getContext for locale " + item.locale + ", capitalizationContext " + item.capitalizationContext + in TestContext()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DDateFormatTest.java4571 public DisplayContext capitalizationContext; in TestContext() field in DateFormatTest.TestContextItem
4577 capitalizationContext = capCtxt; in TestContext()
4595 public DisplayContext capitalizationContext; in TestContext() field in DateFormatTest.TestRelativeContextItem
4601 capitalizationContext = capCtxt; in TestContext()
4625 sdfmt.setContext(item.capitalizationContext); in TestContext()
4628 …rrln("FAIL: for locale " + item.locale + ", capitalizationContext " + item.capitalizationContext + in TestContext()
4636 …AIL: format for locale " + item.locale + ", capitalizationContext " + item.capitalizationContext + in TestContext()
4641 … DisplayContext capitalizationContext = sdfmt.getContext(DisplayContext.Type.CAPITALIZATION); in TestContext() local
4642 if (capitalizationContext != item.capitalizationContext) { in TestContext()
4643 … getContext for locale " + item.locale + ", capitalizationContext " + item.capitalizationContext + in TestContext()
[all …]
/external/icu/icu4c/source/i18n/unicode/
Dureldatefmt.h244 UDisplayContext capitalizationContext,
Dreldatefmt.h443 UDisplayContext capitalizationContext,
Dsmpdtfmt.h1275 UDisplayContext capitalizationContext,
/external/icu/libandroidicu/include/unicode/
Dureldatefmt.h244 UDisplayContext capitalizationContext,
/external/icu/libicu/cts_headers/unicode/
Dureldatefmt.h244 UDisplayContext capitalizationContext,
Dreldatefmt.h443 UDisplayContext capitalizationContext,
Dsmpdtfmt.h1275 UDisplayContext capitalizationContext,
/external/icu/icu4c/source/test/intltest/
Ddtfmttst.cpp4245 UDisplayContext capitalizationContext; member
4285 sdmft->setContext(itemPtr->capitalizationContext, status); in TestContext()
4292 ", capitalizationContext " + (int)itemPtr->capitalizationContext + in TestContext()