返回字串的拼音首字母
来源:互联网 发布:软件如何注册 编辑:程序博客网 时间:2024/06/10 01:42
<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 728x15, 创建于 08-4-23MSDN */google_ad_slot = "3624277373";google_ad_width = 728;google_ad_height = 15;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
//////////////////////////////////////////////////////////////
file://函数名:gf_getfirstletter(string)
file://功能:返回字串的拼音首字母,支持混合字符串(可以包含非汉字)
file://参数:as_inputstring
file://返回值:string
file://created大同张和平dtzhp@yeah.net
//////////////////////////////////////////////////////////////
longi
stringls_ch,ls_returnStr
Fori=1toLen(as_InputString) file://依次处理as_InputString中每个字符
ls_ch=Mid(as_InputString,i,1)
Ifls_ch<"啊" then // 非汉字
ls_returnStr=ls_returnStr+ls_ch // 不变
Elseif ls_ch>="啊"andls_ch<="座" then file://处理一级汉字
CHOOSECASEls_ch
CASEis>='匝'
ls_returnStr+="z"
CASEis>='压'
ls_returnStr+="y"
CASEis>='昔'
ls_returnStr+="x"
CASEis>='挖'
ls_returnStr+="w"
CASEis>='塌'
ls_returnStr+="t"
CASEis>='撒'
ls_returnStr+="s"
CASEis>='然'
ls_returnStr+="r"
CASEis>='期'
ls_returnStr+="q"
CASEis>='啪'
ls_returnStr+="p"
CASEis>='哦'
ls_returnStr+="o"
CASEis>='拿'
ls_returnStr+="n"
CASEis>='妈'
ls_returnStr+="m"
CASEis>='垃'
ls_returnStr+="l"
CASEis>='喀'
ls_returnStr+="k"
CASEis>='击'
ls_returnStr+="j"
CASEis>='哈'
ls_returnStr+="h"共2页 1 <script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 728x15, 创建于 08-4-23MSDN */google_ad_slot = "3624277373";google_ad_width = 728;google_ad_height = 15;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 160x600, 创建于 08-4-23MSDN */google_ad_slot = "4367022601";google_ad_width = 160;google_ad_height = 600;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
//////////////////////////////////////////////////////////////
file://函数名:gf_getfirstletter(string)
file://功能:返回字串的拼音首字母,支持混合字符串(可以包含非汉字)
file://参数:as_inputstring
file://返回值:string
file://created大同张和平dtzhp@yeah.net
//////////////////////////////////////////////////////////////
longi
stringls_ch,ls_returnStr
Fori=1toLen(as_InputString) file://依次处理as_InputString中每个字符
ls_ch=Mid(as_InputString,i,1)
Ifls_ch<"啊" then // 非汉字
ls_returnStr=ls_returnStr+ls_ch // 不变
Elseif ls_ch>="啊"andls_ch<="座" then file://处理一级汉字
CHOOSECASEls_ch
CASEis>='匝'
ls_returnStr+="z"
CASEis>='压'
ls_returnStr+="y"
CASEis>='昔'
ls_returnStr+="x"
CASEis>='挖'
ls_returnStr+="w"
CASEis>='塌'
ls_returnStr+="t"
CASEis>='撒'
ls_returnStr+="s"
CASEis>='然'
ls_returnStr+="r"
CASEis>='期'
ls_returnStr+="q"
CASEis>='啪'
ls_returnStr+="p"
CASEis>='哦'
ls_returnStr+="o"
CASEis>='拿'
ls_returnStr+="n"
CASEis>='妈'
ls_returnStr+="m"
CASEis>='垃'
ls_returnStr+="l"
CASEis>='喀'
ls_returnStr+="k"
CASEis>='击'
ls_returnStr+="j"
CASEis>='哈'
ls_returnStr+="h"共2页 1 <script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 728x15, 创建于 08-4-23MSDN */google_ad_slot = "3624277373";google_ad_width = 728;google_ad_height = 15;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 160x600, 创建于 08-4-23MSDN */google_ad_slot = "4367022601";google_ad_width = 160;google_ad_height = 600;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
- 返回字串的拼音首字母
- 返回字串的拼音首字母
- ios-返回汉子拼音首字母
- 获取拼音首字母(传入汉字字符串, 返回大写拼音首字母)
- 汉字的拼音首字母
- SQL语句提取出中文的拼音首字母 sql 语句返回中文姓名的首字母缩写
- IOS开发把汉字转换成拼音的两种方法和返回拼音首字母
- 中文字 变 拼音,返回首字母
- SQL函数返回汉字拼音首字母
- oracle返回中文拼音首字母方法
- asp.net汉字转拼音 可返回拼音首字母
- 获取汉语字串的拼音
- 得到汉字的拼音首字母
- 取汉字的拼音首字母
- 获取汉字的拼音首字母
- 获取汉字的拼音首字母
- 获取汉字的拼音首字母
- 获取汉字的拼音首字母
- Winsock I/O系列3: Overlapped I/O
- 分布式软件设计之DECORATOR模式(一)
- 创建新
- 基于IMD的包过滤防火墙原理与实现
- 使用truss、strace或ltrace诊断软件的"疑难杂症"[转载]
- 返回字串的拼音首字母
- 获得当前进程所有者的信息
- TIMESTAMP列类型详解(怎样设列的默认值为Now())
- Direct3D极速入门宝典(一)
- 程序员必须走向专业化
- 参数传递的几种用法。
- Direct3D极速入门宝典(三)
- 多个DW同时更新,且表中有关系存在,需要注意的击点问题。
- [窗口重绘技术--虚拟窗口实现法]