UCharacter.ToTitleCase Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
ToTitleCase(Int32) |
Converts the code point argument to titlecase. |
ToTitleCase(String, BreakIterator) |
Returns the titlecase version of the argument string. |
ToTitleCase(ULocale, String, BreakIterator) |
Returns the titlecase version of the argument string. |
ToTitleCase(Locale, String, BreakIterator) |
Returns the titlecase version of the argument string. |
ToTitleCase(ULocale, String, BreakIterator, TitlecaseOptions) |
Returns the titlecase version of the argument string. |
ToTitleCase(Locale, String, BreakIterator, TitlecaseOptions) |
<strong>[icu]</strong> |
ToTitleCase(Int32)
Converts the code point argument to titlecase.
[Android.Runtime.Register("toTitleCase", "(I)I", "", ApiSince=24)]
public static int ToTitleCase (int ch);
[<Android.Runtime.Register("toTitleCase", "(I)I", "", ApiSince=24)>]
static member ToTitleCase : int -> int
Parameters
- ch
- Int32
code point whose title case is to be retrieved
Returns
titlecase code point
- Attributes
Remarks
Converts the code point argument to titlecase. If no titlecase is available, the uppercase is returned. If no uppercase is available, the code point itself is returned. Up-to-date Unicode implementation of java.lang.Character.toTitleCase()
This function only returns the simple, single-code point case mapping. Full case mappings should be used whenever possible because they produce better results by working on whole strings. They take into account the string context and the language and can map to a result string with a different length as appropriate. Full case mappings are applied by the case mapping functions that take String parameters rather than code points (int). See also the User Guide chapter on C/POSIX migration: https://unicode-org.github.io/icu/userguide/icu/posix#case-mappings
Java documentation for android.icu.lang.UCharacter.toTitleCase(int)
.
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
ToTitleCase(String, BreakIterator)
Returns the titlecase version of the argument string.
[Android.Runtime.Register("toTitleCase", "(Ljava/lang/String;Landroid/icu/text/BreakIterator;)Ljava/lang/String;", "", ApiSince=24)]
public static string? ToTitleCase (string? str, Android.Icu.Text.BreakIterator? breakiter);
[<Android.Runtime.Register("toTitleCase", "(Ljava/lang/String;Landroid/icu/text/BreakIterator;)Ljava/lang/String;", "", ApiSince=24)>]
static member ToTitleCase : string * Android.Icu.Text.BreakIterator -> string
Parameters
- str
- String
source string to be performed on
- breakiter
- BreakIterator
break iterator to determine the positions in which the character should be title cased.
Returns
titlecase version of the argument string
- Attributes
Remarks
Returns the titlecase version of the argument string.
Position for titlecasing is determined by the argument break iterator, hence the user can customize his break iterator for a specialized titlecasing. In this case only the forward iteration needs to be implemented. If the break iterator passed in is null, the default Unicode algorithm will be used to determine the titlecase positions.
Only positions returned by the break iterator will be title cased, character in between the positions will all be in lower case.
Casing is dependent on the default locale and context-sensitive
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
ToTitleCase(ULocale, String, BreakIterator)
Returns the titlecase version of the argument string.
[Android.Runtime.Register("toTitleCase", "(Landroid/icu/util/ULocale;Ljava/lang/String;Landroid/icu/text/BreakIterator;)Ljava/lang/String;", "", ApiSince=24)]
public static string? ToTitleCase (Android.Icu.Util.ULocale? locale, string? str, Android.Icu.Text.BreakIterator? titleIter);
[<Android.Runtime.Register("toTitleCase", "(Landroid/icu/util/ULocale;Ljava/lang/String;Landroid/icu/text/BreakIterator;)Ljava/lang/String;", "", ApiSince=24)>]
static member ToTitleCase : Android.Icu.Util.ULocale * string * Android.Icu.Text.BreakIterator -> string
Parameters
- locale
- ULocale
which string is to be converted in
- str
- String
source string to be performed on
- titleIter
- BreakIterator
break iterator to determine the positions in which the character should be title cased.
Returns
titlecase version of the argument string
- Attributes
Remarks
Returns the titlecase version of the argument string.
Position for titlecasing is determined by the argument break iterator, hence the user can customize his break iterator for a specialized titlecasing. In this case only the forward iteration needs to be implemented. If the break iterator passed in is null, the default Unicode algorithm will be used to determine the titlecase positions.
Only positions returned by the break iterator will be title cased, character in between the positions will all be in lower case.
Casing is dependent on the argument locale and context-sensitive
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
ToTitleCase(Locale, String, BreakIterator)
Returns the titlecase version of the argument string.
[Android.Runtime.Register("toTitleCase", "(Ljava/util/Locale;Ljava/lang/String;Landroid/icu/text/BreakIterator;)Ljava/lang/String;", "", ApiSince=24)]
public static string? ToTitleCase (Java.Util.Locale? locale, string? str, Android.Icu.Text.BreakIterator? breakiter);
[<Android.Runtime.Register("toTitleCase", "(Ljava/util/Locale;Ljava/lang/String;Landroid/icu/text/BreakIterator;)Ljava/lang/String;", "", ApiSince=24)>]
static member ToTitleCase : Java.Util.Locale * string * Android.Icu.Text.BreakIterator -> string
Parameters
- locale
- Locale
which string is to be converted in
- str
- String
source string to be performed on
- breakiter
- BreakIterator
break iterator to determine the positions in which the character should be title cased.
Returns
titlecase version of the argument string
- Attributes
Remarks
Returns the titlecase version of the argument string.
Position for titlecasing is determined by the argument break iterator, hence the user can customize his break iterator for a specialized titlecasing. In this case only the forward iteration needs to be implemented. If the break iterator passed in is null, the default Unicode algorithm will be used to determine the titlecase positions.
Only positions returned by the break iterator will be title cased, character in between the positions will all be in lower case.
Casing is dependent on the argument locale and context-sensitive
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
ToTitleCase(ULocale, String, BreakIterator, TitlecaseOptions)
Returns the titlecase version of the argument string.
[Android.Runtime.Register("toTitleCase", "(Landroid/icu/util/ULocale;Ljava/lang/String;Landroid/icu/text/BreakIterator;I)Ljava/lang/String;", "", ApiSince=24)]
public static string? ToTitleCase (Android.Icu.Util.ULocale? locale, string? str, Android.Icu.Text.BreakIterator? titleIter, Android.Icu.Lang.TitlecaseOptions options);
[<Android.Runtime.Register("toTitleCase", "(Landroid/icu/util/ULocale;Ljava/lang/String;Landroid/icu/text/BreakIterator;I)Ljava/lang/String;", "", ApiSince=24)>]
static member ToTitleCase : Android.Icu.Util.ULocale * string * Android.Icu.Text.BreakIterator * Android.Icu.Lang.TitlecaseOptions -> string
Parameters
- locale
- ULocale
which string is to be converted in
- str
- String
source string to be performed on
- titleIter
- BreakIterator
break iterator to determine the positions in which the character should be title cased.
- options
- TitlecaseOptions
bit set to modify the titlecasing operation
Returns
titlecase version of the argument string
- Attributes
Remarks
Returns the titlecase version of the argument string.
Position for titlecasing is determined by the argument break iterator, hence the user can customize his break iterator for a specialized titlecasing. In this case only the forward iteration needs to be implemented. If the break iterator passed in is null, the default Unicode algorithm will be used to determine the titlecase positions.
Only positions returned by the break iterator will be title cased, character in between the positions will all be in lower case.
Casing is dependent on the argument locale and context-sensitive
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
ToTitleCase(Locale, String, BreakIterator, TitlecaseOptions)
<strong>[icu]</strong>
[Android.Runtime.Register("toTitleCase", "(Ljava/util/Locale;Ljava/lang/String;Landroid/icu/text/BreakIterator;I)Ljava/lang/String;", "", ApiSince=24)]
public static string? ToTitleCase (Java.Util.Locale? locale, string? str, Android.Icu.Text.BreakIterator? titleIter, Android.Icu.Lang.TitlecaseOptions options);
[<Android.Runtime.Register("toTitleCase", "(Ljava/util/Locale;Ljava/lang/String;Landroid/icu/text/BreakIterator;I)Ljava/lang/String;", "", ApiSince=24)>]
static member ToTitleCase : Java.Util.Locale * string * Android.Icu.Text.BreakIterator * Android.Icu.Lang.TitlecaseOptions -> string
Parameters
- locale
- Locale
which string is to be converted in
- str
- String
source string to be performed on
- titleIter
- BreakIterator
break iterator to determine the positions in which the character should be title cased.
- options
- TitlecaseOptions
bit set to modify the titlecasing operation
Returns
titlecase version of the argument string
- Attributes
Remarks
<strong>[icu]</strong>
Returns the titlecase version of the argument string.
Position for titlecasing is determined by the argument break iterator, hence the user can customize his break iterator for a specialized titlecasing. In this case only the forward iteration needs to be implemented. If the break iterator passed in is null, the default Unicode algorithm will be used to determine the titlecase positions.
Only positions returned by the break iterator will be title cased, character in between the positions will all be in lower case.
Casing is dependent on the argument locale and context-sensitive
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.