Sdílet prostřednictvím


CaseMap.Title.Apply Method

Definition

Overloads

Apply(Locale, BreakIterator, ICharSequence)

Titlecases a string.

Apply(Locale, BreakIterator, String)

Titlecases a string.

Apply(Locale, BreakIterator, ICharSequence, Object, Edits)

Titlecases a string and optionally records edits (see #omitUnchangedText).

Apply(Locale, BreakIterator, String, Object, Edits)

Titlecases a string and optionally records edits (see #omitUnchangedText).

Apply(Locale, BreakIterator, ICharSequence)

Titlecases a string.

[Android.Runtime.Register("apply", "(Ljava/util/Locale;Landroid/icu/text/BreakIterator;Ljava/lang/CharSequence;)Ljava/lang/String;", "", ApiSince=29)]
public string? Apply (Java.Util.Locale? locale, Android.Icu.Text.BreakIterator? iter, Java.Lang.ICharSequence? src);
[<Android.Runtime.Register("apply", "(Ljava/util/Locale;Landroid/icu/text/BreakIterator;Ljava/lang/CharSequence;)Ljava/lang/String;", "", ApiSince=29)>]
member this.Apply : Java.Util.Locale * Android.Icu.Text.BreakIterator * Java.Lang.ICharSequence -> string

Parameters

locale
Locale

The locale ID. Can be null for Locale#getDefault. (See ULocale#toLocale.)

iter
BreakIterator

A break iterator to find the first characters of words that are to be titlecased. It is set to the source string (setText()) and used one or more times for iteration (first() and next()). If null, then a word break iterator for the locale is used (or something equivalent).

src
ICharSequence

The original string.

Returns

the result string.

Attributes

Remarks

Titlecases a string. Casing is locale-dependent and context-sensitive. The result may be longer or shorter than the original.

Titlecasing uses a break iterator to find the first characters of words that are to be titlecased. It titlecases those characters and lowercases all others. (This can be modified with options bits.)

Java documentation for android.icu.text.CaseMap.Title.apply(java.util.Locale, android.icu.text.BreakIterator, java.lang.CharSequence).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

Apply(Locale, BreakIterator, String)

Titlecases a string.

public string? Apply (Java.Util.Locale? locale, Android.Icu.Text.BreakIterator? iter, string? src);
member this.Apply : Java.Util.Locale * Android.Icu.Text.BreakIterator * string -> string

Parameters

locale
Locale

The locale ID. Can be null for Locale#getDefault. (See ULocale#toLocale.)

iter
BreakIterator

A break iterator to find the first characters of words that are to be titlecased. It is set to the source string (setText()) and used one or more times for iteration (first() and next()). If null, then a word break iterator for the locale is used (or something equivalent).

src
String

The original string.

Returns

the result string.

Remarks

Titlecases a string. Casing is locale-dependent and context-sensitive. The result may be longer or shorter than the original.

Titlecasing uses a break iterator to find the first characters of words that are to be titlecased. It titlecases those characters and lowercases all others. (This can be modified with options bits.)

Java documentation for android.icu.text.CaseMap.Title.apply(java.util.Locale, android.icu.text.BreakIterator, java.lang.CharSequence).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

Apply(Locale, BreakIterator, ICharSequence, Object, Edits)

Titlecases a string and optionally records edits (see #omitUnchangedText).

[Android.Runtime.Register("apply", "(Ljava/util/Locale;Landroid/icu/text/BreakIterator;Ljava/lang/CharSequence;Ljava/lang/Appendable;Landroid/icu/text/Edits;)Ljava/lang/Appendable;", "", ApiSince=29)]
[Java.Interop.JavaTypeParameters(new System.String[] { "A extends java.lang.Appendable" })]
public Java.Lang.Object? Apply (Java.Util.Locale? locale, Android.Icu.Text.BreakIterator? iter, Java.Lang.ICharSequence? src, Java.Lang.Object? dest, Android.Icu.Text.Edits? edits);
[<Android.Runtime.Register("apply", "(Ljava/util/Locale;Landroid/icu/text/BreakIterator;Ljava/lang/CharSequence;Ljava/lang/Appendable;Landroid/icu/text/Edits;)Ljava/lang/Appendable;", "", ApiSince=29)>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "A extends java.lang.Appendable" })>]
member this.Apply : Java.Util.Locale * Android.Icu.Text.BreakIterator * Java.Lang.ICharSequence * Java.Lang.Object * Android.Icu.Text.Edits -> Java.Lang.Object

Parameters

locale
Locale

The locale ID. Can be null for Locale#getDefault. (See ULocale#toLocale.)

iter
BreakIterator

A break iterator to find the first characters of words that are to be titlecased. It is set to the source string (setText()) and used one or more times for iteration (first() and next()). If null, then a word break iterator for the locale is used (or something equivalent).

src
ICharSequence

The original string.

dest
Object

A buffer for the result string. Must not be null.

edits
Edits

Records edits for index mapping, working with styled text, and getting only changes (if any). This function calls edits.reset() first. edits can be null.

Returns

dest with the result string (or only changes) appended.

Attributes

Remarks

Titlecases a string and optionally records edits (see #omitUnchangedText). Casing is locale-dependent and context-sensitive. The result may be longer or shorter than the original.

Titlecasing uses a break iterator to find the first characters of words that are to be titlecased. It titlecases those characters and lowercases all others. (This can be modified with options bits.)

Java documentation for android.icu.text.CaseMap.Title.apply(java.util.Locale, android.icu.text.BreakIterator, java.lang.CharSequence, A, android.icu.text.Edits).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

Apply(Locale, BreakIterator, String, Object, Edits)

Titlecases a string and optionally records edits (see #omitUnchangedText).

public Java.Lang.Object? Apply (Java.Util.Locale? locale, Android.Icu.Text.BreakIterator? iter, string? src, Java.Lang.Object? dest, Android.Icu.Text.Edits? edits);
member this.Apply : Java.Util.Locale * Android.Icu.Text.BreakIterator * string * Java.Lang.Object * Android.Icu.Text.Edits -> Java.Lang.Object

Parameters

locale
Locale

The locale ID. Can be null for Locale#getDefault. (See ULocale#toLocale.)

iter
BreakIterator

A break iterator to find the first characters of words that are to be titlecased. It is set to the source string (setText()) and used one or more times for iteration (first() and next()). If null, then a word break iterator for the locale is used (or something equivalent).

src
String

The original string.

dest
Object

A buffer for the result string. Must not be null.

edits
Edits

Records edits for index mapping, working with styled text, and getting only changes (if any). This function calls edits.reset() first. edits can be null.

Returns

dest with the result string (or only changes) appended.

Remarks

Titlecases a string and optionally records edits (see #omitUnchangedText). Casing is locale-dependent and context-sensitive. The result may be longer or shorter than the original.

Titlecasing uses a break iterator to find the first characters of words that are to be titlecased. It titlecases those characters and lowercases all others. (This can be modified with options bits.)

Java documentation for android.icu.text.CaseMap.Title.apply(java.util.Locale, android.icu.text.BreakIterator, java.lang.CharSequence, A, android.icu.text.Edits).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to