Exemple #1
0
        /// <summary>
        /// 转成繁体
        /// </summary>
        /// <param name="strSource"></param>
        /// <returns></returns>
        public static string ToTraditional(string strSource)
        {
            string lpDestStr = new string(' ', strSource.Length);

            LCMapString(0x800, 0x4000000, strSource, strSource.Length, lpDestStr, strSource.Length);

            //扩展的转换
            lpDestStr = ConvertST.ToTraditional(lpDestStr);

            return(lpDestStr);
        }
Exemple #2
0
        /// <summary>
        /// 转成简体
        /// </summary>
        /// <param name="strSource"></param>
        /// <returns></returns>
        public static string ToSimplified(string strSource)
        {
            string lpDestStr = new string(' ', strSource.Length);

            LCMapString(0x800, 0x2000000, strSource, strSource.Length, lpDestStr, strSource.Length);

            //扩展的转换
            lpDestStr = ConvertST.ToSimplified(lpDestStr);

            return(lpDestStr);
        }