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

◆ IndexOfHtmlEncodingChars()

static int System.Net.WebUtility.IndexOfHtmlEncodingChars ( ReadOnlySpan< char > input)
inlinestaticprivate

Definition at line 623 of file WebUtility.cs.

624 {
625 for (int i = 0; i < input.Length; i++)
626 {
627 char c = input[i];
628 if (c <= '>')
629 {
630 switch (c)
631 {
632 case '"':
633 case '&':
634 case '\'':
635 case '<':
636 case '>':
637 return i;
638 }
639 continue;
640 }
641 if (c >= '\u00a0' && c < 'Ā')
642 {
643 return i;
644 }
645 if (char.IsSurrogate(c))
646 {
647 return i;
648 }
649 }
650 return -1;
651 }

References System.input.

Referenced by System.Net.WebUtility.HtmlEncode(), and System.Net.WebUtility.HtmlEncode().