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

◆ TrimWhiteSpaceHelper()

string System.String.TrimWhiteSpaceHelper ( TrimType trimType)
inlineprivate

Definition at line 3132 of file String.cs.

3133 {
3134 int num = Length - 1;
3135 int i = 0;
3136 if ((trimType & TrimType.Head) != 0)
3137 {
3138 for (i = 0; i < Length && char.IsWhiteSpace(this[i]); i++)
3139 {
3140 }
3141 }
3142 if ((trimType & TrimType.Tail) != 0)
3143 {
3144 num = Length - 1;
3145 while (num >= i && char.IsWhiteSpace(this[num]))
3146 {
3147 num--;
3148 }
3149 }
3150 return CreateTrimmedString(i, num);
3151 }
string CreateTrimmedString(int start, int end)
Definition String.cs:3190

References System.String.CreateTrimmedString(), and System.String.Length.

Referenced by System.String.Trim(), System.String.Trim(), System.String.TrimEnd(), System.String.TrimEnd(), System.String.TrimStart(), and System.String.TrimStart().