コード例 #1
0
        public static string GetPinyin(string input)
        {
            var output = new NSMutableString();

            output.SetString(new NSString(input));
            var dumy = new NSRange();

            output.ApplyTransform(NSStringTransform.MandarinToLatin, false, new NSRange(0, output.Length), out dumy);
            return(output.ToString());
        }