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

◆ GetQuotedPairLength()

static HttpParseResult System.Net.Http.HttpRuleParser.GetQuotedPairLength ( string input,
int startIndex,
out int length )
inlinestaticpackage

Definition at line 192 of file HttpRuleParser.cs.

193 {
194 length = 0;
195 if (input[startIndex] != '\\')
196 {
197 return HttpParseResult.NotParsed;
198 }
199 if (startIndex + 2 > input.Length || input[startIndex + 1] > '\u007f')
200 {
201 return HttpParseResult.InvalidFormat;
202 }
203 length = 2;
204 return HttpParseResult.Parsed;
205 }

References System.input, System.length, and System.startIndex.

Referenced by System.Net.Http.HttpRuleParser.GetExpressionLength().