summaryrefslogtreecommitdiffstats
path: root/linenoise/example.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2016-10-03 06:47:29 -0700
committerKaz Kylheku <kaz@kylheku.com>2016-10-03 06:47:29 -0700
commit4fbc51dadaeb3d25887cec5bf824b8992a960b02 (patch)
tree2036769ba4ae18dc90aea7ec3a70f93fd61d649d /linenoise/example.c
parent51c3df60e45f40335904ce6255896ee0f661d856 (diff)
downloadtxr-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