Skip to content

Instantly share code, notes, and snippets.

@ufcpp
Created July 28, 2019 09:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ufcpp/f26875e2254ffba11e1b21df90ca7be8 to your computer and use it in GitHub Desktop.
Save ufcpp/f26875e2254ffba11e1b21df90ca7be8 to your computer and use it in GitHub Desktop.
ICU の u_getNumericValue 呼び出し
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