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

◆ TrySkipFirstBlob()

static bool System.Net.Http.Headers.AuthenticationHeaderValue.TrySkipFirstBlob ( string input,
ref int current,
ref int parameterEndIndex )
inlinestaticprivate

Definition at line 144 of file AuthenticationHeaderValue.cs.

145 {
146 while (current < input.Length && input[current] != ',')
147 {
148 if (input[current] == '"')
149 {
150 int length = 0;
151 if (HttpRuleParser.GetQuotedStringLength(input, current, out length) != 0)
152 {
153 return false;
154 }
155 current += length;
156 parameterEndIndex = current - 1;
157 }
158 else
159 {
160 int whitespaceLength = HttpRuleParser.GetWhitespaceLength(input, current);
161 if (whitespaceLength == 0)
162 {
163 parameterEndIndex = current;
164 current++;
165 }
166 else
167 {
168 current += whitespaceLength;
169 }
170 }
171 }
172 return true;
173 }

References System.Net.Http.HttpRuleParser.GetQuotedStringLength(), System.Net.Http.HttpRuleParser.GetWhitespaceLength(), System.input, and System.length.

Referenced by System.Net.Http.Headers.AuthenticationHeaderValue.GetAuthenticationLength().