using
system;
using
system.collections.generic;
using
system.text;
using
microsoft.visualbasic;
namespace
trancepy
console.write("
該系列漢字的拼音簡碼分別為:"
+ strpy+"/n");
}
static
string pyjm(string strword)
if (myasc(myleft(strword,1))>=myasc("
啊") && myasc(myleft(strword,1))"
芭"))
if (myasc(myleft(strword,1))>=myasc("
芭") && myasc(myleft(strword,1))"
擦"))
if (myasc(myleft(strword, 1)) >= myasc("
擦") && myasc(myleft(strword, 1)) < myasc("
搭"))
if (myasc(myleft(strword, 1)) >= myasc("
搭") && myasc(myleft(strword, 1)) < myasc("
蛾"))
if (myasc(myleft(strword, 1)) >= myasc("
蛾") && myasc(myleft(strword, 1)) < myasc("
發"))
if (myasc(myleft(strword, 1)) >= myasc("
發") && myasc(myleft(strword, 1)) < myasc("
噶"))
if (myasc(myleft(strword, 1)) >= myasc("
噶") && myasc(myleft(strword, 1)) < myasc("
哈"))
if (myasc(myleft(strword, 1)) >= myasc("
哈") && myasc(myleft(strword, 1)) < myasc("
擊"))
if (myasc(myleft(strword, 1)) >= myasc("
擊") && myasc(myleft(strword, 1)) < myasc("
喀"))
if (myasc(myleft(strword, 1)) >= myasc("
喀") && myasc(myleft(strword, 1)) < myasc("
垃"))
if (myasc(myleft(strword, 1)) >= myasc("
垃") && myasc(myleft(strword, 1)) < myasc("
媽"))
if (myasc(myleft(strword, 1)) >= myasc("
媽") && myasc(myleft(strword, 1)) < myasc("
拿"))
if (myasc(myleft(strword, 1)) >= myasc("
拿") && myasc(myleft(strword, 1)) < myasc("
哦"))
if (myasc(myleft(strword, 1)) >= myasc("
哦") && myasc(myleft(strword, 1)) < myasc("
啪"))
if (myasc(myleft(strword, 1)) >= myasc("
啪") && myasc(myleft(strword, 1)) < myasc("
期"))
if (myasc(myleft(strword, 1)) >= myasc("
期") && myasc(myleft(strword, 1)) < myasc("
然"))
if (myasc(myleft(strword, 1)) >= myasc("
然") && myasc(myleft(strword, 1)) < myasc("
撒"))
if (myasc(myleft(strword, 1)) >= myasc("
撒") && myasc(myleft(strword, 1)) < myasc("
塌"))
if (myasc(myleft(strword, 1)) >= myasc("
塌") && myasc(myleft(strword, 1)) < myasc("
挖"))
if (myasc(myleft(strword, 1)) >= myasc("
挖") && myasc(myleft(strword, 1)) < myasc("
昔"))
if (myasc(myleft(strword, 1)) >= myasc("
昔") && myasc(myleft(strword, 1)) < myasc("
壓"))
if (myasc(myleft(strword, 1)) >= myasc("
壓") && myasc(myleft(strword, 1)) < myasc("
匝"))
if (myasc(myleft(strword, 1)) >= myasc("
匝"))
return
""; }
else
}static
int myasc(string strs)
static
string myleft(string strs,int intlength)
} }
演示:
漢字拼音簡碼
獲取乙個漢字的拼音聲母 unicode格式的乙個漢字 public static char convert char chinese byte asciibytes encoding.convert unicode,gb2312,unicodebytes 計算該漢字的gb 2312編碼 int n ...
獲取輸入漢字的拼音簡碼
public class getpinyin private static int table new int 27 private static maprarewords private static mapbookfamilynames private static mapbookfamilys...
sql 生成拼音簡碼函式
if exists select from sysobjects where name fun getpy drop function fun getpy gocreate function fun getpy str nvarchar 4000 returns nvarchar 4000 asbe...