Home
last modified time | relevance | path

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

/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/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/android_icu4j/src/main/java/android/icu/text/
DRelativeDateTimeFormatter.java396 DisplayContext capitalizationContext) { in getInstance() argument
411 capitalizationContext, in getInstance()
412 capitalizationContext == DisplayContext.CAPITALIZATION_FOR_BEGINNING_OF_SENTENCE ? in getInstance()
678 return capitalizationContext; in getCapitalizationContext()
710 DisplayContext capitalizationContext, in RelativeDateTimeFormatter() argument
719 if (capitalizationContext.type() != DisplayContext.Type.CAPITALIZATION) { in RelativeDateTimeFormatter()
720 throw new IllegalArgumentException(capitalizationContext.toString()); in RelativeDateTimeFormatter()
722 this.capitalizationContext = capitalizationContext; in RelativeDateTimeFormatter()
769 private final DisplayContext capitalizationContext; field in RelativeDateTimeFormatter
DChineseDateFormat.java129 int fieldNum, DisplayContext capitalizationContext, in subFormat() argument
136 super.subFormat(buf, ch, count, beginOffset, fieldNum, capitalizationContext, pos, cal); in subFormat()
DSimpleDateFormat.java1347 private StringBuffer format(Calendar cal, DisplayContext capitalizationContext, in format() argument
1370 i, capitalizationContext, pos, cal); in format()
1373 i, capitalizationContext, pos, cal)); in format()
1532 int fieldNum, DisplayContext capitalizationContext, in subFormat() argument
1537 subFormat(buf, ch, count, beginOffset, fieldNum, capitalizationContext, pos, cal); in subFormat()
1558 int fieldNum, DisplayContext capitalizationContext, in subFormat() argument
1918 subFormat(buf, 'a', count, beginOffset, fieldNum, capitalizationContext, pos, cal); in subFormat()
1933 subFormat(buf, 'a', count, beginOffset, fieldNum, capitalizationContext, pos, cal); in subFormat()
1999 subFormat(buf, 'a', count, beginOffset, fieldNum, capitalizationContext, pos, cal); in subFormat()
2029 …if (fieldNum == 0 && capitalizationContext != null && UCharacter.isLowerCase(buf.codePointAt(bufst… in subFormat()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DRelativeDateTimeFormatter.java450 DisplayContext capitalizationContext) { in getInstance() argument
465 capitalizationContext, in getInstance()
466 capitalizationContext == DisplayContext.CAPITALIZATION_FOR_BEGINNING_OF_SENTENCE ? in getInstance()
740 return capitalizationContext; in getCapitalizationContext()
773 DisplayContext capitalizationContext, in RelativeDateTimeFormatter() argument
782 if (capitalizationContext.type() != DisplayContext.Type.CAPITALIZATION) { in RelativeDateTimeFormatter()
783 throw new IllegalArgumentException(capitalizationContext.toString()); in RelativeDateTimeFormatter()
785 this.capitalizationContext = capitalizationContext; in RelativeDateTimeFormatter()
832 private final DisplayContext capitalizationContext; field in RelativeDateTimeFormatter
DChineseDateFormat.java127 int fieldNum, DisplayContext capitalizationContext, in subFormat() argument
134 super.subFormat(buf, ch, count, beginOffset, fieldNum, capitalizationContext, pos, cal); in subFormat()
DSimpleDateFormat.java1356 private StringBuffer format(Calendar cal, DisplayContext capitalizationContext, in format() argument
1379 i, capitalizationContext, pos, cal); in format()
1382 i, capitalizationContext, pos, cal)); in format()
1543 int fieldNum, DisplayContext capitalizationContext, in subFormat() argument
1548 subFormat(buf, ch, count, beginOffset, fieldNum, capitalizationContext, pos, cal); in subFormat()
1568 int fieldNum, DisplayContext capitalizationContext, in subFormat() argument
1928 subFormat(buf, 'a', count, beginOffset, fieldNum, capitalizationContext, pos, cal); in subFormat()
1943 subFormat(buf, 'a', count, beginOffset, fieldNum, capitalizationContext, pos, cal); in subFormat()
2009 subFormat(buf, 'a', count, beginOffset, fieldNum, capitalizationContext, pos, cal); in subFormat()
2039 …if (fieldNum == 0 && capitalizationContext != null && UCharacter.isLowerCase(buf.codePointAt(bufst… in subFormat()
[all …]
/external/icu/icu4c/source/common/
Dlocdspnm.cpp283 UDisplayContext capitalizationContext; member in LocaleDisplayNamesImpl
362 , capitalizationContext(UDISPCTX_CAPITALIZATION_NONE) in LocaleDisplayNamesImpl()
374 , capitalizationContext(UDISPCTX_CAPITALIZATION_NONE) in LocaleDisplayNamesImpl()
386 capitalizationContext = value; in LocaleDisplayNamesImpl()
434 …int32_t titlecaseInt = (parent.capitalizationContext == UDISPCTX_CAPITALIZATION_FOR_UI_LIST_OR_MEN… in put()
491 …if (capitalizationContext == UDISPCTX_CAPITALIZATION_FOR_UI_LIST_OR_MENU || capitalizationContext in initialize()
505 if (needBrkIter || capitalizationContext == UDISPCTX_CAPITALIZATION_FOR_BEGINNING_OF_SENTENCE) { in initialize()
538 return capitalizationContext; in getContext()
553 …( capitalizationContext==UDISPCTX_CAPITALIZATION_FOR_BEGINNING_OF_SENTENCE || fCapitalization[usag… in adjustForUsageAndContext()
/external/icu/icu4c/source/test/cintltst/
Dcdattst.c1440 UDisplayContext capitalizationContext; member
1473 UDisplayContext capitalizationContext; member
1512 udat_setContext(udfmt, textContextItemPtr->capitalizationContext, &status); in TestContext()
1518 … textContextItemPtr->locale, (int)textContextItemPtr->capitalizationContext, u_errorName(status) ); in TestContext()
1524 … textContextItemPtr->locale, (int)textContextItemPtr->capitalizationContext, in TestContext()
1530 … textContextItemPtr->locale, (int)textContextItemPtr->capitalizationContext, u_errorName(status) ); in TestContext()
1531 } else if (getContext != textContextItemPtr->capitalizationContext) { in TestContext()
1533 … textContextItemPtr->locale, (int)textContextItemPtr->capitalizationContext, (int)getContext ); in TestContext()
1537 … textContextItemPtr->locale, (int)textContextItemPtr->capitalizationContext, u_errorName(status) ); in TestContext()
1557 udat_setContext(udfmt, textRelContextItemPtr->capitalizationContext, &status); in TestContext()
[all …]
/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.cpp751 UDisplayContext capitalizationContext, in RelativeDateTimeFormatter() argument
757 fContext(capitalizationContext), in RelativeDateTimeFormatter()
763 if ((capitalizationContext >> 8) != UDISPCTX_TYPE_CAPITALIZATION) { in RelativeDateTimeFormatter()
767 if (capitalizationContext == UDISPCTX_CAPITALIZATION_FOR_BEGINNING_OF_SENTENCE) { in RelativeDateTimeFormatter()
1072 UDisplayContext capitalizationContext, in ureldatefmt_open() argument
1080capitalizationContext, *status), *status); in ureldatefmt_open()
Drbnf.cpp1358 UDisplayContext capitalizationContext = getContext(UDISPCTX_TYPE_CAPITALIZATION, status); in adjustForCapitalizationContext() local
1359 …if (capitalizationContext != UDISPCTX_CAPITALIZATION_NONE && startPos == 0 && currentResult.length… in adjustForCapitalizationContext()
1363 ( capitalizationContext == UDISPCTX_CAPITALIZATION_FOR_BEGINNING_OF_SENTENCE || in adjustForCapitalizationContext()
1364 …(capitalizationContext == UDISPCTX_CAPITALIZATION_FOR_UI_LIST_OR_MENU && capitalizationForUIListMe… in adjustForCapitalizationContext()
1365 …(capitalizationContext == UDISPCTX_CAPITALIZATION_FOR_STANDALONE && capitalizationForStandAlone)) … in adjustForCapitalizationContext()
Dsmpdtfmt.cpp981 UDisplayContext capitalizationContext = getContext(UDISPCTX_TYPE_CAPITALIZATION, status); in _format() local
990 … subFormat(appendTo, prevCh, count, capitalizationContext, fieldNum++, handler, *workCal, status); in _format()
1017 … subFormat(appendTo, prevCh, count, capitalizationContext, fieldNum++, handler, *workCal, status); in _format()
1394 UDisplayContext capitalizationContext, in subFormat() argument
1843 subFormat(appendTo, 0x61, count, capitalizationContext, fieldNum, in subFormat()
1864 subFormat(appendTo, 0x61, count, capitalizationContext, fieldNum, in subFormat()
1935 subFormat(appendTo, 0x61, count, capitalizationContext, fieldNum, in subFormat()
1955 switch (capitalizationContext) { in subFormat()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DDateFormatTest.java4480 public DisplayContext capitalizationContext; in TestContext() field in DateFormatTest.TestContextItem
4486 capitalizationContext = capCtxt; in TestContext()
4504 public DisplayContext capitalizationContext; in TestContext() field in DateFormatTest.TestRelativeContextItem
4510 capitalizationContext = capCtxt; in TestContext()
4534 sdfmt.setContext(item.capitalizationContext); in TestContext()
4537 …rrln("FAIL: for locale " + item.locale + ", capitalizationContext " + item.capitalizationContext + in TestContext()
4545 …AIL: format for locale " + item.locale + ", capitalizationContext " + item.capitalizationContext + in TestContext()
4550 … DisplayContext capitalizationContext = sdfmt.getContext(DisplayContext.Type.CAPITALIZATION); in TestContext() local
4551 if (capitalizationContext != item.capitalizationContext) { in TestContext()
4552 … getContext for locale " + item.locale + ", capitalizationContext " + item.capitalizationContext + in TestContext()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DDateFormatTest.java4483 public DisplayContext capitalizationContext; in TestContext() field in DateFormatTest.TestContextItem
4489 capitalizationContext = capCtxt; in TestContext()
4507 public DisplayContext capitalizationContext; in TestContext() field in DateFormatTest.TestRelativeContextItem
4513 capitalizationContext = capCtxt; in TestContext()
4537 sdfmt.setContext(item.capitalizationContext); in TestContext()
4540 …rrln("FAIL: for locale " + item.locale + ", capitalizationContext " + item.capitalizationContext + in TestContext()
4548 …AIL: format for locale " + item.locale + ", capitalizationContext " + item.capitalizationContext + in TestContext()
4553 … DisplayContext capitalizationContext = sdfmt.getContext(DisplayContext.Type.CAPITALIZATION); in TestContext() local
4554 if (capitalizationContext != item.capitalizationContext) { in TestContext()
4555 … getContext for locale " + item.locale + ", capitalizationContext " + item.capitalizationContext + in TestContext()
[all …]
/external/icu/icu4c/source/i18n/unicode/
Dureldatefmt.h221 UDisplayContext capitalizationContext,
Dreldatefmt.h364 UDisplayContext capitalizationContext,
Dsmpdtfmt.h1271 UDisplayContext capitalizationContext,
/external/icu/libandroidicu/include/unicode/
Dureldatefmt.h221 UDisplayContext capitalizationContext,
/external/icu/icu4c/source/test/intltest/
Ddtfmttst.cpp4181 UDisplayContext capitalizationContext; member
4221 sdmft->setContext(itemPtr->capitalizationContext, status); in TestContext()
4228 ", capitalizationContext " + (int)itemPtr->capitalizationContext + in TestContext()
/external/icu/libandroidicu/static_shim/
Dshim.cpp2373 …Adopt, UDateRelativeDateTimeFormatterStyle width, UDisplayContext capitalizationContext, UErrorCod… in ureldatefmt_open_android() argument
2374 return ureldatefmt_open(locale, nfToAdopt, width, capitalizationContext, status); in ureldatefmt_open_android()