mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-12 18:27:24 +01:00
Use Ordinal comparisons
This commit is contained in:
parent
47cfaf4da2
commit
6ebf550284
14 changed files with 19 additions and 20 deletions
|
|
@ -72,9 +72,9 @@ public readonly struct FullPath : IComparable, IEquatable< FullPath >
|
|||
=> obj switch
|
||||
{
|
||||
FullPath p => InternalName?.CompareTo( p.InternalName ) ?? -1,
|
||||
FileInfo f => string.Compare( FullName, f.FullName, StringComparison.InvariantCultureIgnoreCase ),
|
||||
FileInfo f => string.Compare( FullName, f.FullName, StringComparison.OrdinalIgnoreCase ),
|
||||
Utf8String u => InternalName?.CompareTo( u ) ?? -1,
|
||||
string s => string.Compare( FullName, s, StringComparison.InvariantCultureIgnoreCase ),
|
||||
string s => string.Compare( FullName, s, StringComparison.OrdinalIgnoreCase ),
|
||||
_ => -1,
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue