Created
July 28, 2019 09:53
-
-
Save ufcpp/f26875e2254ffba11e1b21df90ca7be8 to your computer and use it in GitHub Desktop.
ICU の u_getNumericValue 呼び出し
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Runtime.InteropServices; | |
public class Program | |
{ | |
[DllImport("icuuc.dll")] | |
public static extern double u_getNumericValue(int c); | |
static void Main() | |
{ | |
Console.WriteLine(u_getNumericValue('Ⅱ')); | |
Console.WriteLine(u_getNumericValue('ⅱ')); | |
Console.WriteLine(u_getNumericValue('٢')); | |
Console.WriteLine(u_getNumericValue('二')); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment