diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2015-12-07 22:33:26 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2015-12-07 22:33:26 -0800 |
commit | 1618886a0fb697303cba1e5cb9e669e84babce68 (patch) | |
tree | 7624bee8583fdbfef6b0b69005e28b710d821553 /txr.1 | |
parent | 112258f992e83b60012add87f62ce9336222027f (diff) | |
download | txr-1618886a0fb697303cba1e5cb9e669e84babce68.tar.gz txr-1618886a0fb697303cba1e5cb9e669e84babce68.tar.bz2 txr-1618886a0fb697303cba1e5cb9e669e84babce68.zip |
range-regex returns range, not cons.
* regex.c (range_regex): Return range.
(search_regst): Use appropriate accessors on
range returned by range_regex.
* lib.c (tok_where): Destructure range returned by
range_regex, using range_bind.
* txr.1: Documented changed behavior.
Diffstat (limited to 'txr.1')
-rw-r--r-- | txr.1 | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -28834,11 +28834,11 @@ function is similar to .codn search-regex , except that when a match is found, it returns a position range, rather than a position -and length. A cons is returned whose -.code car -indicates the position +and length. A range object is returned whose +.code from +field indicates the position of the match, and whose -.code cdr +.code to indicates the position one element past the last character of the match. If the match is empty, the two integers are equal. |