summaryrefslogtreecommitdiffstats
path: root/lib.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2016-09-21 21:14:13 -0700
committerKaz Kylheku <kaz@kylheku.com>2016-09-21 21:14:13 -0700
commitcbe8ab16302c0224c2e90dc0dd28e64e80b3fe2b (patch)
treec23e5679559579ffd2f6dbd30983a45e17e9c80a /lib.h
parent9f039218345989a770322611704c3d7ff9a76a12 (diff)
downloadtxr-cbe8ab16302c0224c2e90dc0dd28e64e80b3fe2b.tar.gz
txr-cbe8ab16302c0224c2e90dc0dd28e64e80b3fe2b.tar.bz2
txr-cbe8ab16302c0224c2e90dc0dd28e64e80b3fe2b.zip
Support negative positions in regex matching funs.
* regex.c (match_regex, match_regex_right): Detect a negative start or end position, respectively, and add the string length to it. If it is still negative, bail with nil. * txr.1: Documented.
Diffstat (limited to 'lib.h')
0 files changed, 0 insertions, 0 deletions