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

◆ UnescapeString() [1/5]

static unsafe char[] System.UriHelper.UnescapeString ( char * pStr,
int start,
int end,
char[] dest,
ref int destPosition,
char rsvd1,
char rsvd2,
char rsvd3,
UnescapeMode unescapeMode,
UriParser syntax,
bool isQuery )
inlinestaticpackage

Definition at line 253 of file UriHelper.cs.

254 {
256 dest2.Append(dest.AsSpan(0, destPosition));
257 UnescapeString(pStr, start, end, ref dest2, rsvd1, rsvd2, rsvd3, unescapeMode, syntax, isQuery);
258 if (dest2.Length > dest.Length)
259 {
260 dest = dest2.AsSpan().ToArray();
261 }
262 else
263 {
264 dest2.AsSpan(destPosition).TryCopyTo(dest.AsSpan(destPosition));
265 }
266 destPosition = dest2.Length;
267 dest2.Dispose();
268 return dest;
269 }
static unsafe char[] UnescapeString(string input, int start, int end, char[] dest, ref int destPosition, char rsvd1, char rsvd2, char rsvd3, UnescapeMode unescapeMode, UriParser syntax, bool isQuery)
Definition UriHelper.cs:245
bool TryCopyTo(Span< T > destination)
ReadOnlySpan< char > AsSpan(bool terminate)

References System.Text.ValueStringBuilder.Append(), System.Text.ValueStringBuilder.AsSpan(), System.Text.ValueStringBuilder.Dispose(), System.Text.ValueStringBuilder.Length, System.start, System.ReadOnlySpan< T >.ToArray(), System.ReadOnlySpan< T >.TryCopyTo(), and System.UriHelper.UnescapeString().