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

◆ HtmlDecode() [3/3]

static void System.Net.WebUtility.HtmlDecode ( string? value,
TextWriter output )
inlinestatic

Definition at line 532 of file WebUtility.cs.

533 {
534 if (output == null)
535 {
536 throw new ArgumentNullException("output");
537 }
538 if (string.IsNullOrEmpty(value))
539 {
540 output.Write(value);
541 return;
542 }
543 ReadOnlySpan<char> input = value.AsSpan();
545 if (num == -1)
546 {
547 output.Write(value);
548 return;
549 }
551 if (value.Length <= 256)
552 {
555 }
556 else
557 {
559 }
561 output2.Append(input.Slice(0, num));
562 HtmlDecode(input.Slice(num), ref output2);
563 output.Write(output2.AsSpan());
564 output2.Dispose();
565 }
static ? string HtmlDecode(string? value)
static int IndexOfHtmlDecodingChars(ReadOnlySpan< char > input)

References System.Net.WebUtility.HtmlDecode(), System.Net.WebUtility.IndexOfHtmlDecodingChars(), System.input, and System.value.