摘要: 1 /// 2 /// 截断字符串 3 /// 4 /// 最大长度 5 /// 原字符串 6 /// 7 public static string CutStr(int maxLength, string str) 8 { 9 string temp = str;10 if (Regex.Replace(temp, "[\u4e00-\u9fa5]", "zz", RegexOptions.IgnoreCase).Length... 阅读全文
posted @ 2013-09-10 13:52 Lyghost 阅读(579) 评论(0) 推荐(0) 编辑