Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
◆
TrimEnd()
[5/6]
static
ReadOnlySpan
< char > System.MemoryExtensions.TrimEnd
(
this
ReadOnlySpan
< char >
span
,
ReadOnlySpan
< char >
trimChars
)
inline
static
Definition at line
2066
of file
MemoryExtensions.cs
.
2067
{
2068
if
(
trimChars
.IsEmpty)
2069
{
2070
return
span
.TrimEnd();
2071
}
2072
int
num;
2073
for
(num =
span
.Length - 1; num >= 0; num--)
2074
{
2075
int
num2
= 0;
2076
while
(
num2
<
trimChars
.Length)
2077
{
2078
if
(
span
[num] !=
trimChars
[
num2
])
2079
{
2080
num2
++;
2081
continue
;
2082
}
2083
goto
IL_0044
;
2084
}
2085
break
;
2086
IL_0044
:;
2087
}
2088
return
span
.Slice(0, num + 1);
2089
}
System.Collections.Generic.Dictionary
Definition
Dictionary.cs:14
System
MemoryExtensions
Generated by
1.10.0