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

◆ TrySkipTokenOrQuoted()

static bool System.Net.Http.Headers.AltSvcHeaderParser.TrySkipTokenOrQuoted ( string value,
int startIndex,
out int readLength )
inlinestaticprivate

Definition at line 376 of file AltSvcHeaderParser.cs.

377 {
378 if (startIndex >= value.Length)
379 {
380 readLength = 0;
381 return false;
382 }
383 if (HttpRuleParser.IsTokenChar(value[startIndex]))
384 {
385 readLength = HttpRuleParser.GetTokenLength(value, startIndex);
386 return true;
387 }
388 if (HttpRuleParser.GetQuotedStringLength(value, startIndex, out var length) == HttpParseResult.Parsed)
389 {
390 readLength = length;
391 return true;
392 }
393 readLength = 0;
394 return false;
395 }

References System.Net.Http.HttpRuleParser.GetQuotedStringLength(), System.Net.Http.HttpRuleParser.GetTokenLength(), System.Net.Http.HttpRuleParser.IsTokenChar(), System.length, System.startIndex, and System.value.

Referenced by System.Net.Http.Headers.AltSvcHeaderParser.GetParsedValueLength().