Refactor SettingsUI and related modules

This commit is contained in:
Peter
2019-08-17 20:31:41 +03:00
parent c553f6683c
commit c3bd5685eb
190 changed files with 7362 additions and 848 deletions

View File

@@ -0,0 +1,12 @@
import Foundation
public extension String {
var persistentHashValue: UInt64 {
var result = UInt64 (5381)
let buf = [UInt8](self.utf8)
for b in buf {
result = 127 * (result & 0x00ffffffffffffff) + UInt64(b)
}
return result
}
}