vc中实现获取汉字拼音的首字母
在vc中实现获取汉字拼音的首字母 默认分类 2009-03-02 23:15:12 阅读192 评论0 字号:大中小 订阅
Author: lixiaosan
Date: 05/26/2006
/******************************************************************************************** /* Syntax
/* GetFirstLetter(CString strName, CString& strFirstLetter)
/* Remarks:
/* Get the first letter of pinyin according to specified Chinese character. /* Parameters:
/* strName - a CString object that is to be parsed.
/* strFirstLetter - a CString object that is to receive the string of the first letter. /* Return Values:
/* None.
/* Author:
/* lixiaosan
/* Create Date:
/* 05-26-2006
/******************************************************************************************** void GetFirstLetter(CString strName, CString& strFirstLetter)
{
TBYTE ucHigh, ucLow;
int nCode;
CString strRet;
strFirstLetter.Empty();
for (int i=0; i<strName.GetLength(); i++)
{
if ( (TBYTE)strName[i] < 0x80 )
continue;
ucHigh = (TBYTE)strName[i];
ucLow = (TBYTE)strName[i+1];
if ( ucHigh < 0xa1 || ucLow < 0xa1)
continue;
else
// Treat code by section-position as an int type parameter,
// so make following change to nCode.
nCode = (ucHigh - 0xa0) * 100 + ucLow - 0xa0;
FirstLetter(nCode, strRet);
在vc中实现获取汉字拼音的首字母_信息与通信_工程科技_专业资料。在vc中实现获取汉字拼音的首字母百度空间
本文首先介绍了两种获取汉字拼音首字母的方法,然后以查...
在vc中实现获取汉字拼音... 7页 1下载券 C#、SQL获取汉字的拼音首... 15.../// /// 获取汉字的首字母拼音 /// /// /// <returns></returns>...
excel中如何实现提取汉字的拼音首字母?_计算机软件及应用_IT/计算机_专业资料。excel 中如何实现提取汉字的拼音首字母? A1:小燕子耳坠子 7.8 需要返回:xyzez78...
excel中实现提取汉字的拼音首字母_计算机软件及应用_IT/计算机_专业资料。在 EXECL 中 ,按 ALT+F11,插入---模块 复制下列代码 : Function hztopy(hzpy As ...
汉字,首字母 from 拼音首字母"; string strWhere=" where 汉字='"+strName[0... 在vc中实现获取汉字拼音... 7页 1下载券 C#、SQL获取汉字的拼音首... 15...
获取汉字串中各字的拼音首字母_IT/计算机_专业资料。介绍了自行开发的获取汉字字符串拼音首字母串的函数,并将该函数运用于具体实例的查询系统中。...
java获取汉字拼音或拼音首字母_计算机软件及应用_IT/计算机_专业资料。Java ... 获取汉字拼音的首字母 2页 4下载券 vc中实现获取汉字拼音的... 5页 1下载...
Excel宏获取汉字拼音首字母在任务驱动教学法中的经验谈_教育学_高等教育_教育专区 暂无评价
C#、SQL获取汉字的拼音首字母_计算机软件及应用_IT/计算机_专业资料。C#、SQL获取汉字的拼音首字母,分享给有需要的人C#获取汉字的拼音首字母 //用来获得一个字...
热门文档