ICU 76.1 76.1
Loading...
Searching...
No Matches
Public Member Functions
icu::DisplayOptions::Builder Class Reference

Responsible for building DisplayOptions. More...

#include <displayoptions.h>

Public Member Functions

BuildersetGrammaticalCase (UDisplayOptionsGrammaticalCase grammaticalCase)
 Sets the grammatical case.
 
BuildersetNounClass (UDisplayOptionsNounClass nounClass)
 Sets the noun class.
 
BuildersetPluralCategory (UDisplayOptionsPluralCategory pluralCategory)
 Sets the plural category.
 
BuildersetCapitalization (UDisplayOptionsCapitalization capitalization)
 Sets the capitalization.
 
BuildersetNameStyle (UDisplayOptionsNameStyle nameStyle)
 Sets the dialect handling.
 
BuildersetDisplayLength (UDisplayOptionsDisplayLength displayLength)
 Sets the display length.
 
BuildersetSubstituteHandling (UDisplayOptionsSubstituteHandling substituteHandling)
 Sets the substitute handling.
 
DisplayOptions build ()
 Builds the display options.
 

Detailed Description

Responsible for building DisplayOptions.

Stable:
ICU 72

Definition at line 50 of file displayoptions.h.

Member Function Documentation

◆ build()

DisplayOptions icu::DisplayOptions::Builder::build ( )
inline

Builds the display options.

Returns
DisplayOptions
Stable:
ICU 72

Definition at line 142 of file displayoptions.h.

◆ setCapitalization()

Builder & icu::DisplayOptions::Builder::setCapitalization ( UDisplayOptionsCapitalization  capitalization)
inline

Sets the capitalization.

Parameters
capitalizationThe capitalization.
Returns
Builder
Stable:
ICU 72

Definition at line 95 of file displayoptions.h.

◆ setDisplayLength()

Builder & icu::DisplayOptions::Builder::setDisplayLength ( UDisplayOptionsDisplayLength  displayLength)
inline

Sets the display length.

Parameters
displayLengthThe display length.
Returns
Builder
Stable:
ICU 72

Definition at line 119 of file displayoptions.h.

◆ setGrammaticalCase()

Builder & icu::DisplayOptions::Builder::setGrammaticalCase ( UDisplayOptionsGrammaticalCase  grammaticalCase)
inline

Sets the grammatical case.

Parameters
grammaticalCaseThe grammatical case.
Returns
Builder
Stable:
ICU 72

Definition at line 59 of file displayoptions.h.

◆ setNameStyle()

Builder & icu::DisplayOptions::Builder::setNameStyle ( UDisplayOptionsNameStyle  nameStyle)
inline

Sets the dialect handling.

Parameters
nameStyleThe name style.
Returns
Builder
Stable:
ICU 72

Definition at line 107 of file displayoptions.h.

◆ setNounClass()

Builder & icu::DisplayOptions::Builder::setNounClass ( UDisplayOptionsNounClass  nounClass)
inline

Sets the noun class.

Parameters
nounClassThe noun class.
Returns
Builder
Stable:
ICU 72

Definition at line 71 of file displayoptions.h.

◆ setPluralCategory()

Builder & icu::DisplayOptions::Builder::setPluralCategory ( UDisplayOptionsPluralCategory  pluralCategory)
inline

Sets the plural category.

Parameters
pluralCategoryThe plural category.
Returns
Builder
Stable:
ICU 72

Definition at line 83 of file displayoptions.h.

◆ setSubstituteHandling()

Builder & icu::DisplayOptions::Builder::setSubstituteHandling ( UDisplayOptionsSubstituteHandling  substituteHandling)
inline

Sets the substitute handling.

Parameters
substituteHandlingThe substitute handling.
Returns
Builder
Stable:
ICU 72

Definition at line 131 of file displayoptions.h.


The documentation for this class was generated from the following file: