注:如果是多音字,则默认取第一个拼音。using System;using System.Collections.Generic;using System.Text;using Microsoft.International.Converters.PinYinConverter;namespace ...
分类:
Web程序 时间:
2014-07-16 23:15:34
阅读次数:
222
create function fun_getPY ( @str nvarchar(4000) )returns nvarchar(4000)asbegin declare @word nchar(1),@PY nvarchar(4000) set @PY='' while len(@...
分类:
数据库 时间:
2014-06-28 12:58:14
阅读次数:
225
1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 6 namespace Common 7 { 8 //Author:GaoBin...
分类:
其他好文 时间:
2014-06-27 20:20:08
阅读次数:
362
汉字转拼音的库主要是:pinyin https://github.com/hotoo/pinyinPYMethod https://github.com/a85816841/PotentialGragonSnail/tree/master/ql/lib/pinyingPOAPinyin h...
分类:
移动开发 时间:
2014-06-27 13:31:58
阅读次数:
232
一、简单介绍
有时候,需要将汉字编程对应的拼音,以方便数据的处理。比如在Android手机应用的开发上,要查询联系人的姓名,通常都是用拼音进行查询的。
比如要查询“曹孟德”,就可以输入“cmd”,即“曹孟德”三个汉字的拼音“caomengde”各字的首字母。但是怎样才能将“曹孟德”翻译成“caomengde”呢?
很简单的办法就是建立一个大的对照表(比如用关联容器Map),比如,,…但这样的...
分类:
编程语言 时间:
2014-06-24 15:38:22
阅读次数:
252
delphi汉字转拼音 2009-09-21 10:44:59| 分类: 计算机知识 |举报 |字号 订阅unit Unit1;interfaceuses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, F...
分类:
其他好文 时间:
2014-06-21 15:58:46
阅读次数:
494
pinyin4j是一个支持将简体和繁体中文转换到成拼音的Java开源类库,作者是Li Min (xmlerlimin@gmail.com)。以下是一些具体的介绍和使用方式。1.pinyin4j的官方下载地址http://sourceforge.net/projects/pinyin4j/files/...
分类:
编程语言 时间:
2014-06-15 21:13:15
阅读次数:
290
前段时间公司人员反应OA里的汉字拼音首字母不准他们又要用,没办法自己就从网上搜有没有好的,看了很多都是首字母拼不出来或有些字母变为另一个,但最后找了很多还是有一个好用的,暂未发现有不准的。using System;using System.Collections.Generic;using Syst...
分类:
Web程序 时间:
2014-06-15 12:58:41
阅读次数:
214
汉字转拼音using System;using System.Data;using
System.Configuration;using System.Text;/// /// Summary description for
ConvertHzToPz_Gb2312/// namespace Com...
分类:
其他好文 时间:
2014-06-11 22:21:09
阅读次数:
1678
using System;using System.Collections.Generic;using
System.Linq;using System.Text;namespace SU{ /// /// 中文转拼音 /// public class
PinYin ...
分类:
其他好文 时间:
2014-05-23 06:46:51
阅读次数:
395