[csharp]
#region ### 得到首字母 方案2
///
/// 漢字轉拼音縮寫
/// code by musestudio@hotmail.com
/// 2004-11-30
///
/// 要轉換的漢字字串
/// 拼音縮寫
public static string getpystring(string str)
else
} return tempstr;
} ///
/// 取單個字元的拼音聲母
/// code by musestudio@hotmail.com
/// 2004-11-30
///
/// 要轉換的單個漢字
/// 拼音聲母
public static string getpychar(string c)
#endregion
#region ### 得到首字母 方案2
///
/// 漢字轉拼音縮寫
/// code by musestudio@hotmail.com
/// 2004-11-30
///
/// 要轉換的漢字字串
/// 拼音縮寫
public static string getpystring(string str)
else
}return tempstr;
}///
/// 取單個字元的拼音聲母
/// code by musestudio@hotmail.com
/// 2004-11-30
///
/// 要轉換的單個漢字
/// 拼音聲母
public static string getpychar(string c)
#endregion呼叫 方法:
string ss2 = common.getpystring("我a*%愛你中國"); //wa*%anzg
首字母大寫
對乙個字串中的所有單詞,如果單詞的首字母不是大寫字母,則把單詞的首字母變成大寫字母。在字串中,單詞之間通過空白符分隔,空白符包括 空格 製表符 t 回車符 r 換行符 n 輸入一行 待處理的字串 長度小於100 可能有多組測試資料,對於每組資料,輸出一行 轉換後的字串 輸入可以接受空格,回車等空白符...
sql實現取漢字大寫首字母
create function dbo f getpy str nvarchar 4000 returns nvarchar 4000 as begin declare pytable ch char 1 hz1 nchar 1 collate chinese prc cs as ks ws,hz2...
string首字母大寫
定義函式將字串首字母大寫 例1 study hard,improve every day.def tojadencase string return string.title print tojadencase study hard,improve every day.例2 how can mirr...