diff options
author | V.Barkov <[email protected]> | 2016-11-20 09:36:10 +0300 |
---|---|---|
committer | V.Barkov <[email protected]> | 2016-11-20 09:36:10 +0300 |
commit | 206d27c66761cedebec8bedcaa91bf9f08846095 (patch) | |
tree | 33d97b7ecc39bb50a26bcb5a745e462dd5624d63 /pluma/pluma-document.h | |
parent | 49be92055f3f3319b9149b991d5b55a5ba99d453 (diff) | |
download | pluma-206d27c66761cedebec8bedcaa91bf9f08846095.tar.bz2 pluma-206d27c66761cedebec8bedcaa91bf9f08846095.tar.xz |
Implemented regexp finding
Diffstat (limited to 'pluma/pluma-document.h')
-rw-r--r-- | pluma/pluma-document.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/pluma/pluma-document.h b/pluma/pluma-document.h index 6d90323e..ee8d6f88 100644 --- a/pluma/pluma-document.h +++ b/pluma/pluma-document.h @@ -69,7 +69,8 @@ typedef enum PLUMA_SEARCH_DONT_SET_FLAGS = 1 << 0, PLUMA_SEARCH_ENTIRE_WORD = 1 << 1, PLUMA_SEARCH_CASE_SENSITIVE = 1 << 2, - PLUMA_SEARCH_PARSE_ESCAPES = 1 << 3 + PLUMA_SEARCH_PARSE_ESCAPES = 1 << 3, + PLUMA_SEARCH_MATCH_REGEX = 1 << 4, } PlumaSearchFlags; @@ -317,6 +318,11 @@ void _pluma_document_search_region (PlumaDocument *doc, #define PLUMA_SEARCH_SET_PARSE_ESCAPES(sflags,state) ((state == TRUE) ? \ (sflags |= PLUMA_SEARCH_PARSE_ESCAPES) : (sflags &= ~PLUMA_SEARCH_PARSE_ESCAPES)) +#define PLUMA_SEARCH_IS_MATCH_REGEX(sflags) ((sflags & PLUMA_SEARCH_MATCH_REGEX) != 0) +#define PLUMA_SEARCH_SET_MATCH_REGEX(sflags,state) ((state == TRUE) ? \ +(sflags |= PLUMA_SEARCH_MATCH_REGEX) : (sflags &= ~PLUMA_SEARCH_MATCH_REGEX)) + + typedef GMountOperation *(*PlumaMountOperationFactory)(PlumaDocument *doc, gpointer userdata); |