diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2016-10-03 06:47:29 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2016-10-03 06:47:29 -0700 |
commit | 4fbc51dadaeb3d25887cec5bf824b8992a960b02 (patch) | |
tree | 2036769ba4ae18dc90aea7ec3a70f93fd61d649d /linenoise/example.c | |
parent | 51c3df60e45f40335904ce6255896ee0f661d856 (diff) | |
download | txr-4fbc51dadaeb3d25887cec5bf824b8992a960b02.tar.gz txr-4fbc51dadaeb3d25887cec5bf824b8992a960b02.tar.bz2 txr-4fbc51dadaeb3d25887cec5bf824b8992a960b02.zip |
search-regex improvement: negative start and more.
* regex.c (search_regex): Handle negative starting positions
according to the convention elsewhere and fail excessively
negative ones. Consistently fail on starting positions
exceeding the length of the string. Handle zero length
matches by reporting them against the start position
or position one past the last character, based on the
value of from-end.
* txr.1: search-regex documentation updated.
Diffstat (limited to 'linenoise/example.c')
0 files changed, 0 insertions, 0 deletions