Included a ReadMe, a License file, and a code example.
This commit is contained in:
+26
@@ -0,0 +1,26 @@
|
||||
using System;
|
||||
using System.Text;
|
||||
using System.Unicode;
|
||||
|
||||
namespace Example
|
||||
{
|
||||
internal static class Program
|
||||
{
|
||||
private static void Main()
|
||||
{
|
||||
Console.OutputEncoding = Encoding.Unicode;
|
||||
PrintCodePointInfo('A');
|
||||
PrintCodePointInfo('∞');
|
||||
PrintCodePointInfo(0x1F600);
|
||||
}
|
||||
|
||||
private static void PrintCodePointInfo(int codePoint)
|
||||
{
|
||||
var charInfo = UnicodeInfo.GetCharInfo(codePoint);
|
||||
Console.WriteLine(UnicodeInfo.GetDisplayText(charInfo));
|
||||
Console.WriteLine("U+" + codePoint.ToString("X4"));
|
||||
Console.WriteLine(charInfo.Name ?? charInfo.OldName);
|
||||
Console.WriteLine(charInfo.Category);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user