summaryrefslogtreecommitdiff
path: root/src/core/wee-eval.h
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2022-10-03 20:56:12 +0200
committerSébastien Helleu <flashcode@flashtux.org>2022-11-05 22:34:38 +0100
commit196a0511418a7a1f406db45d23abd4697ad7f905 (patch)
tree85cac7f2989f04222823f1910438bf40ea415907 /src/core/wee-eval.h
parentbc2fb071e22589aa219ce551b0112bacbd3cca8f (diff)
downloadweechat-196a0511418a7a1f406db45d23abd4697ad7f905.zip
core: add range of chars in evaluation of expressions with `chars:xxx`
Diffstat (limited to 'src/core/wee-eval.h')
-rw-r--r--src/core/wee-eval.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/wee-eval.h b/src/core/wee-eval.h
index 22ec58403..944390190 100644
--- a/src/core/wee-eval.h
+++ b/src/core/wee-eval.h
@@ -30,6 +30,13 @@
#define EVAL_RECURSION_MAX 32
+#define EVAL_RANGE_DIGIT "0123456789"
+#define EVAL_RANGE_XDIGIT EVAL_RANGE_DIGIT "abcdefABCDEF"
+#define EVAL_RANGE_LOWER "abcdefghijklmnopqrstuvwxyz"
+#define EVAL_RANGE_UPPER "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
+#define EVAL_RANGE_ALPHA EVAL_RANGE_LOWER EVAL_RANGE_UPPER
+#define EVAL_RANGE_ALNUM EVAL_RANGE_ALPHA EVAL_RANGE_DIGIT
+
struct t_hashtable;
enum t_eval_logical_op