Esempio n. 1
0
 /// <summary>
 /// The given character is mapped to its uppercase equivalent according to UnicodeData.txt;
 /// if the character has no lowercase equivalent, the character itself is returned.
 ///
 /// 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 string case mapping functions, <see cref="UnicodeString"/>
 /// See also the User Guide chapter on C/POSIX migration:
 /// <seealso href="http: //icu-project.org/userguide/posix.html#case_mappings"/>
 /// </summary>
 /// <param name="codePoint">the code point to be mapped </param>
 /// <returns>the Simple_Uppercase_Mapping of the code point, if any; otherwise the code
 /// point itself. </returns>
 public static int ToUpper(int codePoint)
 {
     return(NativeMethods.u_toupper(codePoint));
 }