This commit is contained in:
zeus
2025-01-22 16:22:33 +08:00
parent 09b9cec8ec
commit 738c373a77
2534 changed files with 0 additions and 486292 deletions
@@ -1,19 +0,0 @@
/// A case-preserving, case-insensitive identifier
/// that matches the ASCII version of sqlite3_stricmp
struct CaseInsensitiveIdentifier: Hashable {
private let lowercased: String
let rawValue: String
init(rawValue: String) {
self.lowercased = rawValue.lowercased()
self.rawValue = rawValue
}
static func == (lhs: CaseInsensitiveIdentifier, rhs: CaseInsensitiveIdentifier) -> Bool {
lhs.lowercased == rhs.lowercased
}
func hash(into hasher: inout Hasher) {
hasher.combine(lowercased)
}
}