summaryrefslogtreecommitdiffstats
path: root/regex.c
Commit message (Collapse)AuthorAgeFilesLines
* Don't shadow standard headersTavian Barnes2022-03-121-301/+0
| | | | | | | | | | | | | @italic on the AUR stated that bfs from the AUR fails to build on Manjaro. From the build log, it seems like <time.h> doesn't get included properly. I assume it's picking up ./time.h instead. I couldn't reproduce the build issue in the default configuration, but it does fail with EXTRA_CFLAGS="-I." which isn't good. So rename everything with an x prefix to stop clashing. Link: https://aur.archlinux.org/packages/bfs#comment-856102 Link: https://paste.rs/eqR
* regex: Rework error handlingTavian Barnes2022-02-241-50/+68
|
* regex: Use the encoding from the current localeTavian Barnes2022-02-241-10/+81
|
* regex: Test if the string is valid before matchingTavian Barnes2022-02-241-0/+8
|
* regex: Always set REG_STARTEND if availableTavian Barnes2022-02-231-5/+3
|
* regex: Use onig_match() to implement BFS_REGEX_ANCHORTavian Barnes2022-02-231-10/+8
|
* regex: Use the real Oniguruma API, not the POSIX wrapperTavian Barnes2022-02-211-11/+84
| | | | | | | Not every Oniguruma installation enables the POSIX wrapper, so we need our own wrapper for portability. As well, older versions of Oniguruma have symbol clashes with libc for the POSIX regex API, so using it can be unsafe.
* regex: Wrap the POSIX API in a facadeTavian Barnes2022-02-211-7/+80
|
* regex: Add support for emacs and grep typesTavian Barnes2022-02-041-0/+62