summaryrefslogtreecommitdiffstats
path: root/lib.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2016-09-22 06:14:27 -0700
committerKaz Kylheku <kaz@kylheku.com>2016-09-22 06:14:27 -0700
commite3d17617a33941fea6c2f365151e93201aaf152d (patch)
tree67898edda2983dda7283a4a4d42e037dc0b9f384 /lib.c
parentcbe8ab16302c0224c2e90dc0dd28e64e80b3fe2b (diff)
downloadtxr-e3d17617a33941fea6c2f365151e93201aaf152d.tar.gz
txr-e3d17617a33941fea6c2f365151e93201aaf152d.tar.bz2
txr-e3d17617a33941fea6c2f365151e93201aaf152d.zip
Support functional argument in regsub.
* regex.c (regsub): Allow the second argument to be a function, which is called with str as an argument, and returns a range which indicates what part of the string is to be replaced, or else nil. * txr.1: Documented functional argument of regsub.
Diffstat (limited to 'lib.c')
0 files changed, 0 insertions, 0 deletions