您现在的位置: 魅力都匀 >> 电脑教程 >> C#学习笔记 >> 正文
C#中获取汉字的拼音类完整代码
作者:蔡老师  文章来源:本站原创 点击数: 更新时间:2008-6-10 【字体:
               int n = (int)asciiBytes[0] << 8;
                n += (int)asciiBytes[1];

                // 根据汉字区域码获取拼音声母
                if (In(0xB0A1, 0xB0C4, n)) return 'a';
                if (In(0xB0C5, 0xB2C0, n)) return 'b';
                if (In(0xB2C1, 0xB4ED, n)) return 'c';
                if (In(0xB4EE, 0xB6E9, n)) return 'd';
                if (In(0xB6EA, 0xB7A1, n)) return 'e';
                if (In(0xB7A2, 0xB8c0, n)) return 'f';
                if (In(0xB8C1, 0xB9FD, n)) return 'g';
                if (In(0xB9FE, 0xBBF6, n)) return 'h';
                if (In(0xBBF7, 0xBFA5, n)) return 'j';
                if (In(0xBFA6, 0xC0AB, n)) return 'k';
                if (In(0xC0AC, 0xC2E7, n)) return 'l';
                if (In(0xC2E8, 0xC4C2, n)) return 'm';
                if (In(0xC4C3, 0xC5B5, n)) return 'n';
                if (In(0xC5B6, 0xC5BD, n)) return 'o';
                if (In(0xC5BE, 0xC6D9, n)) return 'p';
                if (In(0xC6DA, 0xC8BA, n)) return 'q';
                if (In(0xC8BB, 0xC8F5, n)) return 'r';
                if (In(0xC8F6, 0xCBF0, n)) return 's';
                if (In(0xCBFA, 0xCDD9, n)) return 't';
                if (In(0xCDDA, 0xCEF3, n)) return 'w';

上一页  [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] 下一页

关于〖C#中获取汉字的拼音类完整代码〗的最新评论:
| 设为首页 | 加入收藏 | 联系站长 | 友情链接 | 版权申明 |
黔ICP备06001794号