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

◆ GetNextNonEmptyOrWhitespaceIndex()

static int System.Net.Http.Headers.HeaderUtilities.GetNextNonEmptyOrWhitespaceIndex ( string input,
int startIndex,
bool skipEmptyValues,
out bool separatorFound )
inlinestaticpackage

Definition at line 194 of file HeaderUtilities.cs.

195 {
196 separatorFound = false;
197 int num = startIndex + HttpRuleParser.GetWhitespaceLength(input, startIndex);
198 if (num == input.Length || input[num] != ',')
199 {
200 return num;
201 }
202 separatorFound = true;
203 num++;
204 num += HttpRuleParser.GetWhitespaceLength(input, num);
205 if (skipEmptyValues)
206 {
207 while (num < input.Length && input[num] == ',')
208 {
209 num++;
210 num += HttpRuleParser.GetWhitespaceLength(input, num);
211 }
212 }
213 return num;
214 }

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

Referenced by System.Net.Http.Headers.RangeItemHeaderValue.GetRangeItemListLength(), System.Net.Http.Headers.AuthenticationHeaderValue.TryGetParametersEndIndex(), System.Net.Http.Headers.BaseHeaderParser.TryParseValue(), and System.Net.Http.Headers.CacheControlHeaderValue.TrySetOptionalTokenList().