@@ -42,8 +42,8 @@ extension Base64 {
4242 ) throws -> [ UInt8 ] where Buffer. Element == UInt8 {
4343 let alphabet =
4444 options. contains ( . base64UrlAlphabet)
45- ? Base64 . decodeDataUrl
46- : Base64 . decodeData
45+ ? Base64 . urlAlphabet
46+ : Base64 . defaultAlphabet
4747
4848 // In Base64 4 encoded bytes, become 3 decoded bytes. We pad to the
4949 // nearest multiple of three.
@@ -112,7 +112,7 @@ extension Base64 {
112112 // MARK: Internal
113113
114114 @usableFromInline
115- static let decodeData : [ UInt8 ] = [
115+ static let defaultAlphabet : [ UInt8 ] = [
116116 // 0 1 2 3 4 5 6 7 8 9
117117 255 , 255 , 255 , 255 , 255 , 255 , 255 , 255 , 255 , 255 , // 0
118118 255 , 255 , 255 , 255 , 255 , 255 , 255 , 255 , 255 , 255 , // 1
@@ -143,7 +143,7 @@ extension Base64 {
143143 ]
144144
145145 @usableFromInline
146- static let decodeDataUrl : [ UInt8 ] = [
146+ static let urlAlphabet : [ UInt8 ] = [
147147 // 0 1 2 3 4 5 6 7 8 9
148148 255 , 255 , 255 , 255 , 255 , 255 , 255 , 255 , 255 , 255 , // 0
149149 255 , 255 , 255 , 255 , 255 , 255 , 255 , 255 , 255 , 255 , // 1
0 commit comments