aboutsummaryrefslogtreecommitdiff
path: root/text-regex-tre.c
AgeCommit message (Collapse)AuthorFilesLines
2025-12-22move all standard library includes into util.hRandy Palamar1-5/+0
2020-04-27Avoid use of VLAsMichael Forney1-1/+1
2020-01-23text: fix spurious regex anchor matchesMarc André Tanner1-0/+6
The regex anchors ^ and $ must not match at the start/end of the search range unless it is preceded/succeeded by a new line. This is implemented at the text-motion layer by passing the appropriate REG_NOT{B,E}OL flags to the search backend, meaning the caller can influence the anchor behavior depending on the context. This is important as for example in the command language the anchors apply to existing selections, not line boundaries.
2018-03-11Reset parsing state after mbrtowc(3) failureMarc André Tanner1-0/+1
The standard says "if an encoding error occurs ... the conversion state is unspecified".
2017-07-03Fix Unicode regex searches for libtre buildsMarc André Tanner1-6/+55
Fix #566
2017-02-08text: clean up iterator semanticsMarc André Tanner1-2/+8
We now guarantee the existence of at least one non-sentinel piece at all time and allow iterators to recover from these delimiting pieces.
2017-01-19text-regex: add regex backend based on libtreMarc André Tanner1-0/+112
While memory consumption should be improved, backward searches will still be slow, because they are implemented in terms of repeated forward searches. It needs to be investigated whether the underlying automaton can have its transitions reversed and essentially run backwards, as is the case in sam.