C#字符串内多个空格合并成1个
摘要:public static string CombineInsideSpaces(string orinStr) { List<int> poses = new List<int>(); for (int i = 0; i <= orinStr.Length - 1; i++) {//获取所有空格位置 if (orinStr[i] == ' ') { poses.Add(i); } } ...
阅读全文
posted @ 2012-11-22 09:44
浙公网安备 33010602011771号