summaryrefslogtreecommitdiffstats
path: root/regex.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2016-12-01 06:59:17 -0800
committerKaz Kylheku <kaz@kylheku.com>2016-12-01 06:59:17 -0800
commit40b56cf6878999799fff36b7f8d719de8d196d58 (patch)
treef3115f9863dff5410f8e36be4f93f7863e226645 /regex.h
parent4dec6b260812d1a30095aa24837730b50a661c17 (diff)
downloadtxr-40b56cf6878999799fff36b7f8d719de8d196d58.tar.gz
txr-40b56cf6878999799fff36b7f8d719de8d196d58.tar.bz2
txr-40b56cf6878999799fff36b7f8d719de8d196d58.zip
Adding functions fr^$, fr^, fr$ and frr.
* regex.c (regex_range_full_fun, regex_range_left_fun, regex_range_right_fun, regex_range_search_fun): New functions. (regex_init): Register fr^$, fr^, fr$ and frr intrinsics. * txr.1: Documented.
Diffstat (limited to 'regex.h')
-rw-r--r--regex.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/regex.h b/regex.h
index 8d51669c..fd2cc196 100644
--- a/regex.h
+++ b/regex.h
@@ -55,6 +55,10 @@ val regex_range_left(val regex, val arg1, val arg2);
val regex_range_right(val regex, val arg1, val arg2);
val regex_range_search(val regex, val arg1, val arg2, val arg3);
val regex_range_all(val regex, val arg1, val arg2, val arg3);
+val regex_range_full_fun(val regex, val pos);
+val regex_range_left_fun(val regex, val pos);
+val regex_range_right_fun(val regex, val end);
+val regex_range_search_fun(val regex, val start, val from_end);
int wide_display_char_p(wchar_t ch);
void regex_init(void);
void regex_free_all(void);