• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
雄关漫道真如铁,而今迈步从头越。
博客园 首页 新随笔 联系 订阅 订阅 管理

2011年2月24日

汉字转拼音缩写(VB版)
摘要: VB代码:'------------------------'汉字转拼音缩写'------------------------Public Function GetPYSX(Str As String) As StringOn Error GoTo PROC_ERROR Dim i As Long For i = 0 To Len(Str) - 1 GetPYSX = GetPYSX & GetPYSXChar(Mid(Str, i + 1, 1)) Next PROC_ERROR: Exit FunctionEnd FunctionPublic Functio 阅读全文
posted @ 2011-02-24 17:11 lauer 阅读(616) 评论(0) 推荐(0)
 
汉字转拼音缩写(C#版)
摘要: C#代码:/// <summary> /// 汉字转拼音缩写 /// Code By MuseStudio@hotmail.com /// 2004-11-30 /// </summary> /// <param name="str">要转换的汉字字符串</param> /// <returns>拼音缩写</returns> public string GetPYString(string str) { string tempStr = ""; foreach(char c in s 阅读全文
posted @ 2011-02-24 17:11 lauer 阅读(493) 评论(0) 推荐(0)
 
汉字转拼音(C#版)
摘要: C#代码:using System;using System.Collections.Generic;using System.Text;using System.Text.RegularExpressions;using System.Web;namespace CrazyCoder.Common{/// <summary> /// 汉字转拼音类 /// by http://www.crazycoder.cn /// build Date 20030610 /// </summary> public class CrazyCoderPinyin { /// <s 阅读全文
posted @ 2011-02-24 17:09 lauer 阅读(486) 评论(0) 推荐(0)
 
汉字转拼音(VB版)
摘要: VB代码:'---------------------------'汉字转拼音'---------------------------Public Function GetPY(Str As String) As StringOn Error GoTo PROC_ERROR Dim i As Long For i = 0 To Len(Str) - 1 GetPY = GetPY & GetPYChar(Mid(Str, i + 1, 1)) Next PROC_ERROR: Exit FunctionEnd FunctionPublic Function Ge 阅读全文
posted @ 2011-02-24 17:07 lauer 阅读(4692) 评论(1) 推荐(0)
 
 

公告


博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3