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

◆ Compare() [7/7]

int System.Globalization.CompareInfo.Compare ( string? string1,
string? string2,
CompareOptions options )
inline

Definition at line 266 of file CompareInfo.cs.

267 {
268 int result;
269 if (string1 == null)
270 {
271 result = ((string2 != null) ? (-1) : 0);
272 }
273 else
274 {
275 if (string2 != null)
276 {
277 return Compare(string1.AsSpan(), string2.AsSpan(), options);
278 }
279 result = 1;
280 }
282 return result;
283 }
static void CheckCompareOptionsForCompare(CompareOptions options)
int Compare(string? string1, string? string2)

References System.Globalization.CompareInfo.CheckCompareOptionsForCompare(), System.Globalization.CompareInfo.Compare(), and System.options.