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

◆ GetDispositionTypeLength()

static int System.Net.Http.Headers.ContentDispositionHeaderValue.GetDispositionTypeLength ( string input,
int startIndex,
out object parsedValue )
inlinestaticpackage

Definition at line 206 of file ContentDispositionHeaderValue.cs.

207 {
208 parsedValue = null;
209 if (string.IsNullOrEmpty(input) || startIndex >= input.Length)
210 {
211 return 0;
212 }
213 string dispositionType;
216 {
217 return 0;
218 }
220 num += HttpRuleParser.GetWhitespaceLength(input, num);
222 contentDispositionHeaderValue._dispositionType = dispositionType;
223 if (num < input.Length && input[num] == ';')
224 {
225 num++;
226 int nameValueListLength = NameValueHeaderValue.GetNameValueListLength(input, num, ';', (ObjectCollection<NameValueHeaderValue>)contentDispositionHeaderValue.Parameters);
227 if (nameValueListLength == 0)
228 {
229 return 0;
230 }
232 return num + nameValueListLength - startIndex;
233 }
235 return num - startIndex;
236 }
static int GetDispositionTypeExpressionLength(string input, int startIndex, out string dispositionType)

References System.Net.Http.Headers.ContentDispositionHeaderValue.ContentDispositionHeaderValue(), System.Net.Http.Headers.ContentDispositionHeaderValue.GetDispositionTypeExpressionLength(), System.Net.Http.Headers.NameValueHeaderValue.GetNameValueListLength(), System.Net.Http.HttpRuleParser.GetWhitespaceLength(), System.input, and System.startIndex.