about summary refs log tree commit diff stats
path: root/lib/quickjs/libregexp.c
Commit message (Collapse)AuthorAgeFilesLines
* Improve surrogate handling readabilityCharlie Gordon2024-03-021-81/+78
| | | | | | | | | - add inline function to test and convert surrogates is_surrogate(c), is_hi_surrogate(c), is_lo_surrogate(c), get_hi_surrogate(c), get_lo_surrogate(c), from_surrogate(hi, lo) - use names for BC header offsets and lengths in libregexp.c - remove strict aliasing violations in `lre_exec_backtrack()` - pass all context variables to XXX_CHAR macros in `lre_exec_backtrack()`
* Rename regex flag and field utf16 -> unicodeCharlie Gordon2024-03-021-55/+57
| | | | | - rename is_utf16 structure member to is_unicode - rename flag LRE_FLAG_UTF16 as LRE_FLAG_UNICODE
* Strip trailing spacesCharlie Gordon2024-03-021-49/+49
|
* fix bug in prev commitbptato2024-02-051-1/+1
| | | | it's 0, not 1 :(
* regex: fix 8-bit narrow strings in JSbptato2024-02-051-25/+39
| | | | | The previous approach to add UTF-8 support to libregexp was broken. This time, we use a separate flag (cbuf_len == 3) to indicate UTF-8 input.
* regexp: fixed the zero advance logic in quantifiers (github issue #158)Fabrice Bellard2024-01-111-72/+41
|
* fixed regexp case insensitive flagFabrice Bellard2024-01-111-56/+1
|
* Retrieve RegExp 'g' flag in spec conformant way (original patch by bnoordhuis)Fabrice Bellard2023-12-091-9/+14
|
* Add utf-8 support to libregexpbptato2023-07-041-6/+14
| | | | | | | This allows us to greatly simplify exec(Regex). In particular, we no longer have to convert any line containing non-ascii characters into UTF-16 (which was a significant inefficiency in regex search until now).
* Include QuickJS sources in the repositorybptato2023-06-221-0/+2610
Taken from txiki.js, so it includes zamofex's top-level await patch.