mirror of
https://github.com/bellard/quickjs.git
synced 2025-12-31 13:49:11 +03:00
regexp: removed alloca() is lre_exec() - added specific opcodes for \s and \S to have a smaller bytecode - optimized \b and \B
This commit is contained in:
@@ -147,6 +147,11 @@ static inline int lre_is_id_continue_byte(uint8_t c) {
|
||||
UNICODE_C_DIGIT);
|
||||
}
|
||||
|
||||
static inline int lre_is_word_byte(uint8_t c) {
|
||||
return lre_ctype_bits[c] & (UNICODE_C_UPPER | UNICODE_C_LOWER |
|
||||
UNICODE_C_UNDER | UNICODE_C_DIGIT);
|
||||
}
|
||||
|
||||
int lre_is_space_non_ascii(uint32_t c);
|
||||
|
||||
static inline int lre_is_space(uint32_t c) {
|
||||
|
||||
Reference in New Issue
Block a user