diff options
author | Dave Davenport <qball@gmpclient.org> | 2015-11-17 16:10:14 +0100 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2015-11-17 16:10:14 +0100 |
commit | aeaceb154a773247a4709a66c27df34669f6c1ad (patch) | |
tree | b80c0c124eaf63fcfb983bad6e03a216228008f9 /include | |
parent | 2b0aec52e0cf8290910f6b754af8c733e5d4c74c (diff) |
Add experimental regex support
Diffstat (limited to 'include')
-rw-r--r-- | include/helper.h | 1 | ||||
-rw-r--r-- | include/rofi.h | 1 | ||||
-rw-r--r-- | include/textbox.h | 16 |
3 files changed, 10 insertions, 8 deletions
diff --git a/include/helper.h b/include/helper.h index 01d42d4b..305e6d61 100644 --- a/include/helper.h +++ b/include/helper.h @@ -39,6 +39,7 @@ char *token_collate_key ( const char *token, int case_sensitive ); * @returns a newly allocated 2 dimensional array of strings. */ char **tokenize ( const char *input, int case_sensitive ); +void tokenize_free ( char ** tokens ); /** * @param key The key to search for diff --git a/include/rofi.h b/include/rofi.h index 4b3ae5ef..05883004 100644 --- a/include/rofi.h +++ b/include/rofi.h @@ -235,6 +235,7 @@ typedef struct _Settings unsigned int fuzzy; unsigned int glob; unsigned int tokenize; + unsigned int regex; /** Monitors */ int monitor; /** Line margin */ diff --git a/include/textbox.h b/include/textbox.h index 9b0c4090..fb03234e 100644 --- a/include/textbox.h +++ b/include/textbox.h @@ -33,14 +33,14 @@ typedef struct typedef enum { - TB_AUTOHEIGHT = 1 << 0, - TB_AUTOWIDTH = 1 << 1, - TB_LEFT = 1 << 16, - TB_RIGHT = 1 << 17, - TB_CENTER = 1 << 18, - TB_EDITABLE = 1 << 19, - TB_MARKUP = 1 << 20, - TB_WRAP = 1 << 21, + TB_AUTOHEIGHT = 1 << 0, + TB_AUTOWIDTH = 1 << 1, + TB_LEFT = 1 << 16, + TB_RIGHT = 1 << 17, + TB_CENTER = 1 << 18, + TB_EDITABLE = 1 << 19, + TB_MARKUP = 1 << 20, + TB_WRAP = 1 << 21, } TextboxFlags; typedef enum |