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

◆ Trim()

static string System.Xml.XmlConverter.Trim ( string s)
inlinestaticprivate

Definition at line 1310 of file XmlConverter.cs.

1311 {
1312 int i;
1313 for (i = 0; i < s.Length && IsWhitespace(s[i]); i++)
1314 {
1315 }
1316 int num = s.Length;
1317 while (num > 0 && IsWhitespace(s[num - 1]))
1318 {
1319 num--;
1320 }
1321 if (i == 0 && num == s.Length)
1322 {
1323 return s;
1324 }
1325 if (num == 0)
1326 {
1327 return string.Empty;
1328 }
1329 return s.Substring(i, num - i);
1330 }
static bool IsWhitespace(string s)

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

Referenced by System.Xml.XmlConverter.ToGuid(), System.Xml.XmlConverter.ToQualifiedName(), and System.Xml.XmlConverter.ToUniqueId().