资源简介
中国--》Zhongguo
直接调用改类的静态方法+ (NSString *) pinyinFromChiniseString:(NSString *)string;
代码片段和文件信息
#import “ChineseToPinyin.h“
NSString *FindLetter(int nCode) {
NSString *strValue = @““;
switch(nCode) {
case 6325:
case 6436:
case 7571:
case 7925:
strValue = @“A“;
break;
case 6263:
case 6440:
case 7040:
case 7208:
case 7451:
case 7733:
case 7945:
case 8616:
strValue = @“AI“;
break;
case 5847:
case 5991:
case 6278:
case 6577:
case 6654:
case 7281:
case 7907:
case 8038:
case 8786:
strValue = @“AN“;
break;
strValue = @“ANG“;
break;
case 5974:
case 6254:
case 6427:
case 6514:
case 6658:
case 6959:
case 7033:
case 7081:
case 7365:
case 8190:
case 8292:
case 8643:
case 8701:
case 8773:
strValue = @“AO“;
break;
case 6056:
case 6135:
case 6517:
case 7857:
case 8446:
case 8649:
case 8741:
strValue = @“BA“;
break;
case 6267:
case 6334:
case 7494:
strValue = @“BAI“;
break;
case 5870:
case 5964:
case 7851:
case 8103:
case 8113:
case 8418:
strValue = @“BAN“;
break;
case 6182:
case 6826:
strValue = @“BANG“;
break;
case 6165:
case 7063:
case 7650:
case 8017:
case 8157:
case 8532:
case 8621:
strValue = @“BAO“;
break;
case 5635:
case 5873:
case 5893:
case 5993:
case 6141:
case 6703:
case 7753:
case 8039:
case 8156:
case 8645:
case 8725:
strValue = @“BEI“;
break;
case 5946:
case 5948:
case 7458:
case 7928:
strValue = @“BEN“;
break;
case 6452:
case 7420:
strValue = @“BENG“;
break;
case 5616:
case 5734:
case 6074:
case 6109:
case 6221:
case 6333:
case 6357:
case 6589:
case 6656:
case 6725:
case 6868:
case 6908:
case 6986:
case 6994:
case 7030:
case 7052:
case 7221:
case 7815:
case 7873:
case 7985:
case 8152:
case 8357:
case 8375:
case 8387:
case 8416:
case 8437:
case 8547:
case 8734:
strValue = @“BI“;
break;
case 5650:
case 5945:
case 6048:
case 6677:
case 6774:
case 7134:
case 7614:
case 7652:
case 7730:
case 7760:
case 8125:
case 8159:
case 8289:
case 8354:
case 8693:
strValue = @“BIAN“;
break;
case 7027:
case 7084:
case 7609:
case 7613:
case 7958:
case 7980:
case 8106:
case 8149:
case 8707:
case 8752:
strValue = @“BIAO“;
break;
case 8531:
strValue = @“BIE“;
break;
case 5747:
case 6557:
case 7145:
case 7167:
case 7336:
case 7375:
case 7587:
case 7957:
case 8738:
case 8762:
strValue = @“BIN“;
break;
case 5787:
case 5891:
case 6280:
strValue = @“BING“;
break;
case 5781:
case 6403:
case 6636:
case 7362:
case 7502:
case 7771:
case 7864:
case 8030:
case 8404:
case 8543:
case 8559:
strValue = @“BO“;
break;
case 6318:
case 6945:
case 7419:
case 7446:
case 7848:
case 7863:
case 8519:
strValue = @“BU“;
break;
case 6474:
case 7769:
strValue = @“CA“;
break;
strValue = @“CAI“;
break;
case 6978:
case 7078:
ca
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2014-09-03 09:58 ChineseToPinyin\
文件 241 2014-09-03 09:18 ChineseToPinyin\ChineseToPinyin.h
目录 0 2014-09-28 13:04 __MACOSX\
目录 0 2014-09-28 13:04 __MACOSX\ChineseToPinyin\
文件 171 2014-09-03 09:18 __MACOSX\ChineseToPinyin\._ChineseToPinyin.h
文件 106007 2014-09-03 09:58 ChineseToPinyin\ChineseToPinyin.m
文件 171 2014-09-03 09:58 __MACOSX\ChineseToPinyin\._ChineseToPinyin.m
评论
共有 条评论