• 汉字转拼音,获取汉字首字母


    话不多说,直接上代码.

      1 namespace Miraclesoft.Common.Utility.PinYin
      2 {
      3     internal class PyCode
      4     {
      5         internal static string[] Codes { get; } =
      6         {
      7             "a     :阿啊吖嗄腌锕",
      8             "ai    :爱埃碍矮挨唉哎哀皑癌蔼艾隘捱嗳嗌嫒瑷暧砹锿霭",
      9             "an    :安按暗岸案俺氨胺鞍谙埯揞犴庵桉铵鹌黯",
     10             "ang   :昂肮盎",
     11             "ao    :凹奥敖熬翱袄傲懊澳坳拗嗷岙廒遨媪骜獒聱螯鏊鳌鏖",
     12             "ba    :把八吧巴拔霸罢爸坝芭捌扒叭笆疤跋靶耙茇菝岜灞钯粑鲅魃",
     13             "bai   :百白败摆柏佰拜稗捭掰",
     14             "ban   :办半板班般版拌搬斑扳伴颁扮瓣绊阪坂钣瘢癍舨",
     15             "bang  :帮棒邦榜梆膀绑磅蚌镑傍谤蒡浜",
     16             "bao   :报保包剥薄胞暴宝饱抱爆堡苞褒雹豹鲍葆孢煲鸨褓趵龅",
     17             "bei   :北被倍备背辈贝杯卑悲碑钡狈惫焙孛陂邶埤萆蓓呗悖碚鹎褙鐾鞴",
     18             "ben   :本奔苯笨畚坌贲锛",
     19             "beng  :泵崩绷甭蹦迸嘣甏",
     20             "bi    :比必避闭辟笔壁臂毕彼逼币鼻蔽鄙碧蓖毙毖庇痹敝弊陛匕俾荜荸薜吡哔狴庳愎滗濞弼妣婢嬖璧畀铋秕裨筚箅篦舭襞跸髀",
     21             "bian  :变边便编遍辩扁辨鞭贬卞辫匾弁苄忭汴缏飚煸砭碥窆褊蝙笾鳊",
     22             "biao  :表标彪膘婊骠杓飑飙镖镳瘭裱鳔髟",
     23             "bie   :别鳖憋瘪蹩",
     24             "bin   :宾彬斌濒滨摈傧豳缤玢槟殡膑镔髌鬓",
     25             "bing  :并病兵柄冰丙饼秉炳禀邴摒",
     26             "bo    :波播伯拨博勃驳玻泊菠钵搏铂箔帛舶脖膊渤亳啵饽檗擘礴钹鹁簸跛踣",
     27             "bu    :不部步布补捕卜哺埠簿怖卟逋瓿晡钚钸醭",
     28             "ca    :擦嚓礤",
     29             "cai   :采才材菜财裁彩猜睬踩蔡",
     30             "can   :参残蚕灿餐惭惨孱骖璨粲黪",
     31             "cang  :藏仓苍舱沧",
     32             "cao   :草槽操糙曹嘈漕螬艚",
     33             "ce    :测策侧册厕恻",
     34             "cen   :岑涔",
     35             "ceng  :层蹭",
     36             "cha   :查差插察茶叉茬碴搽岔诧猹馇汊姹杈楂槎檫锸镲衩",
     37             "chai  :柴拆豺侪钗瘥虿",
     38             "chan  :产铲阐搀掺蝉馋谗缠颤冁谄蒇廛忏潺澶羼婵骣觇禅镡蟾躔",
     39             "chang :长常场厂唱肠昌倡偿畅猖尝敞伥鬯苌菖徜怅惝阊娼嫦昶氅鲳",
     40             "chao  :朝超潮巢抄钞嘲吵炒怊晁耖",
     41             "che   :车彻撤扯掣澈坼砗",
     42             "chen  :陈沉称衬尘臣晨郴辰忱趁伧谌谶抻嗔宸琛榇碜龀",
     43             "cheng :成程称城承乘呈撑诚橙惩澄逞骋秤丞埕噌枨柽塍瞠铖铛裎蛏酲",
     44             "chi   :持尺齿吃赤池迟翅斥耻痴匙弛驰侈炽傺坻墀茌叱哧啻嗤彳饬媸敕眵鸱瘛褫蚩螭笞篪豉踟魑",
     45             "chong :虫充冲崇宠茺忡憧铳舂艟",
     46             "chou  :抽仇臭酬畴踌稠愁筹绸瞅丑俦帱惆瘳雠",
     47             "chu   :出处除初础触楚锄储橱厨躇雏滁矗搐亍刍怵憷绌杵楮樗褚蜍蹰黜",
     48             "chuai :揣搋啜膪踹",
     49             "chuan :传船穿串川椽喘舛遄巛氚钏舡",
     50             "chuang:床创窗闯疮幢怆",
     51             "chui  :吹垂锤炊捶陲棰槌",
     52             "chun  :春纯醇椿唇淳蠢莼鹑蝽",
     53             "chuo  :戳绰辍踔龊",
     54             "ci    :此次刺磁雌词茨疵辞慈瓷赐茈呲祠鹚糍",
     55             "cong  :从丛聪葱囱匆苁淙骢琮璁",
     56             "cou   :凑楱辏腠",
     57             "cu    :粗促醋簇蔟徂猝殂酢蹙蹴",
     58             "cuan  :篡蹿窜汆撺爨镩",
     59             "cui   :催脆淬粹摧崔瘁翠萃啐悴璀榱毳隹",
     60             "cun   :存村寸忖皴",
     61             "cuo   :错措撮磋搓挫厝嵯脞锉矬痤鹾蹉",
     62             "da    :大打达答搭瘩耷哒嗒怛妲疸褡笪靼鞑",
     63             "dai   :代带待袋戴呆歹傣殆贷逮怠埭甙呔岱迨骀绐玳黛",
     64             "dan   :单但弹担蛋淡胆氮丹旦耽郸掸惮诞儋萏啖殚赕眈疸瘅聃箪",
     65             "dang  :党当档挡荡谠凼菪宕砀裆",
     66             "dao   :到道导刀倒稻岛捣盗蹈祷悼叨忉氘纛",
     67             "de    :的得德锝",
     68             "deng  :等灯登邓蹬瞪凳噔嶝戥磴镫簦",
     69             "di    :地第低敌底帝抵滴弟递堤迪笛狄涤翟嫡蒂缔氐籴诋谛邸荻嘀娣绨柢棣觌砥碲睇镝羝骶",
     70             "dia   :嗲",
     71             "dian  :电点垫典店颠淀掂滇碘靛佃甸惦奠殿阽坫巅玷钿癜癫簟踮",
     72             "diao  :调掉吊碉叼雕凋刁钓铞铫貂鲷",
     73             "die   :迭跌爹碟蝶谍叠垤堞揲喋牒瓞耋蹀鲽",
     74             "ding  :定顶钉丁订盯叮鼎锭仃啶玎腚碇町疔耵酊",
     75             "diu   :丢铥",
     76             "dong  :动东冬懂洞冻董栋侗恫垌咚岽峒氡胨胴硐鸫",
     77             "dou   :斗豆兜抖陡逗痘蔸窦蚪篼",
     78             "du    :度都毒独读渡杜堵镀顿督犊睹赌肚妒芏嘟渎椟牍蠹笃髑黩",
     79             "duan  :断端段短锻缎椴煅簖",
     80             "dui   :对队堆兑怼憝碓",
     81             "dun   :盾吨顿蹲敦墩囤钝遁沌炖砘礅盹镦趸",
     82             "duo   :多夺朵掇哆垛躲跺舵剁惰堕咄哚沲缍柁铎裰踱",
     83             "e     :而二尔儿恶额恩俄耳饵蛾饿峨鹅讹娥厄扼遏鄂噩谔垩苊莪萼呃愕屙婀轭腭锇锷鹗颚鳄",
     84             "ei    :诶",
     85             "en    :恩蒽摁",
     86             "er    :而二尔儿耳饵洱贰佴迩珥铒鸸鲕",
     87             "fa    :发法阀乏伐罚筏珐垡砝",
     88             "fan   :反翻范犯饭繁泛番凡烦返藩帆樊矾钒贩蕃蘩幡梵燔畈蹯",
     89             "fang  :方放防访房纺仿妨芳肪坊邡枋钫舫鲂",
     90             "fei   :非肥飞费废肺沸菲匪啡诽吠芾狒悱淝妃绯榧腓斐扉镄痱蜚篚翡霏鲱",
     91             "fen   :分粉奋份粪纷芬愤酚吩氛坟焚汾忿偾瀵棼鲼鼢",
     92             "feng  :风封蜂丰缝峰锋疯奉枫烽逢冯讽凤俸酆葑唪沣砜",
     93             "fou   :否缶",
     94             "fu    :复服副府夫负富附福伏符幅腐浮辅付腹妇孵覆扶辐傅佛缚父弗甫肤氟敷拂俘涪袱抚俯釜斧脯腑赴赋阜讣咐匐凫郛芙苻茯莩菔拊呋幞怫滏艴孚驸绂绋桴赙祓砩黻黼罘稃馥蚨蜉蝠蝮麸趺跗鲋鳆",
     95             "ga    :噶嘎尬尕尜旮钆",
     96             "gai   :改该盖概钙溉丐陔垓戤赅",
     97             "gan   :干杆感敢赶甘肝秆柑竿赣坩苷尴擀泔淦澉绀橄旰矸疳酐",
     98             "gang  :刚钢缸纲岗港杠冈肛戆罡筻",
     99             "gao   :高搞告稿膏篙皋羔糕镐睾诰郜藁缟槔槁杲锆",
    100             "ge    :个各革格割歌隔哥铬阁戈葛搁鸽胳疙蛤鬲仡哿圪塥嗝搿膈硌镉袼虼舸骼",
    101             "gen   :根跟亘茛哏艮",
    102             "geng  :更耕颈庚羹埂耿梗哽赓绠鲠",
    103             "gong  :工公共供功攻巩贡汞宫恭龚躬弓拱珙肱蚣觥",
    104             "gou   :够构沟狗钩勾购苟垢佝诟岣遘媾缑枸觏彀笱篝鞲",
    105             "gu    :鼓固古骨故顾股谷估雇孤姑辜菇咕箍沽蛊嘏诂菰崮汩梏轱牯牿臌毂瞽罟钴锢鸪痼蛄酤觚鲴鹘",
    106             "gua   :挂刮瓜剐寡褂卦诖呱栝胍鸹",
    107             "guai  :怪乖拐",
    108             "guan  :关管观官灌贯惯冠馆罐棺倌莞掼涫盥鹳矜鳏",
    109             "guang :光广逛咣犷桄胱",
    110             "gui   :规贵归硅鬼轨龟桂瑰圭闺诡癸柜跪刽匦刿庋宄妫桧炅晷皈簋鲑鳜",
    111             "gun   :滚辊棍衮绲磙鲧",
    112             "guo   :国过果锅郭裹馘埚掴呙帼崞猓椁虢聒蜾蝈",
    113             "ha    :哈铪",
    114             "hai   :还海害孩骸氦亥骇嗨胲醢",
    115             "han   :含焊旱喊汉寒汗函韩酣憨邯涵罕翰撼捍憾悍邗菡撖阚瀚晗焓顸颔蚶鼾",
    116             "hang  :航夯杭沆绗珩颃",
    117             "hao   :好号毫耗豪郝浩壕嚎蒿薅嗥嚆濠灏昊皓颢蚝",
    118             "he    :和合河何核赫荷褐喝贺呵禾盒菏貉阂涸鹤诃劾壑嗬阖纥曷盍颌蚵翮",
    119             "hei   :黑嘿",
    120             "hen   :很狠痕恨",
    121             "heng  :横衡恒哼亨蘅桁",
    122             "hong  :红洪轰烘哄虹鸿宏弘黉訇讧荭蕻薨闳泓",
    123             "hou   :后候厚侯喉猴吼堠後逅瘊篌糇鲎骺",
    124             "hu    :护互湖呼户弧乎胡糊虎忽瑚壶葫蝴狐唬沪冱唿囫岵猢怙惚浒滹琥槲轷觳烀煳戽扈祜瓠鹄鹕鹱笏醐斛",
    125             "hua   :化花话划滑华画哗猾骅桦砉铧",
    126             "huai  :坏怀淮槐徊踝",
    127             "huan  :环换欢缓患幻焕桓唤痪豢涣宦郇奂萑擐圜獾洹浣漶寰逭缳锾鲩鬟",
    128             "huang :黄簧荒皇慌蝗磺凰惶煌晃幌恍谎隍徨湟潢遑璜肓癀蟥篁鳇",
    129             "hui   :会回灰挥辉汇毁慧恢绘惠徽蛔悔卉晦贿秽烩讳诲诙茴荟蕙咴哕喙隳洄浍彗缋珲晖恚虺蟪麾",
    130             "hun   :混浑荤昏婚魂诨馄阍溷",
    131             "huo   :活或火货获伙霍豁惑祸劐藿攉嚯夥钬锪镬耠蠖",
    132             "ji    :级及机极几积给基记己计集即际季激济技击继急剂既纪寄挤鸡迹绩吉脊辑籍疾肌棘畸圾稽箕饥讥姬缉汲嫉蓟冀伎祭悸寂忌妓藉丌亟乩剞佶偈诘墼芨芰荠蒺蕺掎叽咭哜唧岌嵴洎屐骥畿玑楫殛戟戢赍觊犄齑矶羁嵇稷瘠虮笈笄暨跻跽霁鲚鲫髻麂",
    133             "jia   :加家架价甲夹假钾贾稼驾嘉枷佳荚颊嫁伽郏葭岬浃迦珈戛胛恝铗镓痂瘕袷蛱笳袈跏",
    134             "jian  :间件见建坚减检践尖简碱剪艰渐肩键健柬鉴剑歼监兼奸箭茧舰俭笺煎缄硷拣捡荐槛贱饯溅涧僭谏谫菅蒹搛湔蹇謇缣枧楗戋戬牮犍毽腱睑锏鹣裥笕翦趼踺鲣鞯",
    135             "jiang :将降讲江浆蒋奖疆僵姜桨匠酱茳洚绛缰犟礓耩糨豇",
    136             "jiao  :较教交角叫脚胶浇焦搅酵郊铰窖椒礁骄娇嚼矫侥狡饺缴绞剿轿佼僬艽茭挢噍峤徼姣敫皎鹪蛟醮跤鲛",
    137             "jie   :结阶解接节界截介借届街揭洁杰竭皆秸劫桔捷睫姐戒藉芥疥诫讦拮喈嗟婕孑桀碣疖颉蚧羯鲒骱",
    138             "jin   :进金近紧斤今尽仅劲浸禁津筋锦晋巾襟谨靳烬卺荩堇噤馑廑妗缙瑾槿赆觐衿",
    139             "jing  :经精京径井静竟晶净境镜景警茎敬惊睛竞荆兢鲸粳痉靖刭儆阱菁獍憬泾迳弪婧肼胫腈旌",
    140             "jiong :炯窘迥扃",
    141             "jiu   :就九旧究久救酒纠揪玖韭灸厩臼舅咎疚僦啾阄柩桕鸠鹫赳鬏",
    142             "ju    :具据局举句聚距巨居锯剧矩拒鞠拘狙疽驹菊咀沮踞俱惧炬倨讵苣苴莒掬遽屦琚椐榘榉橘犋飓钜锔窭裾趄醵踽龃雎鞫",
    143             "juan  :卷捐鹃娟倦眷绢鄄狷涓桊蠲锩镌隽",
    144             "jue   :决觉绝掘撅攫抉倔爵诀厥劂谲矍蕨噘噱崛獗孓珏桷橛爝镢蹶觖",
    145             "jun   :军均菌君钧峻俊竣浚郡骏捃皲筠麇",
    146             "ka    :卡喀咖咯佧咔胩",
    147             "kai   :开凯揩楷慨剀垲蒈忾恺铠锎锴",
    148             "kan   :看刊坎堪勘砍侃莰戡龛瞰",
    149             "kang  :抗康炕慷糠扛亢伉闶钪",
    150             "kao   :考靠拷烤尻栲犒铐",
    151             "ke    :可克科刻客壳颗棵柯坷苛磕咳渴课嗑岢恪溘骒缂珂轲氪瞌钶锞稞疴窠颏蝌髁",
    152             "ken   :肯啃垦恳裉",
    153             "keng  :坑吭铿",
    154             "kong  :孔空控恐倥崆箜",
    155             "kou   :口扣抠寇芤蔻叩眍筘",
    156             "ku    :苦库枯酷哭窟裤刳堀喾绔骷",
    157             "kua   :跨夸垮挎胯侉",
    158             "kuai  :快块筷侩蒯郐哙狯脍",
    159             "kuan  :宽款髋",
    160             "kuang :况矿狂框匡筐眶旷诓诳邝圹夼哐纩贶",
    161             "kui   :奎溃馈亏盔岿窥葵魁傀愧馗匮夔隗蒉揆喹喟悝愦逵暌睽聩蝰篑跬",
    162             "kun   :困昆坤捆悃阃琨锟醌鲲髡",
    163             "kuo   :扩括阔廓蛞",
    164             "la    :拉啦蜡腊蓝垃喇辣剌邋旯砬瘌",
    165             "lai   :来赖莱崃徕涞濑赉睐铼癞籁",
    166             "lan   :兰烂蓝览栏婪拦篮阑澜谰揽懒缆滥岚漤榄斓罱镧褴",
    167             "lang  :浪朗郎狼琅榔廊莨蒗啷阆锒稂螂",
    168             "lao   :老劳牢涝捞佬姥酪烙唠崂栳铑铹痨耢醪",
    169             "le    :了乐勒肋仂叻泐鳓",
    170             "lei   :类雷累垒泪镭蕾磊儡擂肋羸诔嘞嫘缧檑耒酹",
    171             "leng  :冷棱楞塄愣",
    172             "li    :理里利力立离例历粒厘礼李隶黎璃励犁梨丽厉篱狸漓鲤莉荔吏栗砾傈俐痢沥哩俪俚郦坜苈莅蓠藜呖唳喱猁溧澧逦娌嫠骊缡枥栎轹戾砺詈罹锂鹂疠疬蛎蜊蠡笠篥粝醴跞雳鲡鳢黧",
    173             "lia   :俩",
    174             "lian  :连联练炼脸链莲镰廉怜涟帘敛恋蔹奁潋濂琏楝殓臁裢裣蠊鲢",
    175             "liang :量两粮良亮梁凉辆粱晾谅墚椋踉靓魉",
    176             "liao  :料疗辽僚撩聊燎寥潦撂镣廖蓼尥嘹獠寮缭钌鹩",
    177             "lie   :列裂烈劣猎冽埒捩咧洌趔躐鬣",
    178             "lin   :林磷临邻淋麟琳霖鳞凛赁吝蔺啉嶙廪懔遴檩辚膦瞵粼躏",
    179             "ling  :领另零令灵岭铃龄凌陵拎玲菱伶羚酃苓呤囹泠绫柃棂瓴聆蛉翎鲮",
    180             "liu   :流六留刘硫柳馏瘤溜琉榴浏遛骝绺旒熘锍镏鹨鎏",
    181             "long  :龙垄笼隆聋咙窿拢陇垅茏泷珑栊胧砻癃",
    182             "lou   :漏楼娄搂篓陋偻蒌喽嵝镂瘘耧蝼髅",
    183             "lu    :路率露绿炉律虑滤陆氯鲁铝录旅卢吕芦颅庐掳卤虏麓碌赂鹿潞禄戮驴侣履屡缕垆撸噜闾泸渌漉逯璐栌榈橹轳辂辘氇胪膂镥稆鸬鹭褛簏舻鲈",
    184             "luan  :卵乱峦挛孪滦脔娈栾鸾銮",
    185             "lue   :略掠锊",
    186             "lun   :论轮伦抡仑沦纶囵",
    187             "luo   :落罗螺洛络逻萝锣箩骡裸骆倮蠃荦捋摞猡泺漯珞椤脶镙瘰雒",
    188             "m     :呒",
    189             "ma    :马麻吗妈骂嘛码玛蚂唛犸嬷杩蟆",
    190             "mai   :麦脉卖买埋迈劢荬霾",
    191             "man   :满慢曼漫蔓瞒馒蛮谩墁幔缦熳镘颟螨鳗鞔",
    192             "mang  :忙芒盲茫氓莽邙漭硭蟒",
    193             "mao   :毛矛冒貌贸帽猫茅锚铆卯茂袤茆峁泖瑁昴牦耄旄懋瞀蟊髦",
    194             "me    :么麽",
    195             "mei   :没每美煤霉酶梅妹眉玫枚媒镁昧寐媚莓嵋猸浼湄楣镅鹛袂魅",
    196             "men   :们门闷扪焖懑钔",
    197             "meng  :孟猛蒙盟梦萌锰檬勐甍瞢懵朦礞虻蜢蠓艋艨",
    198             "mi    :米密迷蜜秘眯醚靡糜谜弥觅泌幂芈谧蘼咪嘧猕汨宓弭脒祢敉糸縻麋",
    199             "mian  :面棉免绵眠冕勉娩缅沔渑湎腼眄",
    200             "miao  :苗秒描庙妙瞄藐渺喵邈缈缪杪淼眇鹋",
    201             "mie   :灭蔑咩蠛篾",
    202             "min   :民敏抿皿悯闽苠岷闵泯缗玟珉愍黾鳘",
    203             "ming  :命明名鸣螟铭冥茗溟暝瞑酩",
    204             "miu   :谬",
    205             "mo    :磨末模膜摸墨摩莫抹默摹蘑魔沫漠寞陌谟茉蓦馍嫫殁镆秣瘼耱貊貘",
    206             "mou   :某谋牟侔哞眸蛑蝥鍪",
    207             "mu    :亩目木母墓幕牧姆穆拇牡暮募慕睦仫坶苜沐毪钼",
    208             "n     :嗯",
    209             "na    :那南哪拿纳钠呐娜捺肭镎衲",
    210             "nai   :耐奶乃氖奈鼐艿萘柰",
    211             "nan   :南难男喃囝囡楠腩蝻赧",
    212             "nang  :囊攮囔馕曩",
    213             "nao   :脑闹挠恼淖孬垴呶猱瑙硇铙蛲",
    214             "ne    :呢讷",
    215             "nei   :内馁",
    216             "nen   :嫩恁",
    217             "neng  :能",
    218             "ni    :你泥尼逆拟尿妮霓倪匿腻溺伲坭猊怩昵旎慝睨铌鲵",
    219             "nian  :年念粘蔫拈碾撵捻酿廿埝辇黏鲇鲶",
    220             "niang :娘",
    221             "niao  :尿鸟茑嬲脲袅",
    222             "nie   :镍啮涅捏聂孽镊乜陧蘖嗫颞臬蹑",
    223             "nin   :您",
    224             "ning  :宁凝拧柠狞泞佞苎咛甯聍",
    225             "niu   :牛扭钮纽狃忸妞",
    226             "nong  :农弄浓脓侬哝",
    227             "nou   :耨",
    228             "nu    :女奴努怒弩胬孥驽恧钕衄",
    229             "nuan  :暖",
    230             "nue   :虐",
    231             "nuo   :诺挪懦糯傩搦喏锘",
    232             "o     :欧偶哦鸥殴藕呕沤讴噢怄瓯耦",
    233             "ou    :欧偶鸥殴藕呕沤讴怄瓯耦",
    234             "pa    :怕派爬帕啪趴琶葩杷筢",
    235             "pai   :派排拍牌哌徘湃俳蒎",
    236             "pan   :判盘叛潘攀磐盼畔胖爿泮袢襻蟠蹒",
    237             "pang  :旁乓庞耪胖彷滂逄螃",
    238             "pao   :跑炮刨抛泡咆袍匏狍庖脬疱",
    239             "pei   :配培陪胚呸裴赔佩沛辔帔旆锫醅霈",
    240             "pen   :喷盆湓",
    241             "peng  :碰棚蓬朋捧膨砰抨烹澎彭硼篷鹏堋嘭怦蟛",
    242             "pi    :批皮坯脾疲砒霹披劈琵毗啤匹痞僻屁譬丕仳陴邳郫圮鼙芘擗噼庀淠媲纰枇甓睥罴铍癖疋蚍蜱貔",
    243             "pian  :片偏篇骗谝骈犏胼翩蹁",
    244             "piao  :票漂飘瓢剽嘌嫖缥殍瞟螵",
    245             "pie   :撇瞥丿苤氕",
    246             "pin   :品贫频拼苹聘拚姘嫔榀牝颦",
    247             "ping  :平评瓶凭苹乒坪萍屏俜娉枰鲆",
    248             "po    :破迫坡泼颇婆魄粕叵鄱珀攴钋钷皤笸",
    249             "pou   :剖裒掊",
    250             "pu    :普谱扑埔铺葡朴蒲仆莆菩圃浦曝瀑匍噗溥濮璞氆镤镨蹼",
    251             "qi    :起其气期七器齐奇汽企漆欺旗畦启弃歧栖戚妻凄柒沏棋崎脐祈祁骑岂乞契砌迄泣讫亓俟圻芑芪萁萋葺蕲嘁屺岐汔淇骐绮琪琦杞桤槭耆欹祺憩碛颀蛴蜞綦綮蹊鳍麒",
    252             "qia   :恰掐洽葜髂",
    253             "qian  :前千钱浅签迁铅潜牵钳谴扦钎仟谦乾黔遣堑嵌欠歉倩佥阡芊芡茜荨掮岍悭慊骞搴褰缱椠肷愆钤虔箬箝",
    254             "qiang :强枪抢墙腔呛羌蔷戕嫱樯戗炝锖锵镪襁蜣羟跄",
    255             "qiao  :桥瞧巧敲乔蕉橇锹悄侨鞘撬翘峭俏窍劁诮谯荞愀憔樵硗跷鞒",
    256             "qie   :切且茄怯窃郄惬妾挈锲箧",
    257             "qin   :亲侵勤秦钦琴芹擒禽寝沁芩揿吣嗪噙溱檎锓覃螓衾",
    258             "qing  :情清青轻倾请庆氢晴卿擎氰顷苘圊檠磬蜻罄箐謦鲭黥",
    259             "qiong :穷琼邛茕穹蛩筇跫銎",
    260             "qiu   :求球秋丘邱囚酋泅俅巯犰湫逑遒楸赇虬蚯蝤裘糗鳅鼽",
    261             "qu    :去区取曲渠屈趋驱趣蛆躯娶龋诎劬蕖蘧岖衢阒璩觑氍朐祛磲鸲癯蛐蠼麴瞿黢",
    262             "quan  :全权圈劝泉醛颧痊拳犬券诠荃悛绻辁畎铨蜷筌鬈",
    263             "que   :确却缺炔瘸鹊榷雀阕阙悫",
    264             "qun   :群裙逡",
    265             "ran   :然燃染冉苒蚺髯",
    266             "rang  :让壤嚷瓤攘禳穰",
    267             "rao   :绕扰饶荛娆桡",
    268             "re    :热惹",
    269             "ren   :人认任仁刃忍壬韧妊纫仞荏葚饪轫稔衽",
    270             "reng  :仍扔",
    271             "ri    :日",
    272             "rong  :容溶荣熔融绒戎茸蓉冗嵘狨榕肜蝾",
    273             "rou   :肉揉柔糅蹂鞣",
    274             "ru    :如入儒乳茹蠕孺辱汝褥蓐薷嚅洳溽濡缛铷襦颥",
    275             "ruan  :软阮朊",
    276             "rui   :瑞锐蕊芮蕤枘睿蚋",
    277             "run   :润闰",
    278             "ruo   :弱若偌",
    279             "sa    :撒萨洒卅仨挲脎飒",
    280             "sai   :塞赛腮鳃噻",
    281             "san   :三散叁伞馓毵糁",
    282             "sang  :桑丧嗓搡磉颡",
    283             "sao   :扫搔骚嫂埽缫缲臊瘙鳋",
    284             "se    :色瑟涩啬铯穑",
    285             "sen   :森",
    286             "seng  :僧",
    287             "sha   :沙杀砂啥纱莎刹傻煞杉唼歃铩痧裟霎鲨",
    288             "shai  :筛晒",
    289             "shan  :山闪善珊扇陕苫杉删煽衫擅赡膳汕缮剡讪鄯埏芟潸姗嬗骟膻钐疝蟮舢跚鳝",
    290             "shang :上商伤尚墒赏晌裳垧绱殇熵觞",
    291             "shao  :少烧稍绍哨梢捎芍勺韶邵劭苕潲蛸筲艄",
    292             "she   :社设射摄舌涉舍蛇奢赊赦慑厍佘猞滠歙畲麝",
    293             "shen  :深身神伸甚渗沈肾审申慎砷呻娠绅婶诜谂莘哂渖椹胂矧蜃",
    294             "sheng :生胜声省升盛绳剩圣牲甥嵊晟眚笙",
    295             "shi   :是时十使事实式识世试石什示市史师始施士势湿适食失视室氏蚀诗释拾饰驶狮尸虱矢屎柿拭誓逝嗜噬仕侍恃谥埘莳蓍弑轼贳炻铈螫舐筮酾豕鲥鲺",
    296             "shou  :手受收首守授寿兽售瘦狩绶艏",
    297             "shu   :数书树属术输述熟束鼠疏殊舒蔬薯叔署枢梳抒淑赎孰暑曙蜀黍戍竖墅庶漱恕丨倏塾菽摅沭澍姝纾毹腧殳秫",
    298             "shua  :刷耍唰",
    299             "shuai :衰帅摔甩蟀",
    300             "shuan :栓拴闩涮",
    301             "shuang:双霜爽孀",
    302             "shui  :水谁睡税",
    303             "shun  :顺吮瞬舜",
    304             "shuo  :说硕朔烁蒴搠妁槊铄",
    305             "si    :四思死斯丝似司饲私撕嘶肆寺嗣伺巳厮兕厶咝汜泗澌姒驷缌祀锶鸶耜蛳笥",
    306             "song  :松送宋颂耸怂讼诵凇菘崧嵩忪悚淞竦",
    307             "sou   :搜艘擞嗽叟薮嗖嗾馊溲飕瞍锼螋",
    308             "su    :素速苏塑缩俗诉宿肃酥粟僳溯夙谡蔌嗉愫涑簌觫稣",
    309             "suan  :算酸蒜狻",
    310             "sui   :随穗碎虽岁隋绥髓遂隧祟谇荽濉邃燧眭睢",
    311             "sun   :损孙笋荪狲飧榫隼",
    312             "suo   :所缩锁索蓑梭唆琐唢嗦嗍娑桫睃羧",
    313             "ta    :他它她塔踏塌獭挞蹋闼溻遢榻沓铊趿鳎",
    314             "tai   :台太态胎抬泰苔酞汰邰薹肽炱钛跆鲐",
    315             "tan   :谈碳探炭坦贪滩坍摊瘫坛檀痰潭谭毯袒叹郯澹昙忐钽锬",
    316             "tang  :堂糖唐塘汤搪棠膛倘躺淌趟烫傥帑溏瑭樘铴镗耥螗螳羰醣",
    317             "tao   :套讨逃陶萄桃掏涛滔绦淘鼗啕洮韬焘饕",
    318             "te    :特忒忑铽",
    319             "teng  :腾疼藤誊滕",
    320             "ti    :提题体替梯惕剔踢锑蹄啼嚏涕剃屉倜悌逖缇鹈裼醍",
    321             "tian  :天田添填甜恬舔腆掭忝阗殄畋",
    322             "tiao  :条跳挑迢眺佻祧窕蜩笤粜龆鲦髫",
    323             "tie   :铁贴帖萜餮",
    324             "ting  :听停庭挺廷厅烃汀亭艇莛葶婷梃铤蜓霆",
    325             "tong  :同通统铜痛筒童桶桐酮瞳彤捅佟仝茼嗵恸潼砼",
    326             "tou   :头投透偷钭骰",
    327             "tu    :图土突途徒凸涂吐兔屠秃堍荼菟钍酴",
    328             "tuan  :团湍抟彖疃",
    329             "tui   :推退腿颓蜕褪煺",
    330             "tun   :吞屯臀氽饨暾豚",
    331             "tuo   :脱拖托妥椭鸵陀驮驼拓唾乇佗坨庹沱柝橐砣箨酡跎鼍",
    332             "wa    :瓦挖哇蛙洼娃袜佤娲腽",
    333             "wai   :外歪",
    334             "wan   :完万晚弯碗顽湾挽玩豌丸烷皖惋宛婉腕剜芄菀纨绾琬脘畹蜿",
    335             "wang  :往王望网忘妄亡旺汪枉罔尢惘辋魍",
    336             "wei   :为位委围维唯卫微伟未威危尾谓喂味胃魏伪违韦畏纬巍桅惟潍苇萎蔚渭尉慰偎诿隈葳薇囗帏帷崴嵬猥猬闱沩洧涠逶娓玮韪軎炜煨痿艉鲔",
    337             "wen   :问温文稳纹闻蚊瘟吻紊刎阌汶璺雯",
    338             "weng  :嗡翁瓮蓊蕹",
    339             "wo    :我握窝蜗涡沃挝卧斡倭莴喔幄渥肟硪龌",
    340             "wu    :无五物武务误伍舞污悟雾午屋乌吴诬钨巫呜芜梧吾毋捂侮坞戊晤勿兀仵阢邬圬芴唔庑怃忤浯寤迕妩婺骛杌牾焐鹉鹜痦蜈鋈鼯",
    341             "xi    :系席西习细吸析喜洗铣稀戏隙希息袭锡烯牺悉惜溪昔熙硒矽晰嘻膝夕熄汐犀檄媳僖兮隰郗菥葸蓰奚唏徙饩阋浠淅屣嬉玺樨曦觋欷熹禊禧皙穸蜥螅蟋舄舾羲粞翕醯鼷",
    342             "xia   :下夏吓狭霞瞎虾匣辖暇峡侠厦呷狎遐瑕柙硖罅黠",
    343             "xian  :线现先县限显鲜献险陷宪纤掀弦腺锨仙咸贤衔舷闲涎嫌馅羡冼苋莶藓岘猃暹娴氙燹祆鹇痫蚬筅籼酰跣跹霰",
    344             "xiang :想向相象响项箱乡香像详橡享湘厢镶襄翔祥巷芗葙饷庠骧缃蟓鲞飨",
    345             "xiao  :小消削效笑校销硝萧肖孝霄哮嚣宵淆晓啸哓崤潇逍骁绡枭枵筱箫魈",
    346             "xie   :些写斜谢协械卸屑鞋歇邪胁蟹泄泻楔蝎挟携谐懈偕亵勰燮薤撷獬廨渫瀣邂绁缬榭榍躞",
    347             "xin   :新心信锌芯辛欣薪忻衅囟馨昕歆鑫",
    348             "xing  :行性形型星兴醒姓幸腥猩惺刑邢杏陉荇荥擤饧悻硎",
    349             "xiong :雄胸兄凶熊匈汹芎",
    350             "xiu   :修锈休袖秀朽羞嗅绣咻岫馐庥溴鸺貅髹",
    351             "xu    :续许须需序虚絮畜叙蓄绪徐墟戌嘘酗旭恤婿诩勖圩蓿洫溆顼栩煦盱胥糈醑",
    352             "xuan  :选旋宣悬玄轩喧癣眩绚儇谖萱揎泫渲漩璇楦暄炫煊碹铉镟痃",
    353             "xue   :学血雪穴靴薛谑泶踅鳕",
    354             "xun   :训旬迅讯寻循巡勋熏询驯殉汛逊巽埙荀蕈薰峋徇獯恂洵浔曛醺鲟",
    355             "ya    :压亚呀牙芽雅蚜鸭押鸦丫崖衙涯哑讶伢垭揠岈迓娅琊桠氩砑睚痖",
    356             "yan   :验研严眼言盐演岩沿烟延掩宴炎颜燕衍焉咽阉淹蜒阎奄艳堰厌砚雁唁彦焰谚厣赝俨偃兖谳郾鄢菸崦恹闫阏湮滟妍嫣琰檐晏胭焱罨筵酽魇餍鼹",
    357             "yang  :样养氧扬洋阳羊秧央杨仰殃鸯佯疡痒漾徉怏泱炀烊恙蛘鞅",
    358             "yao   :要药摇腰咬邀耀疟妖瑶尧遥窑谣姚舀夭爻吆崾徭幺珧杳轺曜肴鹞窈繇鳐",
    359             "ye    :也业页叶液夜野爷冶椰噎耶掖曳腋靥谒邺揶晔烨铘",
    360             "yi    :一以义意已移医议依易乙艺益异宜仪亿遗伊役衣疑亦谊翼译抑忆疫壹揖铱颐夷胰沂姨彝椅蚁倚矣邑屹臆逸肄裔毅溢诣翌绎刈劓佚佾诒圯埸懿苡荑薏弈奕挹弋呓咦咿噫峄嶷猗饴怿怡悒漪迤驿缢殪轶贻旖熠眙钇镒镱痍瘗癔翊蜴舣羿翳酏黟",
    361             "yin   :因引阴印音银隐饮荫茵殷姻吟淫寅尹胤鄞垠堙茚吲喑狺夤洇氤铟瘾窨蚓霪龈",
    362             "ying  :应影硬营英映迎樱婴鹰缨莹萤荧蝇赢盈颖嬴郢茔莺萦蓥撄嘤膺滢潆瀛瑛璎楹媵鹦瘿颍罂",
    363             "yo    :哟唷",
    364             "yong  :用勇永拥涌蛹庸佣臃痈雍踊咏泳恿俑壅墉喁慵邕镛甬鳙饔",
    365             "you   :有由又油右友优幼游尤诱犹幽悠忧邮铀酉佑釉卣攸侑莠莜莸呦囿宥柚猷牖铕疣蚰蚴蝣鱿黝鼬",
    366             "yu    :于与育鱼雨玉余遇预域语愈渔予羽愚御欲宇迂淤盂榆虞舆俞逾愉渝隅娱屿禹芋郁吁喻峪狱誉浴寓裕豫驭禺毓伛俣谀谕萸蓣揄圄圉嵛狳饫馀庾阈鬻妪妤纡瑜昱觎腴欤於煜熨燠聿钰鹆鹬瘐瘀窬窳蜮蝓竽臾舁雩龉",
    367             "yuan  :员原圆源元远愿院缘援园怨鸳渊冤垣袁辕猿苑垸塬芫掾沅媛瑗橼爰眢鸢螈箢鼋",
    368             "yue   :月越约跃曰阅钥岳粤悦龠瀹樾刖钺",
    369             "yun   :运云匀允孕耘郧陨蕴酝晕韵郓芸狁恽愠纭韫殒昀氲熨",
    370             "za    :杂咱匝砸咋咂",
    371             "zai   :在再载栽灾哉宰崽甾",
    372             "zan   :赞咱暂攒拶瓒昝簪糌趱錾",
    373             "zang  :脏葬赃奘驵臧",
    374             "zao   :造早遭燥凿糟枣皂藻澡蚤躁噪灶唣",
    375             "ze    :则择责泽仄赜啧帻迮昃笮箦舴",
    376             "zei   :贼",
    377             "zen   :怎谮",
    378             "zeng  :增曾憎赠缯甑罾锃",
    379             "zha   :扎炸闸铡轧渣喳札眨栅榨乍诈揸吒咤哳砟痄蚱齄",
    380             "zhai  :寨摘窄斋宅债砦瘵",
    381             "zhan  :战展站占瞻毡詹沾盏斩辗崭蘸栈湛绽谵搌旃",
    382             "zhang :张章掌仗障胀涨账樟彰漳杖丈帐瘴仉鄣幛嶂獐嫜璋蟑",
    383             "zhao  :照找招召赵爪罩沼兆昭肇诏棹钊笊",
    384             "zhe   :这着者折哲浙遮蛰辙锗蔗谪摺柘辄磔鹧褶蜇赭",
    385             "zhen  :真针阵镇振震珍诊斟甄砧臻贞侦枕疹圳蓁浈缜桢榛轸赈胗朕祯畛稹鸩箴",
    386             "zheng :争正政整证征蒸症郑挣睁狰怔拯帧诤峥徵钲铮筝",
    387             "zhi   :之制治只质指直支织止至置志值知执职植纸致枝殖脂智肢秩址滞汁芝吱蜘侄趾旨挚掷帜峙稚炙痔窒卮陟郅埴芷摭帙忮彘咫骘栉枳栀桎轵轾贽胝膣祉祗黹雉鸷痣蛭絷酯跖踬踯豸觯",
    388             "zhong :中种重众钟终忠肿仲盅衷冢锺螽舯踵",
    389             "zhou  :轴周洲州皱骤舟诌粥肘帚咒宙昼荮啁妯纣绉胄碡籀酎",
    390             "zhu   :主注著住助猪铸株筑柱驻逐祝竹贮珠朱诸蛛诛烛煮拄瞩嘱蛀伫侏邾茱洙渚潴杼槠橥炷铢疰瘃竺箸舳翥躅麈",
    391             "zhua  :抓",
    392             "zhuai :拽",
    393             "zhuan :转专砖撰赚篆啭馔颛",
    394             "zhuang:装状壮庄撞桩妆僮",
    395             "zhui  :追锥椎赘坠缀惴骓缒",
    396             "zhun  :准谆肫窀",
    397             "zhuo  :捉桌拙卓琢茁酌啄灼浊倬诼擢浞涿濯焯禚斫镯",
    398             "zi    :子自资字紫仔籽姿兹咨滋淄孜滓渍谘嵫姊孳缁梓辎赀恣眦锱秭耔笫粢趑觜訾龇鲻髭",
    399             "zong  :总纵宗综棕鬃踪偬枞腙粽",
    400             "zou   :走邹奏揍诹陬鄹驺鲰",
    401             "zu    :组族足阻祖租卒诅俎菹镞",
    402             "zuan  :钻纂攥缵躜",
    403             "zui   :最罪嘴醉蕞",
    404             "zun   :尊遵撙樽鳟",
    405             "zuo   :作做左座坐昨佐柞阼唑嘬怍胙祚"
    406         };
    407     }
    408 }

     

      1 namespace Miraclesoft.Common.Utility.PinYin
      2 {
      3     class PyHash
      4     {
      5         internal static short[][] Hashes { get; } =
      6         {
      7             new short[]{23, 70, 96, 128, 154, 165, 172, 195},
      8             new short[]{25, 35, 87, 108, 120, 128, 132, 137, 168, 180, 325, 334, 336, 353, 361, 380},
      9             new short[]{23, 34, 46, 81, 82, 87, 134, 237, 255, 288, 317, 322, 354, 359},
     10             new short[]{7, 11, 37, 49, 53, 56, 131, 132, 146, 176, 315, 372},
     11             new short[]{11, 69, 73, 87, 96, 103, 159, 175, 195, 296, 298, 359, 361},
     12             new short[]{57, 87, 115, 126, 149, 244, 282, 298, 308, 345, 355},
     13             new short[]{19, 37, 117, 118, 141, 154, 196, 216, 267, 301, 327, 333, 337, 347},
     14             new short[]{4, 11, 59, 61, 62, 87, 119, 169, 183, 198, 262, 334, 362, 380},
     15             new short[]{37, 135, 167, 170, 246, 250, 334, 341, 351, 354, 386, 390, 398},
     16             new short[]{5, 6, 52, 55, 76, 146, 165, 244, 256, 266, 300, 318, 331},
     17             new short[]{6, 71, 94, 129, 137, 141, 169, 179, 225, 226, 235, 248, 289, 290, 333, 345, 391},
     18             new short[]{0, 33, 37, 62, 90, 131, 205, 246, 268, 343, 349, 380},
     19             new short[]{31, 62, 85, 115, 117, 150, 159, 167, 171, 204, 215, 252, 343},
     20             new short[]{69, 81, 98, 140, 165, 195, 239, 240, 259, 265, 329, 368, 375, 392, 393},
     21             new short[]{13, 81, 82, 123, 132, 144, 154, 165, 334, 336, 345, 348, 349, 355, 367, 377, 383},
     22             new short[]{31, 32, 44, 57, 76, 83, 87, 129, 151, 172, 176, 183, 184, 193, 221, 235, 285, 288, 305},
     23             new short[]{10, 14, 60, 76, 85, 97, 115, 125, 128, 130, 286, 288, 301, 313, 382},
     24             new short[]{62, 128, 136, 175, 211, 240, 254, 273, 274, 317, 330, 344, 349, 360, 380},
     25             new short[]{29, 47, 52, 116, 126, 127, 130, 133, 191, 284, 288, 306, 353, 361, 383},
     26             new short[]{1, 15, 25, 67, 83, 90, 117, 121, 150, 228, 308, 324, 336, 351, 386},
     27             new short[]{34, 37, 67, 101, 103, 117, 127, 165, 168, 254, 267, 272, 274, 288, 305, 310, 323, 329, 333, 358, 378},
     28             new short[]{5, 74, 103, 135, 163, 165, 171, 244, 262, 266, 334, 352, 390, 397},
     29             new short[]{4, 17, 95, 125, 165, 186, 203, 221, 252, 282, 317, 333, 339, 348, 351, 353},
     30             new short[]{74, 79, 81, 84, 92, 110, 116, 117, 131, 132, 154, 199, 241, 251, 300, 306, 349, 359, 383, 387},
     31             new short[]{40, 83, 127, 144, 161, 188, 249, 288, 344, 382, 388},
     32             new short[]{8, 55, 61, 76, 85, 98, 111, 127, 186, 230, 241, 247, 267, 287, 327, 341, 344, 347, 359, 364},
     33             new short[]{20, 59, 69, 80, 117, 129, 176, 186, 191, 237, 275, 289, 309, 338, 375, 380},
     34             new short[]{5, 15, 25, 35, 40, 129, 174, 236, 274, 337, 347},
     35             new short[]{14, 22, 47, 56, 87, 120, 129, 144, 155, 160, 237, 283, 284, 309, 327, 337, 365, 372},
     36             new short[]{1, 14, 47, 132, 198, 254, 255, 300, 310, 335, 336, 372},
     37             new short[]{2, 36, 64, 96, 125, 176, 184, 190, 211, 271, 308, 315, 367},
     38             new short[]{20, 76, 79, 81, 110, 117, 120, 129, 182, 192, 235, 353, 378},
     39             new short[]{37, 83, 88, 92, 111, 127, 243, 303, 324, 325, 348, 353, 359, 371, 377},
     40             new short[]{5, 87, 90, 124, 127, 180, 259, 288, 290, 302, 312, 313, 324, 332},
     41             new short[]{55, 62, 89, 98, 108, 132, 168, 240, 248, 322, 325, 327, 347, 353, 391, 396},
     42             new short[]{4, 8, 13, 35, 37, 39, 41, 64, 111, 174, 212, 245, 248, 251, 263, 288, 335, 373, 375},
     43             new short[]{10, 39, 93, 110, 168, 227, 228, 254, 288, 336, 378, 381},
     44             new short[]{75, 92, 122, 176, 198, 211, 214, 283, 334, 353, 359, 379, 386},
     45             new short[]{5, 8, 13, 19, 57, 87, 104, 125, 130, 176, 202, 249, 252, 290, 309, 391},
     46             new short[]{88, 132, 173, 176, 235, 247, 253, 292, 324, 328, 339, 359},
     47             new short[]{19, 32, 61, 84, 87, 118, 120, 125, 129, 132, 181, 190, 288, 290, 331, 355, 359, 366},
     48             new short[]{13, 25, 46, 126, 140, 157, 165, 225, 226, 252, 288, 304, 327, 353, 378},
     49             new short[]{12, 14, 26, 56, 72, 95, 131, 132, 134, 142, 253, 298, 337, 361, 391},
     50             new short[]{4, 18, 37, 49, 87, 93, 196, 225, 226, 246, 248, 250, 255, 310, 354, 358},
     51             new short[]{64, 87, 110, 111, 128, 135, 151, 165, 177, 188, 191, 268, 312, 334, 352, 354, 357, 371},
     52             new short[]{10, 17, 19, 30, 40, 48, 81, 97, 125, 129, 130, 182, 234, 305, 328, 393},
     53             new short[]{13, 69, 80, 114, 192, 200, 235, 343, 345, 353, 354, 360, 374, 378, 383},
     54             new short[]{83, 87, 94, 105, 107, 124, 144, 153, 219, 290, 298, 324, 349, 358, 367},
     55             new short[]{10, 36, 142, 169, 221, 232, 241, 246, 346, 347, 375, 383, 390},
     56             new short[]{26, 104, 126, 143, 176, 186, 241, 247, 250, 318, 320, 333, 360},
     57             new short[]{66, 92, 116, 148, 191, 215, 254, 333, 334, 335, 336, 351, 353, 358, 380},
     58             new short[]{9, 37, 55, 56, 76, 79, 90, 111, 122, 124, 161, 192, 247, 313, 353, 359, 374},
     59             new short[]{17, 30, 34, 56, 64, 68, 90, 125, 151, 168, 176, 188, 286, 333, 338, 360},
     60             new short[]{26, 143, 173, 182, 190, 194, 246, 284, 286, 328, 333, 355, 357, 360, 362, 363, 377, 380},
     61             new short[]{1, 13, 87, 122, 168, 171, 186, 201, 297, 328, 349, 352, 380},
     62             new short[]{18, 39, 61, 88, 98, 123, 129, 131, 148, 162, 165, 243, 285, 314, 340, 349, 360, 377, 378},
     63             new short[]{67, 98, 117, 118, 122, 128, 156, 174, 184, 207, 244, 250, 330, 335, 342, 372, 375},
     64             new short[]{13, 38, 63, 160, 180, 185, 189, 190, 219, 248, 253, 275, 297, 318, 355},
     65             new short[]{1, 44, 47, 93, 107, 172, 235, 276, 281, 287, 290, 306, 333, 334, 337, 347, 353, 376},
     66             new short[]{13, 15, 32, 125, 127, 157, 165, 176, 236, 344, 350, 381},
     67             new short[]{47, 65, 93, 134, 159, 174, 218, 282, 318, 336, 358, 373, 379},
     68             new short[]{7, 17, 40, 66, 102, 141, 154, 159, 165, 172, 174, 177, 328, 329, 334, 348, 379, 382},
     69             new short[]{4, 34, 36, 76, 79, 122, 127, 138, 176, 241, 267, 309, 334, 367, 382},
     70             new short[]{9, 17, 33, 46, 90, 103, 125, 138, 144, 157, 185, 198, 224, 250, 260, 291, 326, 343, 349, 377, 381},
     71             new short[]{29, 31, 53, 58, 134, 138, 193, 287, 305, 308, 333, 334},
     72             new short[]{13, 64, 83, 93, 129, 192, 227, 244, 397},
     73             new short[]{7, 8, 14, 78, 85, 103, 138, 175, 176, 200, 203, 234, 301, 313, 361},
     74             new short[]{13, 75, 87, 111, 244, 253, 288, 321, 339, 341, 357, 395},
     75             new short[]{4, 14, 42, 64, 69, 108, 110, 117, 122, 131, 159, 163, 188, 198, 200, 206, 244, 292, 300, 354, 390},
     76             new short[]{14, 37, 73, 87, 129, 135, 144, 176, 182, 300, 346, 352, 380, 383},
     77             new short[]{23, 50, 87, 143, 171, 186, 191, 223, 290, 333, 334, 364, 378, 380, 388, 391, 393},
     78             new short[]{5, 14, 23, 36, 62, 71, 76, 95, 99, 128, 176, 211, 229, 357},
     79             new short[]{12, 33, 47, 70, 81, 90, 97, 119, 122, 131, 189, 190, 191, 235, 244, 253, 320, 350, 359},
     80             new short[]{10, 13, 23, 93, 110, 120, 135, 171, 195, 250, 293, 298, 329, 344, 354},
     81             new short[]{13, 29, 37, 163, 169, 200, 211, 214, 217, 236, 246, 249, 282, 327, 349, 353, 362, 372},
     82             new short[]{5, 13, 23, 41, 57, 62, 76, 89, 111, 135, 195, 234, 248, 314, 334, 341, 349, 380},
     83             new short[]{17, 35, 57, 117, 121, 206, 235, 243, 265, 329, 358, 374},
     84             new short[]{13, 28, 41, 55, 69, 101, 103, 126, 138, 198, 267, 276, 288, 313, 334, 335, 339, 354, 376, 383, 394},
     85             new short[]{11, 13, 19, 36, 38, 58, 75, 124, 232, 235, 265, 286, 298, 330, 333, 359},
     86             new short[]{4, 19, 25, 43, 110, 125, 165, 331, 334, 341, 349, 355, 372},
     87             new short[]{40, 55, 64, 70, 117, 126, 127, 135, 160, 172, 173, 186, 270, 318, 338, 344, 378},
     88             new short[]{122, 176, 198, 238, 246, 284, 286, 290, 318, 329, 337, 381, 394},
     89             new short[]{23, 36, 37, 44, 117, 124, 198, 204, 233, 248, 282, 288, 297, 314, 332, 336, 388},
     90             new short[]{15, 33, 54, 64, 75, 85, 115, 127, 165, 196, 229, 237, 254, 307, 327, 335, 349, 383},
     91             new short[]{22, 87, 121, 127, 161, 180, 248, 250, 276, 313, 324, 347, 349, 355, 357, 359},
     92             new short[]{14, 48, 67, 88, 130, 131, 172, 188, 195, 203, 267, 282, 333, 339, 350, 392},
     93             new short[]{22, 31, 37, 98, 118, 132, 135, 137, 142, 151, 243, 244, 282, 305, 333, 349, 350, 351, 353, 358, 374},
     94             new short[]{15, 42, 67, 75, 125, 134, 189, 255, 261, 309, 334, 350, 380, 382},
     95             new short[]{10, 39, 87, 97, 105, 109, 125, 137, 225, 226, 253, 329, 341, 354, 363, 372},
     96             new short[]{5, 17, 42, 64, 80, 111, 120, 169, 175, 206, 237, 267, 288, 290, 324, 351, 364, 390},
     97             new short[]{3, 33, 55, 75, 91, 97, 103, 132, 187, 220, 232, 234, 240, 288, 301, 330, 336, 337, 338, 340, 359, 374, 380, 382},
     98             new short[]{13, 87, 98, 125, 126, 127, 128, 250, 330, 341, 353, 360, 374, 382, 391},
     99             new short[]{59, 66, 75, 125, 135, 172, 192, 230, 231, 255, 256, 276, 300, 306, 339, 349, 353, 390},
    100             new short[]{25, 36, 56, 90, 107, 125, 127, 142, 165, 195, 244, 246, 319, 347, 355, 375, 380},
    101             new short[]{2, 33, 35, 36, 72, 74, 87, 92, 111, 131, 145, 176, 244, 248, 282, 333, 355, 359},
    102             new short[]{5, 39, 127, 134, 137, 200, 240, 283, 284, 343, 344, 372},
    103             new short[]{9, 32, 37, 80, 96, 104, 110, 117, 154, 176, 244, 297, 298, 339, 353, 374, 381},
    104             new short[]{38, 51, 64, 76, 80, 93, 96, 134, 150, 173, 275, 290, 340, 347, 359, 363, 380},
    105             new short[]{55, 89, 111, 126, 157, 159, 162, 182, 188, 244, 253, 280, 334, 359, 384, 398},
    106             new short[]{59, 64, 75, 81, 97, 105, 115, 125, 155, 198, 248, 262, 319, 323, 376},
    107             new short[]{13, 41, 76, 125, 127, 130, 134, 135, 159, 167, 183, 229, 230, 240, 246, 308, 319, 329, 333, 334, 340, 344, 363, 382},
    108             new short[]{8, 13, 19, 31, 70, 76, 79, 96, 127, 153, 163, 165, 184, 227, 230, 247, 255, 336, 337, 348, 353, 357, 361, 362},
    109             new short[]{71, 87, 111, 121, 130, 142, 150, 160, 175, 224, 248, 314, 336, 353, 357, 359},
    110             new short[]{67, 84, 101, 130, 287, 288, 332, 333, 359, 361, 377},
    111             new short[]{34, 52, 90, 100, 125, 135, 165, 173, 320, 341, 352, 359, 382, 392},
    112             new short[]{13, 18, 39, 55, 62, 87, 248, 255, 290, 327, 349, 353, 355, 360, 383},
    113             new short[]{1, 9, 12, 29, 32, 36, 82, 139, 140, 149, 153, 165, 167, 180, 185, 231, 241, 244, 274, 299, 309, 329, 355, 362},
    114             new short[]{48, 66, 98, 107, 120, 122, 125, 135, 190, 195, 198, 215, 253, 256, 280, 282, 307, 320, 334, 349, 353, 355},
    115             new short[]{1, 7, 13, 25, 64, 98, 139, 144, 166, 176, 206, 236, 262, 330, 362},
    116             new short[]{37, 55, 116, 123, 125, 131, 165, 234, 266, 276, 328, 329, 342, 349, 353, 359, 391},
    117             new short[]{126, 137, 191, 215, 239, 288, 290, 321, 324, 333, 334, 338, 349, 353, 362, 379},
    118             new short[]{50, 57, 87, 93, 98, 115, 134, 148, 174, 229, 251, 260, 285, 298, 313, 348, 349, 350},
    119             new short[]{5, 13, 31, 45, 69, 81, 108, 122, 127, 160, 165, 176, 179, 237, 244, 301, 316, 352, 360},
    120             new short[]{5, 87, 95, 98, 101, 132, 135, 159, 167, 190, 203, 217, 234, 235, 247, 289, 333, 341, 343, 352},
    121             new short[]{22, 56, 66, 85, 87, 93, 126, 127, 163, 230, 243, 248, 254, 280, 301, 305, 334, 357},
    122             new short[]{13, 19, 53, 59, 76, 91, 117, 122, 195, 298, 303, 309, 337, 345, 398},
    123             new short[]{9, 54, 84, 107, 125, 127, 135, 144, 156, 173, 176, 202, 215, 231, 234, 246, 266, 282, 335, 336, 347, 351, 374},
    124             new short[]{11, 15, 30, 31, 40, 57, 58, 87, 88, 113, 186, 244, 245, 256, 308, 334, 377},
    125             new short[]{62, 111, 176, 196, 228, 231, 288, 294, 302, 306, 350, 353, 375, 378, 392},
    126             new short[]{119, 131, 133, 154, 161, 179, 198, 232, 234, 265, 301, 314, 344, 353, 378},
    127             new short[]{67, 84, 123, 172, 175, 176, 182, 229, 290, 359, 360, 375, 383, 393},
    128             new short[]{33, 36, 39, 102, 116, 136, 137, 208, 234, 256, 307, 329, 341, 347, 376, 380},
    129             new short[]{13, 27, 32, 80, 95, 108, 131, 165, 167, 180, 190, 200, 235, 241, 244, 323, 330, 339, 372},
    130             new short[]{1, 18, 37, 62, 67, 82, 85, 118, 125, 147, 159, 169, 174, 243, 284, 307, 313, 318, 355, 391, 396},
    131             new short[]{10, 87, 91, 135, 169, 176, 215, 246, 267, 282, 295, 320, 345, 353, 380},
    132             new short[]{2, 11, 13, 29, 90, 124, 131, 132, 170, 174, 176, 229, 246, 258, 298, 336, 344, 349},
    133             new short[]{14, 37, 42, 71, 128, 152, 185, 218, 288, 304, 315, 353, 362, 380, 391},
    134             new short[]{17, 20, 36, 73, 93, 128, 163, 194, 211, 217, 282, 290, 320, 354, 383},
    135             new short[]{9, 26, 32, 101, 127, 169, 178, 183, 191, 236, 244, 310, 330, 336, 345, 353, 360, 372, 380, 394},
    136             new short[]{7, 13, 64, 78, 81, 90, 115, 133, 164, 169, 244, 246, 269, 278, 290, 292, 310, 320, 353, 360, 364, 366, 380},
    137             new short[]{8, 65, 81, 84, 91, 126, 129, 158, 183, 184, 194, 254, 262, 333, 334, 339, 351, 363, 382},
    138             new short[]{44, 87, 96, 97, 125, 161, 173, 177, 183, 188, 189, 209, 235, 288, 315, 334, 351},
    139             new short[]{50, 56, 60, 62, 67, 71, 105, 149, 154, 158, 164, 167, 185, 221, 285, 288, 308, 337, 344, 353},
    140             new short[]{6, 10, 37, 62, 74, 79, 81, 128, 139, 154, 167, 198, 228, 244, 267, 290, 302, 368, 394},
    141             new short[]{6, 30, 35, 36, 62, 65, 71, 112, 153, 163, 167, 180, 186, 195, 249, 286, 303, 329, 334},
    142             new short[]{158, 241, 282, 324, 332, 334, 351, 353, 363, 365},
    143             new short[]{17, 89, 117, 144, 165, 180, 185, 198, 229, 244, 290, 334, 335, 380},
    144             new short[]{20, 32, 45, 57, 64, 66, 120, 135, 144, 176, 192, 244, 297, 301, 354, 381},
    145             new short[]{1, 7, 35, 62, 74, 122, 159, 170, 172, 238, 239, 307, 308, 338, 349, 350, 359, 366, 368, 375, 382, 383},
    146             new short[]{7, 9, 23, 66, 92, 103, 111, 135, 182, 203, 246, 247, 265, 285, 288, 303, 317, 329, 348},
    147             new short[]{13, 39, 74, 87, 127, 135, 144, 193, 212, 243, 270, 290, 303, 315, 375, 376},
    148             new short[]{33, 36, 40, 59, 101, 120, 127, 244, 285, 287, 309, 339, 391},
    149             new short[]{4, 10, 39, 195, 268, 284, 336, 354, 359, 375, 381},
    150             new short[]{39, 42, 62, 79, 83, 84, 101, 109, 132, 138, 202, 215, 277, 353, 358, 359},
    151             new short[]{10, 39, 46, 73, 84, 87, 132, 170, 192, 219, 232, 246, 288, 320, 337},
    152             new short[]{10, 12, 56, 87, 91, 101, 132, 227, 254, 301, 303, 333, 343, 347, 351},
    153             new short[]{7, 8, 15, 18, 82, 105, 130, 232, 250, 290, 316, 332, 348, 350},
    154             new short[]{36, 109, 110, 125, 154, 191, 193, 246, 265, 348, 349, 350, 378, 383},
    155             new short[]{12, 16, 45, 57, 87, 92, 101, 105, 129, 130, 155, 167, 218, 292, 293, 327, 349, 354, 361},
    156             new short[]{30, 59, 64, 121, 125, 149, 163, 188, 212, 250, 348, 350, 351, 352, 353, 378, 380},
    157             new short[]{1, 69, 130, 138, 194, 200, 239, 260, 264, 357, 380, 381, 382, 396},
    158             new short[]{7, 10, 19, 40, 57, 61, 125, 137, 141, 212, 239, 251, 310, 333, 347, 359, 380, 383},
    159             new short[]{20, 28, 50, 97, 109, 134, 157, 162, 184, 199, 244, 246, 286, 352, 353, 360, 373, 380},
    160             new short[]{35, 62, 87, 96, 122, 127, 136, 142, 148, 155, 165, 186, 196, 227, 354, 380, 388},
    161             new short[]{81, 82, 101, 115, 125, 200, 243, 313, 351, 359, 367},
    162             new short[]{7, 19, 40, 61, 107, 108, 124, 154, 161, 244, 309, 329, 345, 379, 394},
    163             new short[]{10, 27, 48, 66, 75, 103, 116, 122, 128, 221, 228, 319, 322, 350, 377, 398},
    164             new short[]{2, 64, 74, 117, 130, 165, 172, 180, 191, 218, 221, 288, 299, 325, 347, 353, 355, 360},
    165             new short[]{5, 76, 79, 87, 106, 111, 137, 168, 180, 235, 243, 288, 315, 321, 338, 344, 348, 378, 382, 383},
    166             new short[]{0, 29, 31, 37, 40, 50, 88, 100, 129, 134, 137, 144, 174, 186, 203, 254, 310, 313, 329, 341, 359, 364},
    167             new short[]{69, 70, 71, 96, 115, 121, 130, 157, 159, 200, 230, 246, 250, 299, 318, 324, 353, 359, 380, 391},
    168             new short[]{7, 90, 95, 116, 127, 128, 135, 137, 141, 154, 161, 254, 330, 359, 379, 388},
    169             new short[]{10, 14, 56, 91, 108, 125, 130, 167, 211, 228, 246, 258, 280, 306, 324, 333, 336, 338, 379},
    170             new short[]{4, 5, 14, 57, 85, 98, 125, 135, 136, 176, 254, 334, 336, 337, 351, 358, 362, 379, 383},
    171             new short[]{1, 4, 13, 18, 19, 32, 50, 60, 62, 87, 117, 176, 211, 251, 329, 343, 359},
    172             new short[]{38, 56, 94, 103, 117, 125, 129, 144, 159, 176, 244, 251, 253, 324, 345, 353, 386, 390},
    173             new short[]{4, 22, 38, 47, 59, 64, 82, 97, 110, 135, 153, 176, 235, 236, 241, 287, 288, 303, 333, 347, 358, 359, 361},
    174             new short[]{2, 5, 20, 52, 97, 125, 127, 132, 135, 137, 174, 188, 191, 243, 288, 310, 334, 346, 348, 349, 362, 372, 378},
    175             new short[]{19, 35, 55, 98, 125, 131, 134, 147, 153, 246, 255, 390},
    176             new short[]{5, 59, 62, 129, 136, 153, 198, 225, 235, 239, 254, 295, 334, 338, 341, 359, 361},
    177             new short[]{8, 13, 51, 94, 121, 122, 125, 126, 129, 240, 272, 290, 297, 323, 352, 358, 376, 391, 395},
    178             new short[]{6, 111, 116, 122, 125, 131, 135, 164, 175, 200, 212, 221, 267, 287, 319, 328, 334, 344, 378},
    179             new short[]{83, 108, 143, 172, 176, 192, 198, 246, 262, 286, 287, 308, 338, 340, 343, 348, 353, 367, 380, 383},
    180             new short[]{39, 82, 92, 118, 126, 128, 144, 171, 211, 234, 244, 253, 328, 333, 339, 357, 359, 380},
    181             new short[]{37, 62, 64, 81, 97, 122, 125, 127, 137, 211, 246, 344, 360},
    182             new short[]{7, 29, 62, 67, 69, 81, 87, 107, 132, 151, 160, 229, 244, 284, 285, 317, 358, 387, 390},
    183             new short[]{13, 75, 76, 83, 87, 154, 165, 190, 212, 258, 285, 308, 309, 316, 320, 332, 336, 340, 352, 353, 354, 358, 383},
    184             new short[]{9, 19, 29, 46, 122, 125, 127, 130, 170, 171, 174, 180, 182, 232, 282, 290, 359, 362, 367},
    185             new short[]{13, 40, 71, 98, 101, 116, 125, 127, 169, 172, 175, 283, 288, 309, 311, 313, 323, 334, 353, 391},
    186             new short[]{3, 9, 70, 104, 118, 173, 200, 219, 246, 262, 288, 297, 309, 328, 329, 334, 341, 353},
    187             new short[]{32, 89, 93, 131, 132, 142, 199, 200, 214, 246, 287, 298, 307, 339, 348, 349, 357, 358, 368, 372, 391},
    188             new short[]{103, 134, 159, 176, 186, 235, 261, 276, 282, 290, 301, 317, 329, 345, 356},
    189             new short[]{10, 59, 125, 129, 130, 192, 217, 283, 318, 343, 345, 349, 353, 380, 383, 392},
    190             new short[]{19, 76, 79, 102, 107, 126, 155, 161, 180, 253, 288, 289, 290, 314, 329, 333, 334, 360, 368, 378, 394},
    191             new short[]{12, 92, 98, 105, 137, 149, 172, 196, 198, 244, 260, 262, 282, 298, 329, 345, 353, 368, 390},
    192             new short[]{31, 39, 79, 83, 121, 125, 167, 171, 186, 198, 288, 303, 306, 334, 337, 376},
    193             new short[]{13, 20, 36, 57, 98, 108, 114, 165, 171, 225, 226, 262, 269, 305, 309, 351, 377, 389},
    194             new short[]{13, 51, 71, 93, 110, 129, 130, 156, 165, 170, 173, 183, 191, 200, 211, 212, 255, 266, 299, 301, 329, 336, 348},
    195             new short[]{31, 56, 97, 122, 125, 129, 160, 188, 202, 204, 206, 225, 235, 247, 254, 255, 288, 334, 350, 362, 365, 367},
    196             new short[]{9, 32, 37, 70, 75, 87, 88, 96, 125, 130, 162, 163, 168, 169, 257, 285, 308, 310, 337, 373, 392},
    197             new short[]{18, 40, 42, 47, 73, 76, 85, 105, 108, 125, 130, 132, 134, 167, 191, 284, 310, 311, 344, 358, 361, 374, 378, 379},
    198             new short[]{5, 19, 29, 31, 48, 65, 98, 129, 131, 143, 165, 171, 172, 196, 198, 277, 296, 311, 317, 327, 351, 380},
    199             new short[]{51, 69, 96, 98, 117, 123, 130, 131, 148, 161, 168, 172, 176, 184, 202, 324, 332, 336, 348, 392},
    200             new short[]{1, 20, 37, 57, 70, 76, 79, 87, 165, 176, 234, 251, 333, 388},
    201             new short[]{8, 13, 134, 135, 153, 165, 169, 193, 195, 255, 273, 337, 348, 359, 360, 382, 391},
    202             new short[]{2, 14, 53, 71, 83, 127, 136, 144, 149, 208, 234, 235, 293, 301, 347, 352},
    203             new short[]{20, 40, 42, 95, 135, 141, 165, 199, 250, 290, 299, 308, 337, 338, 350, 353, 354, 355, 358, 380},
    204             new short[]{13, 19, 33, 35, 36, 49, 85, 121, 122, 127, 137, 158, 165, 282, 303, 320, 328, 334, 365, 367, 374},
    205             new short[]{17, 37, 123, 126, 127, 139, 140, 143, 167, 185, 192, 235, 254, 275, 315, 340, 349, 353, 362},
    206             new short[]{57, 72, 127, 159, 163, 165, 176, 199, 215, 218, 238, 254, 284, 288, 336, 339, 347, 352, 380, 395},
    207             new short[]{54, 69, 81, 101, 114, 121, 165, 206, 236, 313, 332, 338, 349, 358, 360, 362, 377},
    208             new short[]{29, 37, 43, 120, 127, 176, 193, 244, 246, 254, 284, 288, 336, 339, 372},
    209             new short[]{36, 56, 85, 122, 125, 126, 154, 232, 282, 308, 314, 315, 324, 336, 353, 359, 382},
    210             new short[]{7, 99, 104, 117, 124, 125, 143, 176, 239, 298, 318, 383},
    211             new short[]{13, 20, 71, 90, 108, 122, 176, 186, 214, 231, 247, 262, 267, 280, 286, 300, 332, 358, 377, 380, 385, 390, 393},
    212             new short[]{31, 65, 75, 79, 85, 91, 109, 110, 120, 159, 229, 235, 288, 298, 347, 355, 359, 379, 381},
    213             new short[]{38, 75, 82, 90, 99, 202, 248, 265, 324, 329, 350, 354, 355, 365},
    214             new short[]{7, 15, 72, 90, 117, 125, 140, 144, 171, 198, 269, 271, 282, 305, 325, 338, 343, 353},
    215             new short[]{13, 14, 20, 29, 37, 42, 45, 47, 165, 184, 244, 329, 341, 347, 372},
    216             new short[]{31, 36, 82, 99, 149, 154, 173, 182, 185, 200, 217, 251, 298, 329, 332, 333, 349, 353, 354, 355, 377, 383},
    217             new short[]{32, 44, 45, 52, 93, 97, 108, 114, 120, 144, 155, 172, 236, 240, 267, 272, 282, 288, 329, 333, 334, 343, 381},
    218             new short[]{35, 55, 57, 62, 95, 96, 98, 127, 131, 177, 262, 317, 318, 357, 359, 380, 388},
    219             new short[]{22, 24, 68, 103, 115, 119, 120, 125, 128, 156, 162, 184, 186, 235, 244, 327, 353, 358, 378, 380, 393},
    220             new short[]{29, 37, 62, 67, 81, 83, 93, 104, 110, 129, 132, 142, 172, 274, 298, 354, 380},
    221             new short[]{19, 45, 66, 87, 104, 108, 118, 155, 170, 176, 234, 286, 310, 313, 327, 329, 333, 347, 358, 368, 380, 383, 386},
    222             new short[]{10, 14, 32, 83, 96, 131, 165, 180, 205, 211, 249, 255, 286, 288, 292, 299, 312, 336, 338, 349, 368, 375},
    223             new short[]{2, 13, 48, 75, 85, 98, 116, 125, 126, 128, 135, 136, 151, 188, 195, 243, 280, 289, 333, 339, 349, 378, 382},
    224             new short[]{9, 19, 39, 45, 87, 106, 117, 125, 126, 127, 154, 165, 202, 211, 256, 309, 360, 397, 398},
    225             new short[]{14, 21, 65, 76, 87, 93, 97, 105, 131, 177, 212, 254, 294, 336, 349, 359, 381},
    226             new short[]{36, 55, 65, 70, 87, 93, 96, 98, 108, 127, 254, 337, 352, 359, 375, 380},
    227             new short[]{22, 42, 62, 82, 131, 132, 136, 158, 168, 196, 267, 305, 336},
    228             new short[]{45, 69, 74, 75, 81, 120, 123, 126, 127, 130, 150, 171, 191, 194, 313, 339, 368, 378, 379, 389, 398},
    229             new short[]{35, 43, 85, 98, 122, 131, 135, 176, 189, 250, 259, 277, 288, 303, 333, 336, 345, 376, 381, 387},
    230             new short[]{1, 6, 34, 87, 115, 129, 131, 202, 235, 252, 256, 263, 317, 328, 349, 372, 391},
    231             new short[]{3, 18, 42, 48, 84, 90, 92, 138, 193, 227, 288, 310, 315, 353, 375},
    232             new short[]{2, 10, 31, 66, 124, 145, 240, 314, 334},
    233             new short[]{32, 38, 84, 141, 165, 188, 193, 212, 346, 359, 379, 380},
    234             new short[]{10, 75, 81, 96, 111, 140, 179, 298, 309, 353, 357, 359, 380, 396},
    235             new short[]{2, 34, 121, 127, 132, 134, 184, 234, 244, 251, 262, 290, 308, 359, 380},
    236             new short[]{17, 24, 93, 172, 186, 198, 218, 234, 239, 250, 252, 255, 307, 309, 325, 334, 354, 359},
    237             new short[]{14, 18, 45, 50, 131, 174, 211, 237, 252, 267, 309, 334, 348, 351, 377, 391},
    238             new short[]{32, 61, 87, 97, 125, 126, 132, 184, 249, 252, 273, 284, 288, 339, 383, 398},
    239             new short[]{76, 81, 87, 127, 147, 161, 163, 199, 206, 306, 329, 340, 349, 353, 360, 383},
    240             new short[]{14, 16, 76, 87, 101, 169, 188, 243, 246, 251, 253, 269, 298, 355, 375, 380},
    241             new short[]{32, 79, 87, 103, 117, 125, 127, 177, 244, 301, 305, 317, 333, 338, 340, 342, 391},
    242             new short[]{4, 67, 76, 121, 127, 130, 140, 158, 165, 186, 193, 251, 301, 303, 330, 336},
    243             new short[]{11, 76, 83, 84, 87, 214, 248, 276, 299, 311, 320, 329, 332, 335, 371},
    244             new short[]{2, 4, 19, 40, 42, 71, 98, 119, 121, 137, 167, 262, 288, 295, 306, 339, 350, 382},
    245             new short[]{14, 40, 54, 90, 125, 129, 132, 146, 147, 165, 169, 176, 190, 253, 284, 303, 307, 316, 339, 342, 359, 389},
    246             new short[]{47, 59, 71, 103, 125, 126, 129, 130, 200, 206, 240, 254, 276, 282, 299, 303, 307, 318, 320, 336, 338, 357, 362, 380, 387, 392},
    247             new short[]{4, 22, 58, 102, 113, 115, 153, 167, 188, 212, 262, 286, 305, 333, 348, 354, 360, 371, 379, 386},
    248             new short[]{5, 6, 56, 61, 108, 128, 129, 164, 165, 177, 182, 225, 226, 235, 244, 246, 249, 310, 333, 348, 349, 381, 391},
    249             new short[]{18, 32, 33, 53, 56, 176, 186, 199, 200, 244, 246, 248, 259, 285, 289, 306, 358, 371, 373, 375, 379},
    250             new short[]{40, 43, 70, 76, 83, 84, 90, 93, 101, 125, 159, 204, 276, 282, 304, 320, 339, 351, 353, 367, 391},
    251             new short[]{14, 19, 59, 71, 76, 87, 93, 97, 105, 111, 120, 121, 122, 154, 171, 211, 231, 244, 286, 288, 341, 351},
    252             new short[]{10, 56, 65, 72, 92, 108, 123, 129, 212, 258, 329, 353, 359},
    253             new short[]{5, 76, 124, 127, 161, 172, 188, 244, 250, 266, 290, 318, 347, 351, 369, 382, 391, 395},
    254             new short[]{1, 33, 86, 120, 121, 130, 154, 162, 173, 192, 241, 244, 262, 338, 339, 343, 353, 380, 390},
    255             new short[]{1, 15, 22, 54, 57, 85, 126, 127, 176, 188, 248, 305, 332, 347, 349, 358, 367},
    256             new short[]{91, 111, 122, 125, 130, 178, 190, 224, 225, 226, 235, 286, 308, 329, 334, 345, 346, 349, 358, 362, 367},
    257             new short[]{16, 26, 51, 54, 84, 85, 98, 120, 272, 319, 349, 359, 360, 362, 377, 391, 398},
    258             new short[]{73, 85, 102, 109, 128, 153, 171, 184, 248, 249, 256, 298, 300, 335, 338, 340, 355, 370},
    259             new short[]{9, 108, 122, 131, 164, 168, 173, 176, 195, 218, 235, 286, 341, 350, 353, 358, 375, 377},
    260             new short[]{25, 62, 125, 140, 165, 173, 200, 225, 226, 243, 283, 286, 329, 343, 357, 366, 377},
    261             new short[]{10, 35, 58, 64, 98, 103, 125, 127, 129, 135, 141, 165, 169, 175, 189, 244, 258, 259, 306, 331, 333, 378, 380, 391},
    262             new short[]{54, 87, 89, 99, 116, 125, 129, 221, 246, 269, 324, 335, 348, 351},
    263             new short[]{85, 90, 103, 115, 131, 134, 165, 207, 282, 307, 313, 328, 346, 349, 380, 383, 387, 398},
    264             new short[]{10, 40, 74, 84, 160, 239, 253, 272, 282, 333, 344, 351, 359, 360, 379},
    265             new short[]{32, 38, 54, 74, 76, 117, 163, 171, 176, 217, 227, 250, 251, 280, 329, 330, 350, 378},
    266             new short[]{13, 20, 40, 107, 129, 135, 154, 158, 161, 163, 179, 206, 281, 315, 325, 351, 355, 359, 397},
    267             new short[]{0, 4, 37, 49, 62, 98, 117, 129, 177, 244, 285, 289, 306, 338, 360, 381},
    268             new short[]{36, 38, 43, 61, 71, 87, 120, 128, 172, 200, 235, 247, 251, 282, 299, 329, 341, 352, 355},
    269             new short[]{43, 71, 83, 85, 108, 117, 118, 121, 133, 138, 165, 206, 231, 254, 290, 291, 335, 336, 359, 362, 377},
    270             new short[]{29, 32, 71, 103, 122, 125, 198, 224, 244, 285, 303, 333, 335, 337},
    271             new short[]{54, 55, 82, 87, 101, 108, 127, 229, 230, 269, 290, 306, 349, 353},
    272             new short[]{9, 117, 126, 137, 154, 165, 167, 186, 192, 229, 277, 283, 301, 317, 365, 367, 372, 378},
    273             new short[]{4, 11, 19, 47, 51, 92, 110, 132, 137, 140, 290, 298, 361, 377, 379},
    274             new short[]{23, 83, 98, 134, 165, 170, 186, 190, 253, 269, 308, 322, 327, 332, 335, 344, 398},
    275             new short[]{60, 83, 111, 129, 173, 176, 186, 232, 306, 327, 329, 349, 355},
    276             new short[]{25, 31, 40, 56, 72, 95, 126, 144, 149, 161, 173, 240, 262, 332, 333, 356, 368, 391, 394},
    277             new short[]{91, 127, 134, 144, 155, 158, 161, 232, 251, 280, 287, 353, 380, 394},
    278             new short[]{37, 43, 57, 84, 87, 149, 175, 288, 330, 380},
    279             new short[]{8, 9, 83, 97, 120, 128, 158, 171, 193, 232, 287, 308, 309, 334, 355},
    280             new short[]{39, 40, 62, 82, 94, 98, 101, 144, 147, 205, 290, 333, 339, 353, 372, 397},
    281             new short[]{10, 20, 38, 125, 135, 138, 168, 180, 191, 203, 231, 250, 280, 301, 328, 345, 388},
    282             new short[]{44, 54, 64, 87, 117, 122, 127, 154, 234, 239, 244, 298, 329, 378, 383},
    283             new short[]{13, 62, 70, 97, 121, 176, 244, 267, 282, 318, 324, 334, 341, 353, 386, 388},
    284             new short[]{40, 89, 91, 117, 125, 131, 155, 173, 193, 244, 273, 277, 328, 333, 360, 382},
    285             new short[]{30, 47, 95, 108, 127, 165, 188, 211, 273, 349, 354, 368, 391},
    286             new short[]{19, 52, 87, 98, 100, 122, 125, 157, 159, 215, 217, 235, 254, 309, 336, 344, 349, 382},
    287             new short[]{19, 85, 87, 136, 144, 180, 190, 229, 310, 345, 365, 376, 390},
    288             new short[]{35, 52, 87, 113, 124, 135, 145, 167, 174, 225, 226, 244, 247, 300, 359},
    289             new short[]{10, 35, 69, 103, 129, 144, 165, 180, 230, 232, 329, 335, 353, 359, 371, 390},
    290             new short[]{5, 13, 80, 83, 135, 139, 142, 176, 179, 190, 205, 217, 282, 298, 308, 334, 353, 359},
    291             new short[]{24, 52, 67, 108, 135, 138, 153, 176, 231, 249, 283, 304, 337, 351, 353, 355},
    292             new short[]{90, 93, 127, 132, 136, 163, 165, 196, 284, 306, 353, 383},
    293             new short[]{20, 37, 103, 126, 135, 184, 204, 215, 221, 288, 300, 329, 339, 358, 383},
    294             new short[]{16, 36, 52, 99, 117, 136, 171, 190, 243, 244, 303, 315, 333, 349, 373, 382},
    295             new short[]{0, 57, 69, 98, 125, 129, 132, 158, 165, 190, 191, 193, 198, 254, 256, 285, 288, 303, 339, 346, 351, 391},
    296             new short[]{1, 13, 21, 87, 125, 132, 150, 204, 240, 249, 253, 265, 288, 334, 343, 348, 349, 359},
    297             new short[]{29, 40, 71, 80, 91, 99, 122, 203, 289, 290, 298, 329, 353, 380, 390},
    298             new short[]{2, 5, 36, 57, 93, 102, 135, 140, 314, 343, 398},
    299             new short[]{20, 59, 107, 193, 204, 246, 247, 336, 341, 342, 354, 359, 360, 383},
    300             new short[]{47, 71, 93, 111, 116, 120, 122, 130, 251, 286, 298, 299, 348},
    301             new short[]{21, 52, 56, 69, 76, 118, 120, 125, 137, 274, 280, 324, 327, 335, 339, 340},
    302             new short[]{23, 29, 57, 75, 98, 132, 149, 157, 160, 235, 244, 288, 327, 340, 354, 372, 377},
    303             new short[]{4, 22, 97, 103, 111, 129, 131, 151, 158, 176, 204, 248, 265, 309, 359, 391, 392},
    304             new short[]{15, 17, 73, 105, 115, 170, 186, 228, 255, 317, 321, 339, 349, 379, 380, 381},
    305             new short[]{17, 52, 72, 103, 188, 329, 342, 353, 358, 359, 374, 376, 380, 393},
    306             new short[]{40, 48, 74, 124, 135, 191, 225, 226, 237, 291, 300, 304, 310, 347, 359, 380, 396},
    307             new short[]{2, 36, 47, 57, 122, 125, 174, 188, 203, 224, 255, 325, 353, 359, 387},
    308             new short[]{13, 58, 69, 83, 115, 120, 134, 161, 165, 174, 175, 191, 246, 255, 280, 353, 357, 358, 359, 379},
    309             new short[]{1, 29, 47, 87, 89, 135, 176, 190, 209, 236, 304, 344, 348, 358, 359, 378},
    310             new short[]{8, 13, 40, 52, 58, 61, 71, 125, 144, 168, 189, 210, 260, 337, 338, 340, 347, 376, 380},
    311             new short[]{29, 90, 126, 127, 129, 136, 145, 159, 165, 188, 274, 284, 288, 316, 329, 358, 380},
    312             new short[]{2, 19, 103, 120, 123, 159, 165, 175, 177, 180, 238, 244, 251, 294, 329, 342, 345, 349, 357, 376, 392},
    313             new short[]{41, 42, 59, 71, 81, 98, 101, 117, 159, 171, 180, 240, 285, 290, 299, 344, 353},
    314             new short[]{83, 103, 108, 142, 175, 248, 290, 300, 321, 354, 365, 374, 382},
    315             new short[]{12, 67, 105, 130, 140, 171, 188, 192, 244, 276, 290, 302, 348, 349, 357, 360, 380},
    316             new short[]{4, 13, 36, 65, 75, 160, 165, 185, 198, 235, 293, 324, 327, 333, 345, 347, 375, 383},
    317             new short[]{37, 61, 80, 125, 234, 283, 290, 353, 359, 378, 383},
    318             new short[]{9, 32, 83, 110, 155, 248, 252, 288, 313},
    319             new short[]{37, 48, 52, 93, 167, 170, 179, 244, 267, 288, 296, 333, 335, 355, 374},
    320             new short[]{35, 92, 98, 153, 165, 184, 215, 233, 242, 290, 339, 355},
    321             new short[]{9, 38, 83, 121, 127, 165, 176, 235, 253, 305, 330, 337, 355, 358, 359},
    322             new short[]{35, 117, 122, 125, 132, 136, 183, 235, 254, 280, 285, 286, 329, 334, 338, 353, 372},
    323             new short[]{6, 87, 117, 125, 141, 144, 153, 157, 179, 215, 267, 272, 289, 329, 336, 359},
    324             new short[]{7, 14, 37, 82, 135, 147, 154, 202, 244, 290, 297, 298, 345, 355, 368, 383},
    325             new short[]{105, 135, 173, 244, 255, 280, 288, 299, 304, 307, 337, 338, 341, 344},
    326             new short[]{19, 31, 33, 77, 92, 99, 114, 151, 173, 202, 253, 318, 329, 333, 358, 371},
    327             new short[]{1, 8, 14, 30, 39, 120, 157, 172, 227, 229, 251, 257, 272, 339, 380},
    328             new short[]{19, 98, 171, 191, 213, 246, 289, 353, 357, 366, 374, 383},
    329             new short[]{8, 98, 125, 126, 144, 152, 244, 277, 282, 290, 322, 393},
    330             new short[]{17, 206, 211, 224, 336, 338, 386},
    331             new short[]{52, 55, 71, 99, 105, 191, 211, 215, 224, 246, 290, 300, 336, 339, 361},
    332             new short[]{15, 16, 44, 66, 96, 121, 127, 162, 167, 202, 219, 243, 244, 254, 282, 320, 345, 390},
    333             new short[]{7, 83, 92, 121, 130, 160, 177, 280, 308, 309, 339, 350, 352, 358, 380, 390},
    334             new short[]{67, 122, 144, 148, 170, 173, 184, 222, 280, 374},
    335             new short[]{2, 4, 15, 19, 115, 130, 136, 148, 172, 180, 243, 251, 313, 329, 333, 359, 364},
    336             new short[]{90, 98, 108, 124, 167, 176, 202, 254, 286, 351, 359},
    337             new short[]{80, 126, 135, 167, 212, 242, 243, 256, 283, 286, 295, 327, 337, 340, 346, 357, 358, 364},
    338             new short[]{19, 108, 125, 132, 149, 172, 180, 186, 200, 254, 286, 296, 339, 344, 350, 359, 391},
    339             new short[]{62, 65, 67, 105, 127, 129, 132, 250, 298, 307, 334, 344, 359, 383},
    340             new short[]{31, 59, 87, 107, 121, 131, 132, 160, 244, 246, 247, 253, 344, 360, 394},
    341             new short[]{4, 39, 76, 125, 130, 148, 168, 170, 191, 196, 298, 306, 327, 338, 345, 349, 360, 375},
    342             new short[]{13, 14, 32, 84, 98, 122, 126, 156, 188, 235, 255, 330, 336, 338, 375, 380, 389},
    343             new short[]{5, 18, 31, 54, 71, 74, 76, 81, 87, 93, 126, 129, 182, 303, 327, 353, 359, 373, 391},
    344             new short[]{13, 37, 64, 137, 138, 180, 244, 247, 251, 253, 269, 284, 308, 344, 374, 376},
    345             new short[]{5, 7, 10, 23, 35, 125, 168, 169, 187, 191, 192, 313, 337, 340, 342, 365},
    346             new short[]{62, 67, 122, 125, 165, 190, 217, 243, 254, 256, 265, 299, 318, 353, 394},
    347             new short[]{4, 24, 62, 92, 109, 118, 134, 143, 144, 176, 190, 199, 221, 299, 349, 380},
    348             new short[]{22, 35, 64, 74, 92, 113, 161, 172, 193, 282, 287, 307, 359, 393},
    349             new short[]{37, 50, 66, 75, 76, 78, 82, 87, 139, 159, 172, 176, 188, 231, 352, 371},
    350             new short[]{19, 31, 75, 121, 144, 152, 163, 171, 172, 198, 243, 246, 285, 288, 289, 333, 344, 347, 357, 398},
    351             new short[]{1, 15, 17, 51, 57, 65, 69, 127, 241, 244, 254, 259, 329, 336, 358},
    352             new short[]{9, 95, 117, 121, 125, 137, 204, 242, 247, 301, 309, 314, 334, 339, 350, 354, 358},
    353             new short[]{9, 61, 96, 111, 130, 163, 180, 211, 225, 226, 241, 253, 282, 283, 346, 355, 359, 380, 383},
    354             new short[]{94, 117, 121, 124, 126, 130, 135, 172, 199, 232, 286, 325, 336, 352, 362, 375},
    355             new short[]{110, 125, 163, 250, 265, 303, 329, 334, 391},
    356             new short[]{47, 72, 76, 111, 125, 157, 169, 245, 254, 285, 287, 297, 298, 336, 353, 359, 383},
    357             new short[]{62, 93, 115, 125, 127, 130, 174, 231, 308, 310, 329, 333, 355, 359, 390},
    358             new short[]{44, 116, 163, 167, 180, 191, 200, 245, 254, 329, 343, 345, 354, 364},
    359             new short[]{31, 62, 105, 108, 144, 145, 162, 173, 177, 191, 198, 247, 249, 344, 345, 348, 353},
    360             new short[]{29, 65, 66, 74, 83, 87, 125, 148, 165, 228, 334, 353, 359, 380, 383, 391},
    361             new short[]{2, 15, 125, 130, 239, 290, 312, 336, 337, 341, 398},
    362             new short[]{40, 76, 87, 114, 119, 120, 165, 229, 265, 313, 324, 349, 358, 383},
    363             new short[]{48, 62, 87, 91, 103, 186, 195, 212, 214, 315, 322, 327, 330, 338, 339},
    364             new short[]{9, 32, 85, 108, 135, 191, 224, 237, 257, 288, 307, 310, 313, 318, 329, 337, 352, 395},
    365             new short[]{87, 93, 102, 112, 129, 154, 171, 236, 317, 320, 349, 350, 359, 380},
    366             new short[]{1, 14, 92, 111, 137, 140, 186, 290, 329, 336, 354, 355, 378, 379, 383},
    367             new short[]{7, 26, 37, 47, 84, 101, 144, 153, 175, 180, 198, 232, 243, 305, 333, 353, 357, 383},
    368             new short[]{20, 58, 76, 93, 99, 127, 134, 154, 188, 206, 246, 312, 313, 324},
    369             new short[]{2, 12, 117, 125, 160, 167, 188, 206, 279, 285, 287, 301, 329, 332, 333, 336, 344, 362},
    370             new short[]{2, 76, 126, 127, 137, 165, 244, 288, 290, 339, 346, 351, 359, 365, 383},
    371             new short[]{66, 108, 136, 151, 174, 265, 344, 351, 353, 357, 378, 386},
    372             new short[]{8, 76, 87, 90, 111, 116, 124, 176, 198, 334, 337, 349, 359, 379, 394},
    373             new short[]{32, 36, 42, 76, 81, 125, 127, 205, 227, 262, 280, 288, 326, 336, 390, 398},
    374             new short[]{9, 32, 65, 83, 89, 93, 97, 122, 129, 178, 180, 215, 241, 246, 323, 332, 353, 362, 364, 380},
    375             new short[]{5, 24, 56, 127, 130, 155, 184, 191, 217, 235, 245, 339, 344, 358, 359, 362, 380},
    376             new short[]{14, 40, 64, 71, 93, 108, 131, 165, 188, 204, 217, 235, 237, 241, 248, 308, 309, 318, 380, 387},
    377             new short[]{17, 29, 34, 74, 125, 175, 184, 196, 211, 275, 301, 318, 327, 334, 349, 355, 358, 368},
    378             new short[]{15, 45, 110, 111, 116, 129, 132, 211, 247, 275, 286, 317, 333, 334, 377, 383},
    379             new short[]{4, 5, 59, 87, 103, 124, 125, 127, 130, 165, 241, 265, 299, 353, 360},
    380             new short[]{31, 120, 124, 135, 154, 197, 235, 243, 247, 248, 258, 309, 320, 335, 357},
    381             new short[]{50, 125, 127, 130, 137, 147, 171, 172, 267, 289, 301, 308, 325, 334, 337, 353, 360, 374, 391},
    382             new short[]{62, 64, 69, 87, 111, 118, 129, 134, 212, 239, 244, 246, 250, 254, 307, 322, 329, 370, 372},
    383             new short[]{54, 92, 128, 160, 198, 244, 248, 255, 284, 314, 335, 349, 358, 360, 376, 380},
    384             new short[]{9, 13, 29, 54, 72, 89, 110, 122, 126, 139, 158, 159, 163, 230, 304, 306, 313},
    385             new short[]{1, 9, 54, 95, 108, 132, 176, 193, 243, 251, 339, 378},
    386             new short[]{0, 96, 99, 135, 137, 184, 212, 232, 251, 315, 334},
    387             new short[]{140, 157, 165, 182, 235, 294, 314, 349, 354, 365},
    388             new short[]{14, 18, 31, 56, 117, 125, 138, 227, 246, 283, 334, 345, 352, 357, 361},
    389             new short[]{0, 71, 82, 130, 131, 144, 161, 235, 247, 301, 333, 335, 345, 353, 355, 359, 360, 374},
    390             new short[]{6, 23, 35, 117, 125, 141, 169, 200, 244, 288, 298, 338, 353, 379},
    391             new short[]{10, 98, 125, 127, 138, 153, 219, 244, 307, 350, 353, 366, 367},
    392             new short[]{9, 32, 40, 122, 126, 127, 170, 176, 300, 334, 350, 391},
    393             new short[]{6, 13, 31, 87, 89, 97, 125, 165, 171, 173, 176, 244, 331, 348, 373},
    394             new short[]{10, 61, 87, 105, 123, 125, 127, 195, 260, 265, 323, 361, 362},
    395             new short[]{2, 20, 90, 124, 353, 354, 378, 382},
    396             new short[]{5, 48, 58, 83, 98, 117, 125, 126, 196, 198},
    397             new short[]{13, 37, 50, 64, 66, 79, 99, 132, 135, 244, 247, 380},
    398             new short[]{57, 165, 235, 238, 248, 272, 287, 299, 327, 329, 334, 350, 353, 380},
    399             new short[]{55, 66, 118, 125, 130, 169, 250, 255, 271, 314, 324, 338, 353},
    400             new short[]{7, 31, 62, 84, 103, 105, 111, 126, 132, 149, 154, 191, 250, 334, 372, 375},
    401             new short[]{56, 81, 114, 117, 120, 124, 127, 128, 154, 254, 290, 317, 345, 354},
    402             new short[]{4, 13, 86, 101, 153, 191, 193, 231, 243, 258, 283, 288, 308, 353, 387, 392},
    403             new short[]{5, 37, 58, 62, 67, 84, 87, 176, 237, 267, 333, 334, 347},
    404             new short[]{1, 7, 74, 110, 165, 168, 182, 233, 288, 305, 309, 315, 347, 351, 353, 358, 360, 375},
    405             new short[]{57, 84, 129, 138, 165, 243, 244, 259, 280, 282, 290, 380, 383}
    406         };
    407     }
    408 }
    /**
    * 该类实现了取汉字文本首字母、文本对应拼音、以及
    * 获取和拼音对应的汉字列表等方法。由于汉字字库大,且多音字较多,因此本组中实现的
    * 拼音转换不一定和词语中的字的正确读音完全吻合。但绝大部分是正确的。
    *
    * 设计思路:
    * 将汉字按拼音分组后建立一个字符串数组(见PyCode.codes),然后使用程序
    * 将PyCode.codes中每一个汉字通过其编码值使用散列函数:
    *
    *     f(x) = x % PyCode.codes.Length
    *     g(f(x)) = pos(x)
    *
    * 其中, pos(x)为字符x所属字符串所在的PyCode.codes的数组下标, 然后散列到同PyCode.codes长度相同长度的一个散列表中PyHash.hashes。
    * 当检索一个汉字的拼音时,首先从PyHash.hashes中获取和对应的PyCode.codes中数组下标,然后从对应字符串查找,
    * 当到要查找的字符时,字符串的前6个字符即包含了该字的拼音。
    *
    * 此种方法的好处一是节约了存储空间,二是兼顾了查询效率。
    */
    
    /*
     * =================================================================
     * v1.2.x的变化
     * =================================================================
     * 1.增加重构单字符拼音的获取,未找到拼音时返回特定字符串
     * 2.加入标点符号,控制符,10进制数字,空格,小写字母,大写字母,特殊符号,分隔符的兼容
     *
     * =================================================================
     * v0.2.x的变化
     * =================================================================
     * 1、增加对不同编码格式文本的支持,同时增加编码转换方法Pinyin.ConvertEncoding
     * 2、重构单字符拼音的获取,未找到拼音时返回字符本身.
     */
    using System.Text;
    
    namespace Miraclesoft.Common.Utility.PinYin
    {
        /// <summary>
        /// Public PinYin API
        /// </summary>
        public static class PyTools
        {
            #region 取文本的拼音首字母
    
            /// <summary>
            /// 取中文文本的拼音首字母
            /// </summary>
            /// <param name="text">编码为UTF8的文本</param>
            /// <returns>返回中文对应的拼音首字母</returns>
            public static string GetInitials(string text)
            {
                text = text.Trim();
                var chars = new StringBuilder();
                foreach (var t in text)
                {
                    var py = GetPinYin(t);
                    if (py != "")
                        chars.Append(py[0].ToString().ToUpper());
                }
                return chars.ToString().ToUpper();
            }
    
            /// <summary>
            /// 取中文文本的拼音首字母
            /// </summary>
            /// <param name="text">编码为UTF8的文本</param>
            /// <param name="defaultstr">转换失败时返回的预设字符</param>
            /// <returns>返回中文对应的拼音首字母</returns>
            public static string GetInitials(string text, char defaultstr)
            {
                text = text.Trim();
                var chars = new StringBuilder();
                foreach (var t in text)
                {
                    var py = GetPinYin(t, defaultstr);
                    if (py != "")
                        chars.Append(py[0].ToString().ToUpper());
                    else
                        chars.Append(defaultstr);
                }
                return chars.ToString().ToUpper();
            }
    
            /// <summary>
            /// 取中文文本的拼音首字母
            /// </summary>
            /// <param name="text">文本</param>
            /// <param name="encoding">源文本的编码</param>
            /// <returns>返回Encoding编码类型中文对应的拼音首字母</returns>
            public static string GetInitials(string text, Encoding encoding) =>
                ConvertEncoding(GetInitials(ConvertEncoding(text, encoding, Encoding.UTF8)), Encoding.UTF8, encoding);
    
            /// <summary>
            /// 取中文文本的拼音首字母
            /// </summary>
            /// <param name="text">文本</param>
            /// <param name="defaultstr">转换失败后返回的预设字符</param>
            /// <param name="encoding">源文本的编码</param>
            /// <returns>返回Encoding编码类型中文对应的拼音首字母</returns>
            public static string GetInitials(string text, char defaultstr, Encoding encoding) =>
                ConvertEncoding(GetInitials(ConvertEncoding(text, encoding, Encoding.UTF8), defaultstr), Encoding.UTF8, encoding);
    
            #endregion
    
            #region 获取文本拼音
    
            /// <summary>
            /// 取中文文本的拼音
            /// </summary>
            /// <param name="text">编码为UTF8的文本</param>
            /// <returns>返回中文文本的拼音</returns>
            public static string GetPinYin(string text)
            {
                var sbPinyin = new StringBuilder();
                foreach (var t in text)
                {
                    var py = GetPinYin(t);
                    if (py != "")
                        sbPinyin.Append(py);
                }
                return sbPinyin.ToString().Trim();
            }
    
            /// <summary>
            /// 取中文文本的拼音
            /// </summary>
            /// <param name="text">编码为UTF8的文本</param>
            /// <param name="defaultstr">当获取拼音失败时返回预设字符</param>
            /// <returns>返回中文文本的拼音</returns>
            public static string GetPinYin(string text, char defaultstr)
            {
                var sbPinyin = new StringBuilder();
                foreach (var t in text)
                {
                    var py = GetPinYin(t, defaultstr);
                    if (py != "")
                        sbPinyin.Append(py);
                    else
                        sbPinyin.Append(defaultstr);
                }
                return sbPinyin.ToString().Trim();
            }
    
            /// <summary>
            /// 返回单个字符的汉字拼音
            /// </summary>
            /// <param name="ch">编码为UTF8的中文字符</param>
            /// <returns>ch对应的拼音</returns>
            public static string GetPinYin(char ch)
            {
                //是否是标点符号,控制符,10进制数字,空格,小写字母,大写字母,特殊符号,分隔符
                if (char.IsPunctuation(ch) | char.IsControl(ch) | char.IsDigit(ch) | char.IsWhiteSpace(ch) |
                    char.IsLower(ch) | char.IsUpper(ch) | char.IsSymbol(ch) | char.IsSeparator(ch))
                    return ch.ToString();
                var hash = GetHashIndex(ch);
                for (var i = 0; i < PyHash.Hashes[hash].Length; ++i)
                {
                    var index = PyHash.Hashes[hash][i];
                    var pos = PyCode.Codes[index].IndexOf(ch, 7);
                    if (pos != -1)
                        return PyCode.Codes[index].Substring(0, 6).Trim() + " ";
                }
                return ch.ToString();
            }
    
            /// <summary>
            /// 返回单个字符的汉字拼音
            /// </summary>
            /// <param name="ch">编码为UTF8的中文字符</param>
            /// <param name="defaultstr">转换失败后返回字符串</param>
            /// <returns>ch对应的拼音</returns>
            public static string GetPinYin(char ch, char defaultstr)
            {
                //是否是标点符号,控制符,10进制数字,空格,小写字母,大写字母,特殊符号,分隔符
                if (char.IsPunctuation(ch) | char.IsControl(ch) | char.IsDigit(ch) | char.IsWhiteSpace(ch) |
                    char.IsLower(ch) | char.IsUpper(ch) | char.IsSymbol(ch) | char.IsSeparator(ch))
                    return ch.ToString();
                var hash = GetHashIndex(ch);
                for (var i = 0; i < PyHash.Hashes[hash].Length; ++i)
                {
                    var index = PyHash.Hashes[hash][i];
                    var pos = PyCode.Codes[index].IndexOf(ch, 7);
                    if (pos != -1)
                        return PyCode.Codes[index].Substring(0, 6).Trim() + " ";
                }
                return defaultstr.ToString();
            }
    
            /// <summary>
            /// 取中文文本的拼音
            /// </summary>
            /// <param name="text">编码为UTF8的文本</param>
            /// <param name="encoding">源文本的编码</param>
            /// <returns>返回Encoding编码类型的中文文本的拼音</returns>
            public static string GetPinYin(string text, Encoding encoding) =>
                ConvertEncoding(GetPinYin(ConvertEncoding(text.Trim(), encoding, Encoding.UTF8)), Encoding.UTF8, encoding);
    
            /// <summary>
            /// 取中文文本的拼音
            /// </summary>
            /// <param name="text">编码为UTF8的文本</param>
            /// <param name="defaultstr">转换失败后返回的字符</param>
            /// <param name="encoding">源文本的编码</param>
            /// <returns>返回Encoding编码类型的中文文本的拼音</returns>
            public static string GetPinYin(string text, char defaultstr, Encoding encoding) =>
                ConvertEncoding(GetPinYin(ConvertEncoding(text.Trim(), encoding, Encoding.UTF8), defaultstr), Encoding.UTF8, encoding);
    
            /// <summary>
            /// 返回单个字符的汉字拼音
            /// </summary>
            /// <param name="ch">编码为Encoding的中文字符</param>
            /// <param name="encoding">源字符编码</param>
            /// <returns>编码为Encoding的ch对应的拼音</returns>
            public static string GetPinYin(char ch, Encoding encoding)
            {
                ch = ConvertEncoding(ch.ToString(), encoding, Encoding.UTF8)[0];
                return ConvertEncoding(GetPinYin(ch), Encoding.UTF8, encoding);
            }
    
            /// <summary>
            /// 返回单个字符的汉字拼音
            /// </summary>
            /// <param name="defaultstr">当转换失败后返回的字符</param>
            /// <param name="ch">编码为Encoding的中文字符</param>
            /// <param name="encoding">源字符编码</param>
            /// <returns>编码为Encoding的ch对应的拼音</returns>
            public static string GetPinYin(char ch, char defaultstr, Encoding encoding)
            {
                ch = ConvertEncoding(ch.ToString(), encoding, Encoding.UTF8)[0];
                return ConvertEncoding(GetPinYin(ch, defaultstr), Encoding.UTF8, encoding);
            }
    
            #endregion
    
            #region 根据拼音获取汉字列表
    
            /// <summary>
            /// 取和拼音相同的汉字列表
            /// </summary>
            /// <param name="pinyin">编码为UTF8的拼音</param>
            /// <returns>取拼音相同的汉字列表,如拼音“ai”将会返回“唉爱……”等</returns>
            public static string GetChineseText(string pinyin)
            {
                var key = pinyin.Trim().ToLower();
                foreach (var str in PyCode.Codes)
                {
                    if (str.StartsWith(key + " ") || str.StartsWith(key + ":"))
                        return str.Substring(7);
                }
                return "";
            }
    
            /// <summary>
            /// 取和拼音相同的汉字列表,编码同参数encoding
            /// </summary>
            /// <param name="pinyin">编码为encoding的拼音</param>
            /// <param name="encoding">编码</param>
            /// <returns>返回编码为encoding的拼音为pinyin的汉字列表,如拼音“ai”将会返回“唉爱……”等</returns>
            public static string GetChineseText(string pinyin, Encoding encoding) =>
                ConvertEncoding(GetChineseText(ConvertEncoding(pinyin, encoding, Encoding.UTF8)), Encoding.UTF8,
                    encoding);
    
            #endregion
    
            #region 转换文本字符集编码
    
            /// <summary>
            /// 转换编码
            /// </summary>
            /// <param name="text">文本</param>
            /// <param name="srcEncoding">源编码</param>
            /// <param name="dstEncoding">目标编码</param>
            /// <returns>目标编码文本</returns>
            public static string ConvertEncoding(string text, Encoding srcEncoding, Encoding dstEncoding) =>
                dstEncoding.GetString(Encoding.Convert(srcEncoding, dstEncoding, srcEncoding.GetBytes(text)));
    
            #endregion
    
            #region 获取文本索引
    
            /// <summary>
            /// 取文本索引值
            /// </summary>
            /// <param name="ch">字符</param>
            /// <returns>文本索引值</returns>
            private static short GetHashIndex(char ch) => (short)((uint)ch % PyCode.Codes.Length);
    
            #endregion
        }
    }

    接下来是使用方法,由于我测试代码是使用的.Net Standard库,测试项目使用的是.Net Core3.1 所以,这3个类所在的项目,需要引入System.Text.Encoding.CodePages Nuget包,并且在使用的项目中注册.

     1 using System;
     2 using System.Text;
     3 
     4 namespace Miraclesoft.Common.Test
     5 {
     6     class Program
     7     {
     8         static void Main(string[] args)
     9         {
    10             Test test = new Test();
    11 
    12             #region 拼音工具测试
    13             /**
    14              * 默认情况下.Net Core只支持28951,UTF-8,UTF-16,其他的编码格式均不支持.
    15              * 工具库已经引用了System.Text.Encoding.CodePages.dll
    16              * 在启动的时候,需要注册EncodingProvider,执行代码如下:
    17              * Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);
    18              */
    19             Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);
    20             test.PyToolsTest();
    21             #endregion
    22 
    23             try
    24             {
    25                 //使用VSCode调试代码的时候ReadKey会抛出异常
    26                 Console.ReadKey();
    27             }
    28             catch { }
    29         }
    30     }
    31 }
     1 using Miraclesoft.Common.Utility.PinYin;
     2 using System;
     3 using System.Text;
     4 using static System.Console;
     5 
     6 namespace Miraclesoft.Common.Test
     7 {
     8     /// <summary>
     9     /// 测试类
    10     /// </summary>
    11     public class Test
    12     {
    13         /// <summary>
    14         /// output text to console by color font,default red color.
    15         /// </summary>
    16         /// <param name="ex">异常对象</param>
    17         /// <param name="wrap">是否换行输出</param>
    18         public void WriteColorText(Exception ex, ConsoleColor color = ConsoleColor.Red, bool wrap = true)
    19         {
    20             ForegroundColor = color;
    21             if (wrap)
    22                 WriteLine(ex.ToString());
    23             else
    24                 Write(ex.ToString());
    25             ForegroundColor = ConsoleColor.White;
    26         }
    27         /// <summary>
    28         /// output text to console by color font,default red color.
    29         /// </summary>
    30         /// <param name="ex">字符串类型</param>
    31         /// <param name="wrap">是否换行输出</param>
    32         public void WriteColorText(string ex, ConsoleColor color = ConsoleColor.Red, bool wrap = true)
    33         {
    34             ForegroundColor = color;
    35             if (wrap)
    36                 WriteLine(ex);
    37             else
    38                 Write(ex);
    39             ForegroundColor = ConsoleColor.White;
    40         }
    41         /// <summary>
    42         /// PyToolsTest
    43         /// </summary>
    44         public void PyToolsTest()
    45         {
    46             WriteLine();
    47             WriteColorText("PyToolsTest", ConsoleColor.Green);
    48             WriteColorText("--------------------------------------------------------------------------------------------------------------------", ConsoleColor.Yellow);
    49             string[] maxims = { "事常与人违,123456789", @"骏马是跑出来的,?|!@$%^&*()_+=-,./';:{}[]<>", "深圳" };
    50             string[] medicines = { "聚维酮碘溶液", "开塞露", "输血记录", "深圳" };
    51             WriteLine("UTF8句子拼音:");
    52             foreach (var s in maxims)
    53             {
    54                 Write("汉字:");
    55                 WriteColorText($"{s}", ConsoleColor.DarkCyan, false);
    56                 Write("
    拼音:");
    57                 WriteColorText($"{PyTools.GetPinYin(s, '%')}
    ", ConsoleColor.Magenta);
    58             }
    59             var GBK = Encoding.GetEncoding("GBK");
    60             WriteLine("GBK拼音简码:");
    61             WriteColorText("不支持汉字使用自定义符号'%'替代测试:", ConsoleColor.DarkYellow);
    62             Write("錒:
    简码:");
    63             WriteColorText($"{PyTools.GetInitials("", '%', GBK)}
    ", ConsoleColor.Magenta);
    64             foreach (var m in medicines)
    65             {
    66                 Write("药品:");
    67                 WriteColorText($"{PyTools.ConvertEncoding(m, Encoding.UTF8, GBK)}
    ", ConsoleColor.Magenta, false);
    68                 Write("简码:");
    69                 WriteColorText($"{ PyTools.GetInitials(PyTools.ConvertEncoding(m, Encoding.UTF8, GBK), '?', GBK)}
    ", ConsoleColor.Magenta);
    70             }
    71             WriteColorText("--------------------------------------------------------------------------------------------------------------------", ConsoleColor.Yellow);
    72             WriteColorText("PyToolsTest Complete", ConsoleColor.Green);
    73             WriteLine();
    74         }   
    75     }
    76 }

    该方法虽然支持大量汉字,但是并不是所有汉字都支持,在使用的时候还是得看实际效果.

  • 相关阅读:
    工业4G DTU是什么和普通DTU有什么不同
    NB-IOT基站的优势和特点
    rs485通讯模块有什么作用
    串口服务器的具体做用
    4G DTU是什么 可以应用于哪些行业?
    关于linux文件出现属性显示?????????? ? ?问题的一些解决方法
    log4j.properties配置与将异常输出到Log日志文件实例
    将字符串向hdfs中写入,出现中文乱码!
    impala操作hase、hive
    Kudu基本操作及概念
  • 原文地址:https://www.cnblogs.com/dygood/p/12015120.html
Copyright © 2020-2023  润新知