Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ StripWhitespace()

static string System.Xml.XmlConverter.StripWhitespace ( string s)
inlinestatic

Definition at line 1283 of file XmlConverter.cs.

1284 {
1285 int num = s.Length;
1286 for (int i = 0; i < s.Length; i++)
1287 {
1288 if (IsWhitespace(s[i]))
1289 {
1290 num--;
1291 }
1292 }
1293 if (num == s.Length)
1294 {
1295 return s;
1296 }
1297 return string.Create(num, s, delegate(Span<char> chars, string s)
1298 {
1299 int num2 = 0;
1300 foreach (char c in s)
1301 {
1302 if (!IsWhitespace(c))
1303 {
1304 chars[num2++] = c;
1305 }
1306 }
1307 });
1308 }
static bool IsWhitespace(string s)

References System.chars, System.Xml.Dictionary, System.Xml.XmlConverter.IsWhitespace(), and System.s.

Referenced by System.Xml.ValueHandle.ToByteArray().