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

◆ GetNextKey()

string System.Net.Http.AuthenticationHelper.DigestResponse.GetNextKey ( string data,
int currentIndex,
out int parsedIndex )
inlineprivate

Definition at line 71 of file AuthenticationHelper.cs.

72 {
73 while (currentIndex < data.Length && CharIsSpaceOrTab(data[currentIndex]))
74 {
75 currentIndex++;
76 }
77 int num = currentIndex;
78 while (currentIndex < data.Length && data[currentIndex] != '=' && !CharIsSpaceOrTab(data[currentIndex]))
79 {
80 currentIndex++;
81 }
82 if (currentIndex == data.Length)
83 {
84 parsedIndex = currentIndex;
85 return null;
86 }
87 int length = currentIndex - num;
88 if (CharIsSpaceOrTab(data[currentIndex]))
89 {
90 while (currentIndex < data.Length && CharIsSpaceOrTab(data[currentIndex]))
91 {
92 currentIndex++;
93 }
94 if (currentIndex == data.Length || data[currentIndex] != '=')
95 {
96 parsedIndex = currentIndex;
97 return null;
98 }
99 }
100 while (currentIndex < data.Length && (CharIsSpaceOrTab(data[currentIndex]) || data[currentIndex] == '='))
101 {
102 currentIndex++;
103 }
104 parsedIndex = currentIndex;
105 return data.Substring(num, length);
106 }

References System.Net.Http.AuthenticationHelper.DigestResponse.CharIsSpaceOrTab(), and System.length.

Referenced by System.Net.Http.AuthenticationHelper.DigestResponse.Parse().