C#:实现字数统计函数算法 public static string GetContentLengthString(string text, out bool isOutOfRange) { text = text.