diff options
| author | 2022-12-26 10:47:14 +0100 | |
|---|---|---|
| committer | 2022-12-26 10:47:14 +0100 | |
| commit | e0d1d51fac881f38aad5f811f9fa4f6b49b0b4fc (patch) | |
| tree | c13577bf8bd21e76a30ece840353a7c687623c06 /sqlite.zig | |
| parent | Update for latest Zig builtin renames (diff) | |
| download | zig-sqlite-e0d1d51fac881f38aad5f811f9fa4f6b49b0b4fc.tar.gz zig-sqlite-e0d1d51fac881f38aad5f811f9fa4f6b49b0b4fc.tar.xz zig-sqlite-e0d1d51fac881f38aad5f811f9fa4f6b49b0b4fc.zip | |
stop using removed ascii functions
Diffstat (limited to '')
| -rw-r--r-- | sqlite.zig | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -932,9 +932,9 @@ pub const Savepoint = struct { | |||
| 932 | fn init(db: *Db, name: []const u8) InitError!Self { | 932 | fn init(db: *Db, name: []const u8) InitError!Self { |
| 933 | if (name.len < 1) return error.SavepointNameTooShort; | 933 | if (name.len < 1) return error.SavepointNameTooShort; |
| 934 | if (name.len > 20) return error.SavepointNameTooLong; | 934 | if (name.len > 20) return error.SavepointNameTooLong; |
| 935 | if (!std.ascii.isAlpha(name[0])) return error.SavepointNameInvalid; | 935 | if (!std.ascii.isAlphabetic(name[0])) return error.SavepointNameInvalid; |
| 936 | for (name) |b| { | 936 | for (name) |b| { |
| 937 | if (b != '_' and !std.ascii.isAlNum(b)) { | 937 | if (b != '_' and !std.ascii.isAlphanumeric(b)) { |
| 938 | return error.SavepointNameInvalid; | 938 | return error.SavepointNameInvalid; |
| 939 | } | 939 | } |
| 940 | } | 940 | } |