diff options
| author | Can Celik <ogulcancelik@gmail.com> | 2026-09-10 21:51:57 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-09-10 21:51:57 +0300 |
| commit | 425c86179791cd32e2d4ce0ae7f269940b4b0663 (patch) | |
| tree | e52c4383a6d69216cbe2a32638bf90841d7e2189 /vendor/libghostty-vt/src/simd/base64_scalar.zig | |
| parent | 90e947a6e26e02f10ec7f1694c4eb5b78a86406b (diff) | |
chore: upgrade libghostty and preserve terminal behavior (#3906)
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. |
