Exemple #1
0
 /// <summary>
 /// Returns the bidirectional category value for the code point, which is used in the
 /// Unicode bidirectional algorithm (UAX #9 http://www.unicode.org/reports/tr9/).
 /// </summary>
 /// <param name="code">the code point to be tested </param>
 /// <returns>the bidirectional category (UCharDirection) value</returns>
 /// <remarks><para>Note that some unassigned code points have bidi values of R or AL because
 /// they are in blocks that are reserved for Right-To-Left scripts.</para>
 /// <para>Same as java.lang.Character.getDirectionality()</para></remarks>
 public static UCharDirection CharDirection(int code)
 {
     return((UCharDirection)NativeMethods.u_charDirection(code));
 }