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

◆ AppendTrimmed()

static void System.Xml.Xsl.XPath.XPathCompileException.AppendTrimmed ( StringBuilder sb,
string value,
int startIndex,
int count,
TrimType trimType )
inlinestaticprivate

Definition at line 51 of file XPathCompileException.cs.

52 {
53 if (count <= 32)
54 {
56 return;
57 }
58 switch (trimType)
59 {
60 case TrimType.Left:
61 sb.Append("...");
62 sb.Append(value, startIndex + count - 32, 32);
63 break;
64 case TrimType.Right:
65 sb.Append(value, startIndex, 32);
66 sb.Append("...");
67 break;
68 case TrimType.Middle:
69 sb.Append(value, startIndex, 16);
70 sb.Append("...");
71 sb.Append(value, startIndex + count - 16, 16);
72 break;
73 }
74 }
StringBuilder Append(char value, int repeatCount)

References System.Text.StringBuilder.Append(), System.count, System.Xml.Dictionary, System.startIndex, and System.value.

Referenced by System.Xml.Xsl.XPath.XPathCompileException.MarkOutError().