13 bool[]
array =
new bool[128];
14 for (
int i = 33; i < 127; i++)
40 if (character >
'\u007f')
65 for (
int i = 0; i <
input.Length; i++)
77 for (
int i = 0; i <
input.Length; i++)
101 if (c !=
' ' && c !=
'\t')
117 bool flag = !allowDecimal;
118 if (
input[num] ==
'.')
122 while (num <
input.Length)
125 if (c >=
'0' && c <=
'9')
130 if (flag || c !=
'.')
150 for (flag =
true; i <
input.Length; flag = num, i++)
215 while (num <
input.Length)
224 if (c ==
'\r' || c ==
'\n')
228 if (supportsNesting && c == openChar)
246 if (
input[num] == closeChar)
static string GetTokenString(ReadOnlySpan< byte > input)
static HttpParseResult GetCommentLength(string input, int startIndex, out int length)
static HttpParseResult GetExpressionLength(string input, int startIndex, char openChar, char closeChar, bool supportsNesting, int nestedCount, out int length)
static bool ContainsNewLine(string value, int startIndex=0)
static int GetHostLength(string input, int startIndex, bool allowToken, out string host)
static HttpParseResult GetQuotedPairLength(string input, int startIndex, out int length)
static HttpParseResult GetQuotedStringLength(string input, int startIndex, out int length)
static bool IsToken(ReadOnlySpan< byte > input)
static bool IsValidHostName(string host)
static int GetTokenLength(string input, int startIndex)
static bool IsToken(string input)
static Encoding DefaultHttpEncoding
static int GetWhitespaceLength(string input, int startIndex)
static int GetNumberLength(string input, int startIndex, bool allowDecimal)
static bool[] CreateTokenChars()
static readonly bool[] s_tokenChars
static bool IsTokenChar(char character)
static bool TryCreate([NotNullWhen(true)] string? uriString, UriKind uriKind, [NotNullWhen(true)] out Uri? result)