UCharacter.IsLegal 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
IsLegal(Int32) |
<strong>[icu]</strong> A code point is illegal if and only if <ul> <li> Out of bounds, less than 0 or greater than UCharacter. |
IsLegal(String) |
<strong>[icu]</strong> A string is legal iff all its code points are legal. |
IsLegal(Int32)
<strong>[icu]</strong> A code point is illegal if and only if <ul> <li> Out of bounds, less than 0 or greater than UCharacter.
[Android.Runtime.Register("isLegal", "(I)Z", "", ApiSince=24)]
public static bool IsLegal (int ch);
[<Android.Runtime.Register("isLegal", "(I)Z", "", ApiSince=24)>]
static member IsLegal : int -> bool
Parameters
- ch
- Int32
code point to determine if it is a legal code point by itself
Returns
true if and only if legal.
- Attributes
Remarks
<strong>[icu]</strong> A code point is illegal if and only if <ul> <li> Out of bounds, less than 0 or greater than UCharacter.MAX_VALUE <li> A surrogate value, 0xD800 to 0xDFFF <li> Not-a-character, having the form 0x xxFFFF or 0x xxFFFE </ul> Note: legal does not mean that it is assigned in this version of Unicode.
Java documentation for android.icu.lang.UCharacter.isLegal(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
IsLegal(String)
<strong>[icu]</strong> A string is legal iff all its code points are legal.
[Android.Runtime.Register("isLegal", "(Ljava/lang/String;)Z", "", ApiSince=24)]
public static bool IsLegal (string? str);
[<Android.Runtime.Register("isLegal", "(Ljava/lang/String;)Z", "", ApiSince=24)>]
static member IsLegal : string -> bool
Parameters
- str
- String
containing code points to examin
Returns
true if and only if legal.
- Attributes
Remarks
<strong>[icu]</strong> A string is legal iff all its code points are legal. A code point is illegal if and only if <ul> <li> Out of bounds, less than 0 or greater than UCharacter.MAX_VALUE <li> A surrogate value, 0xD800 to 0xDFFF <li> Not-a-character, having the form 0x xxFFFF or 0x xxFFFE </ul> Note: legal does not mean that it is assigned in this version of Unicode.
Java documentation for android.icu.lang.UCharacter.isLegal(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.