diff options
| author | Ruben Beltran del Rio <jj@r.bdr.sh> | 2025-12-14 16:52:57 +0100 |
|---|---|---|
| committer | Ruben Beltran del Rio <jj@r.bdr.sh> | 2025-12-14 17:05:21 +0100 |
| commit | d56e777025f3bda29feaec22c125b0e7ab975e0c (patch) | |
| tree | 19295b051c9e32c17e32a4954fc0cdca3d4e0be5 /Sources/WmapParser/Constants.swift | |
| parent | 0b90075f76b6f2df77c01c303322323b1395641a (diff) | |
Format, make map equatable
Diffstat (limited to 'Sources/WmapParser/Constants.swift')
| -rw-r--r-- | Sources/WmapParser/Constants.swift | 62 |
1 files changed, 31 insertions, 31 deletions
diff --git a/Sources/WmapParser/Constants.swift b/Sources/WmapParser/Constants.swift index e659c03..8646243 100644 --- a/Sources/WmapParser/Constants.swift +++ b/Sources/WmapParser/Constants.swift @@ -1,37 +1,37 @@ extension WmapParser { - // Whitespace - static let kNewline = 10 - static let kCarriageReturn = 13 - static let kTab = 9 - static let kSpace = 32 + // Whitespace + static let kNewline = 10 + static let kCarriageReturn = 13 + static let kTab = 9 + static let kSpace = 32 - // Punctuation - static let kOpenParenthesis = 40 - static let kCloseParenthesis = 41 - static let kPlus = 43 - static let kComma = 44 - static let kDash = 45 - static let kPeriod = 46 - static let kGreaterThan = 62 - static let kOpenSquareBracket = 91 - static let kCloseSquareBracket = 93 + // Punctuation + static let kOpenParenthesis = 40 + static let kCloseParenthesis = 41 + static let kPlus = 43 + static let kComma = 44 + static let kDash = 45 + static let kPeriod = 46 + static let kGreaterThan = 62 + static let kOpenSquareBracket = 91 + static let kCloseSquareBracket = 93 - // Letters - static let kCapitalA = 65 - static let kCapitalZ = 90 - static let kCapsToLowercaseDistance: UInt8 = 32 + // Letters + static let kCapitalA = 65 + static let kCapitalZ = 90 + static let kCapsToLowercaseDistance: UInt8 = 32 - // Numbers - static let kZero = 48 - static let kNine = 57 + // Numbers + static let kZero = 48 + static let kNine = 57 - // Keywords. ASCII representations of the keywords. - static let kInertiaKeyword: [UInt8] = [105, 110, 101, 114, 116, 105, 97] - static let kEvolutionKeyword: [UInt8] = [101, 118, 111, 108, 117, 116, 105, 111, 110] - static let kNoteKeyword: [UInt8] = [110, 111, 116, 101] - static let kGroupKeyword: [UInt8] = [103, 114, 111, 117, 112] - static let kIKeyword: [UInt8] = [105] - static let kIIKeyword: [UInt8] = [105, 105] - static let kIIIKeyword: [UInt8] = [105, 105, 105] - static let kIVKeyword: [UInt8] = [105, 118] + // Keywords. ASCII representations of the keywords. + static let kInertiaKeyword: [UInt8] = [105, 110, 101, 114, 116, 105, 97] + static let kEvolutionKeyword: [UInt8] = [101, 118, 111, 108, 117, 116, 105, 111, 110] + static let kNoteKeyword: [UInt8] = [110, 111, 116, 101] + static let kGroupKeyword: [UInt8] = [103, 114, 111, 117, 112] + static let kIKeyword: [UInt8] = [105] + static let kIIKeyword: [UInt8] = [105, 105] + static let kIIIKeyword: [UInt8] = [105, 105, 105] + static let kIVKeyword: [UInt8] = [105, 118] } |