| Package | Description |
|---|---|
| com.ibm.icu.text |
| Modifier and Type | Method and Description |
|---|---|
DisplayContext |
RelativeDateTimeFormatter.getCapitalizationContext()
Return capitalization context.
|
DisplayContext |
NumberFormat.getContext(DisplayContext.Type type)
[icu] Get the formatter's DisplayContext value for the specified DisplayContext.Type,
such as CAPITALIZATION.
|
abstract DisplayContext |
LocaleDisplayNames.getContext(DisplayContext.Type type)
Returns the current value for a specified DisplayContext.Type.
|
DisplayContext |
DateIntervalFormat.getContext(DisplayContext.Type type)
[icu] Get the formatter's DisplayContext value for the specified DisplayContext.Type,
such as CAPITALIZATION.
|
DisplayContext |
DateFormat.getContext(DisplayContext.Type type)
[icu] Get the formatter's DisplayContext value for the specified DisplayContext.Type,
such as CAPITALIZATION.
|
static DisplayContext |
DisplayContext.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DisplayContext[] |
DisplayContext.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
static LocaleDisplayNames |
LocaleDisplayNames.getInstance(Locale locale,
DisplayContext... contexts)
Returns an instance of LocaleDisplayNames that returns names formatted for the provided
Locale, using the provided DisplayContext settings |
static LocaleDisplayNames |
LocaleDisplayNames.getInstance(ULocale locale,
DisplayContext... contexts)
Returns an instance of LocaleDisplayNames that returns names formatted for the provided locale,
using the provided DisplayContext settings
|
static RelativeDateTimeFormatter |
RelativeDateTimeFormatter.getInstance(ULocale locale,
NumberFormat nf,
RelativeDateTimeFormatter.Style style,
DisplayContext capitalizationContext)
Returns a RelativeDateTimeFormatter for a particular locale that uses a particular
NumberFormat object, style, and capitalization context
|
void |
SimpleDateFormat.setContext(DisplayContext context)
[icu] Set a particular DisplayContext value in the formatter,
such as CAPITALIZATION_FOR_STANDALONE.
|
void |
RuleBasedNumberFormat.setContext(DisplayContext context)
[icu] Set a particular DisplayContext value in the formatter,
such as CAPITALIZATION_FOR_STANDALONE.
|
void |
NumberFormat.setContext(DisplayContext context)
[icu] Set a particular DisplayContext value in the formatter,
such as CAPITALIZATION_FOR_STANDALONE.
|
void |
DateIntervalFormat.setContext(DisplayContext context)
[icu] Set a particular DisplayContext value in the formatter,
such as CAPITALIZATION_FOR_STANDALONE.
|
void |
DateFormat.setContext(DisplayContext context)
[icu] Set a particular DisplayContext value in the formatter,
such as CAPITALIZATION_FOR_STANDALONE.
|
protected String |
SimpleDateFormat.subFormat(char ch,
int count,
int beginOffset,
int fieldNum,
DisplayContext capitalizationContext,
FieldPosition pos,
char patternCharToOutput,
Calendar cal)
Deprecated.
This API is ICU internal only.
|
protected void |
SimpleDateFormat.subFormat(StringBuffer buf,
char ch,
int count,
int beginOffset,
int fieldNum,
DisplayContext capitalizationContext,
FieldPosition pos,
char patternCharToOutput,
Calendar cal)
Deprecated.
This API is ICU internal only.
|
protected void |
ChineseDateFormat.subFormat(StringBuffer buf,
char ch,
int count,
int beginOffset,
int fieldNum,
DisplayContext capitalizationContext,
FieldPosition pos,
char patternCharToOutput,
Calendar cal)
Deprecated.
This API is ICU internal only.
|
Copyright © 2016 Unicode, Inc. and others.