public class WordBreak internal constructor(internal val value: Int)
Describes how line breaks should be inserted within words.
Functions
toString
override fun toString(): String
Members
Companion
public companion object
Properties
Default
public val Default: WordBreak
Default word breaking rules for the locale. In latin scripts this means inserting line breaks between words, while in languages that don't use whitespace (e.g. Japanese) the line can break between characters.
+---------+ | This is | | an | | example | | text. | | δ»ζ₯γ―θͺ | | η±γδΈγ§ | | ηΌγι³₯γ | | ι£γΉγΎ | | γγ | +---------+
Phrase
public val Phrase: WordBreak
Line breaking is based on phrases. In languages that don't use whitespace (e.g. Japanese), line breaks are not inserted between characters that are part of the same phrase unit. This is ideal for short text such as titles and UI labels.
+---------+ | This | | is an | | example | | text. | | δ»ζ₯γ― | | θͺη±γδΈ | | γ§ηΌγι³₯ | | γι£γΉ | | γΎγγ | +---------+
Unspecified
public val Unspecified: WordBreak
This represents an unset value, a usual replacement for "null" when a primitive value is desired.