String Normalize(XPathReader reader) { String str1; if (this.argList != null && this.argList.Count > 0) { str1 = ((IQuery)this.argList[0]).GetValue(reader).ToString().Trim(); } else { str1 = String.Empty; } int count = 0; StringBuilder str2 = new StringBuilder();; bool FirstSpace = true; while (count < str1.Length) { if (!XmlCharType.IsWhiteSpace(str1[count])) { FirstSpace = true; str2.Append(str1[count]); } else if (FirstSpace) { FirstSpace = false; str2.Append(str1[count]); } count++; } return(str2.ToString()); }
void SkipSpace() { while (XmlCharType.IsWhiteSpace(this.CurerntChar) && NextChar()) { ; } }