• 汉字转拼音Pinyin4j工具(C#、Java都可用)


    C#用法:

    string pinyin=GetStringPinYin("张三");
    //方法如下
    public static string GetStringPinYin(string hanzi) 
    {
        HanyuPinyinOutputFormat format = new HanyuPinyinOutputFormat();
        format.ToneType = HanyuPinyinToneType.WITHOUT_TONE;
        format.VCharType = HanyuPinyinVCharType.WITH_U_UNICODE;
        format.CaseType = HanyuPinyinCaseType.UPPERCASE;
    
        return PinyinHelper.ToHanyuPinyinString(hanzi, format, "");
    }

    参考:

    http://www.cnblogs.com/bluestorm/archive/2012/07/23/2605412.html

    http://blog.csdn.net/gebitan505/article/details/15501523

  • 相关阅读:
    bzoj 4660
    bzoj 4668
    二项式反演学习笔记
    bzoj 3622
    bzoj 5306
    bzoj 3625
    任意模数NTT(二)
    bzoj 4913
    bzoj 3456
    多项式问题之五——多项式exp
  • 原文地址:https://www.cnblogs.com/Donnnnnn/p/6097952.html
Copyright © 2020-2023  润新知