diff options
Diffstat (limited to 'vendor/libghostty-vt/src/simd/base64_scalar.zig')
| -rw-r--r-- | vendor/libghostty-vt/src/simd/base64_scalar.zig | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/vendor/libghostty-vt/src/simd/base64_scalar.zig b/vendor/libghostty-vt/src/simd/base64_scalar.zig index 08886f18..69b3f29c 100644 --- a/vendor/libghostty-vt/src/simd/base64_scalar.zig +++ b/vendor/libghostty-vt/src/simd/base64_scalar.zig @@ -6,6 +6,12 @@ pub const scalar_decoder: Base64Decoder = .init( null, ); +/// Whether c is one of the 64 standard base64 alphabet characters +/// (padding is not part of the alphabet). +pub fn isAlphabetChar(c: u8) bool { + return scalar_decoder.char_to_index[c] != Base64Decoder.invalid_char; +} + /// Copied from Zig 0.14.1 stdlib and commented out the invalid padding /// scenarios, because Kitty Graphics requires a decoder that doesn't care /// about invalid padding scenarios. |
