]> git.kaiwu.me - quickjs.git/commit
Improve libunicode and libregexp headers (#288)
authorCharlie Gordon <github@chqrlie.org>
Sun, 5 May 2024 15:47:40 +0000 (17:47 +0200)
committerGitHub <noreply@github.com>
Sun, 5 May 2024 15:47:40 +0000 (17:47 +0200)
commit7a2c6f42d49e7a4003384cf54b187f16e64e47a1
tree8cc7181520e92dd0ced15e7c3ad0c86dbab3fa94
parent1402478d8d280a1a62dfb76327dd569d6307a025
Improve libunicode and libregexp headers (#288)

- move all `lre_xxx` functions to libunicode
- use flags table `lre_ctype_bits` instead of bitmaps
- simplify `lre_is_space`, `lre_js_is_ident_first` and `lre_js_is_ident_next`
- simplify `simple_next_token`, handle UTF-8 correctly
- simplify `is_let`, remove dead code
libregexp.c
libregexp.h
libunicode.c
libunicode.h
quickjs.c
unicode_gen.c