UCharacter.GetDirectionality(Int32) 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.
Equivalent to the Character#getDirectionality(char)
method, for
convenience.
[Android.Runtime.Register("getDirectionality", "(I)B", "", ApiSince=24)]
public static sbyte GetDirectionality (int cp);
[<Android.Runtime.Register("getDirectionality", "(I)B", "", ApiSince=24)>]
static member GetDirectionality : int -> sbyte
Parameters
- cp
- Int32
the code point to check
Returns
the directionality of the code point
- Attributes
Remarks
Equivalent to the Character#getDirectionality(char)
method, for convenience. Returns a byte representing the directionality of the character.
<strong>[icu] Note:</strong> Unlike Character#getDirectionality(char)
, this returns DIRECTIONALITY_LEFT_TO_RIGHT for undefined or out-of-bounds characters.
<strong>[icu] Note:</strong> The return value must be tested using the constants defined in UCharacterDirection
and its interface UCharacterEnums.ECharacterDirection
since the values are different from the ones defined by java.lang.Character
.
Java documentation for android.icu.lang.UCharacter.getDirectionality(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.