UCharacter.ToUpperCase 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
ToUpperCase(Int32) |
Converts the character argument to uppercase. |
ToUpperCase(String) |
Returns the uppercase version of the argument string. |
ToUpperCase(ULocale, String) |
Returns the uppercase version of the argument string. |
ToUpperCase(Locale, String) |
Returns the uppercase version of the argument string. |
ToUpperCase(Int32)
Converts the character argument to uppercase.
[Android.Runtime.Register("toUpperCase", "(I)I", "", ApiSince=24)]
public static int ToUpperCase (int ch);
[<Android.Runtime.Register("toUpperCase", "(I)I", "", ApiSince=24)>]
static member ToUpperCase : int -> int
Parameters
- ch
- Int32
code point whose uppercase is to be retrieved
Returns
uppercase code point
- Attributes
Remarks
Converts the character argument to uppercase. If no uppercase is available, the character itself is returned. Up-to-date Unicode implementation of java.lang.Character.toUpperCase()
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.toUpperCase(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
ToUpperCase(String)
Returns the uppercase version of the argument string.
[Android.Runtime.Register("toUpperCase", "(Ljava/lang/String;)Ljava/lang/String;", "", ApiSince=24)]
public static string? ToUpperCase (string? str);
[<Android.Runtime.Register("toUpperCase", "(Ljava/lang/String;)Ljava/lang/String;", "", ApiSince=24)>]
static member ToUpperCase : string -> string
Parameters
- str
- String
source string to be performed on
Returns
uppercase version of the argument string
- Attributes
Remarks
Returns the uppercase version of the argument string. Casing is dependent on the default locale and context-sensitive.
Java documentation for android.icu.lang.UCharacter.toUpperCase(java.lang.String)
.
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
ToUpperCase(ULocale, String)
Returns the uppercase version of the argument string.
[Android.Runtime.Register("toUpperCase", "(Landroid/icu/util/ULocale;Ljava/lang/String;)Ljava/lang/String;", "", ApiSince=24)]
public static string? ToUpperCase (Android.Icu.Util.ULocale? locale, string? str);
[<Android.Runtime.Register("toUpperCase", "(Landroid/icu/util/ULocale;Ljava/lang/String;)Ljava/lang/String;", "", ApiSince=24)>]
static member ToUpperCase : Android.Icu.Util.ULocale * string -> string
Parameters
- locale
- ULocale
which string is to be converted in
- str
- String
source string to be performed on
Returns
uppercase version of the argument string
- Attributes
Remarks
Returns the uppercase version of the argument string. 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
ToUpperCase(Locale, String)
Returns the uppercase version of the argument string.
[Android.Runtime.Register("toUpperCase", "(Ljava/util/Locale;Ljava/lang/String;)Ljava/lang/String;", "", ApiSince=24)]
public static string? ToUpperCase (Java.Util.Locale? locale, string? str);
[<Android.Runtime.Register("toUpperCase", "(Ljava/util/Locale;Ljava/lang/String;)Ljava/lang/String;", "", ApiSince=24)>]
static member ToUpperCase : Java.Util.Locale * string -> string
Parameters
- locale
- Locale
which string is to be converted in
- str
- String
source string to be performed on
Returns
uppercase version of the argument string
- Attributes
Remarks
Returns the uppercase version of the argument string. Casing is dependent on the argument locale and context-sensitive.
Java documentation for android.icu.lang.UCharacter.toUpperCase(java.util.Locale, java.lang.String)
.
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.