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

◆ ParseValueHelper()

static string[] System.Net.HeaderInfoTable.ParseValueHelper ( string value,
bool isSetCookie )
inlinestaticprivate

Definition at line 31 of file HeaderInfoTable.cs.

32 {
33 if (isSetCookie && !value.Contains('='))
34 {
35 return Array.Empty<string>();
36 }
38 bool flag = false;
39 int num = 0;
40 int num2 = 0;
41 for (int i = 0; i < value.Length; i++)
42 {
43 if (value[i] == '"')
44 {
45 flag = !flag;
46 }
47 else if (value[i] == ',' && !flag)
48 {
49 string text = value.SubstringTrim(num, num2);
51 {
52 list.Add(text);
53 num = i + 1;
54 num2 = 0;
55 continue;
56 }
57 }
58 num2++;
59 }
61 {
62 list.Add(value.SubstringTrim(num, num2));
63 }
64 return list.ToArray();
65 }
bool ICollection< KeyValuePair< TKey, TValue > >. Contains(KeyValuePair< TKey, TValue > keyValuePair)
void Add(TKey key, TValue value)
static bool IsDuringExpiresAttributeParsing(string singleValue)

References System.Collections.Generic.Dictionary< TKey, TValue >.Add(), System.Collections.Generic.Dictionary< TKey, TValue >.Contains(), System.Net.HeaderInfoTable.IsDuringExpiresAttributeParsing(), System.list, System.text, and System.value.