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

◆ Compare() [1/2]

int IComparer. System.Net.PathList.PathListComparer.Compare ( object ol,
object or )
inlineprivate

Definition at line 16 of file PathList.cs.

17 {
18 string text = CookieParser.CheckQuoted((string)ol);
19 string text2 = CookieParser.CheckQuoted((string)or);
20 int length = text.Length;
21 int length2 = text2.Length;
22 int num = Math.Min(length, length2);
23 for (int i = 0; i < num; i++)
24 {
25 if (text[i] != text2[i])
26 {
27 return text[i] - text2[i];
28 }
29 }
30 return length2 - length;
31 }

References System.Net.CookieParser.CheckQuoted(), System.length, System.length2, System.Math.Min(), and System.text.