charset=$charset; $this->returnType=$returnType; $this->delimiter=$delimiter; $this->pinyinTable=$this->_PinYinTable(); } public function ToPinYin(...
分类:
Web程序 时间:
2015-01-26 13:15:39
阅读次数:
250
160) { $_Q = ord(substr($_String, ++$i, 1)); $_P = $_P*256 + $_Q - 65536; } $_Res ....
分类:
Web程序 时间:
2014-12-18 16:35:26
阅读次数:
276
获取中文首字母 create?function?f_GetPinYin(@str?varchar(500))?
returns?varchar(500)?
as??
begin?
???declare?@cyc?int,@length?int,@str1?varchar(100),@charcate?varbinary(20)?
???...
分类:
数据库 时间:
2014-10-27 17:50:54
阅读次数:
446
private static const PinYin:Object = {"a":"\u554a\u963f\u9515","ai":"\u57c3\u6328\u54ce\u5509\u54c0\u7691\u764c\u853c\u77ee\u827e\u788d\u7231\u9698\u8...
分类:
其他好文 时间:
2014-08-05 14:01:39
阅读次数:
1036
优化了传统的拼音转换处理类的算法,专门针对UTF-8字符集进行处理。
如果你使用GBK或GB2312字符集,只需要去掉iconv函数,直接赋值,不需要转换就行。...
分类:
Web程序 时间:
2014-07-16 17:32:42
阅读次数:
314
一、简单介绍
有时候,需要将汉字编程对应的拼音,以方便数据的处理。比如在Android手机应用的开发上,要查询联系人的姓名,通常都是用拼音进行查询的。
比如要查询“曹孟德”,就可以输入“cmd”,即“曹孟德”三个汉字的拼音“caomengde”各字的首字母。但是怎样才能将“曹孟德”翻译成“caomengde”呢?
很简单的办法就是建立一个大的对照表(比如用关联容器Map),比如,,…但这样的...
分类:
编程语言 时间:
2014-06-24 15:38:22
阅读次数:
252
using System;using System.Collections.Generic;using
System.Linq;using System.Text;namespace SU{ /// /// 中文转拼音 /// public class
PinYin ...
分类:
其他好文 时间:
2014-05-23 06:46:51
阅读次数:
395