汉字转换成拼音实现自动检索:Visual Studio International Pack

案例:

StringBuilder sbPy = new StringBuilder();

String txt = "你好";

foreach(char ch in txt)

{

  ChineseChar chChar = new ChineseChar(ch);

  if(chChar.Pinyins.Count > 0)

  {

    sbPy.Append(chChar.Pinyins[0].Substring(0,chChar.Pinyins[0].Length));

  }

}

//输入sbPy即可

相关文章:

  • 2021-06-23
  • 2021-12-16
  • 2022-12-23
  • 2022-12-23
  • 2021-06-14
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-03-06
  • 2022-03-01
  • 2022-12-23
  • 2021-11-16
相关资源
相似解决方案