123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294 |
- #ifndef BOOST_XPRESSIVE_REGEX_CONSTANTS_HPP_EAN_10_04_2005
- #define BOOST_XPRESSIVE_REGEX_CONSTANTS_HPP_EAN_10_04_2005
- #if defined(_MSC_VER)
- # pragma once
- #endif
- #include <boost/mpl/identity.hpp>
- #ifndef BOOST_XPRESSIVE_DOXYGEN_INVOKED
- # define icase icase_
- #endif
- namespace boost { namespace xpressive { namespace regex_constants
- {
- enum syntax_option_type
- {
-
- ECMAScript = 0,
-
-
-
-
- icase = 1 << 1,
-
-
- nosubs = 1 << 2,
-
-
-
- optimize = 1 << 3,
-
-
-
-
-
- collate = 1 << 4,
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- single_line = 1 << 10,
-
-
-
-
- not_dot_null = 1 << 11,
-
-
- not_dot_newline = 1 << 12,
-
-
- ignore_white_space = 1 << 13
-
- };
- enum match_flag_type
- {
- match_default = 0,
-
-
-
-
- match_not_bol = 1 << 1,
-
-
- match_not_eol = 1 << 2,
-
-
- match_not_bow = 1 << 3,
-
-
- match_not_eow = 1 << 4,
-
-
- match_any = 1 << 7,
-
-
- match_not_null = 1 << 8,
-
-
- match_continuous = 1 << 10,
-
-
- match_partial = 1 << 11,
-
-
-
-
-
- match_prev_avail = 1 << 12,
-
-
-
-
- format_default = 0,
-
-
-
-
-
-
-
-
-
-
-
- format_sed = 1 << 13,
-
-
-
-
-
- format_perl = 1 << 14,
-
-
-
-
-
-
- format_no_copy = 1 << 15,
-
-
-
-
- format_first_only = 1 << 16,
-
-
-
- format_literal = 1 << 17,
-
- format_all = 1 << 18
-
-
-
- };
- enum error_type
- {
- error_collate,
-
- error_ctype,
-
- error_escape,
-
-
- error_subreg,
-
- error_brack,
-
- error_paren,
-
- error_brace,
-
- error_badbrace,
-
- error_range,
-
-
- error_space,
-
-
- error_badrepeat,
-
- error_complexity,
-
-
- error_stack,
-
-
- error_badref,
-
- error_badmark,
-
- error_badlookbehind,
-
-
- error_badrule,
-
- error_badarg,
-
- error_badattr,
-
- error_internal
-
- };
- inline syntax_option_type operator &(syntax_option_type b1, syntax_option_type b2)
- {
- return static_cast<syntax_option_type>(
- static_cast<int>(b1) & static_cast<int>(b2));
- }
- inline syntax_option_type operator |(syntax_option_type b1, syntax_option_type b2)
- {
- return static_cast<syntax_option_type>(static_cast<int>(b1) | static_cast<int>(b2));
- }
- inline syntax_option_type operator ^(syntax_option_type b1, syntax_option_type b2)
- {
- return static_cast<syntax_option_type>(static_cast<int>(b1) ^ static_cast<int>(b2));
- }
- inline syntax_option_type operator ~(syntax_option_type b)
- {
- return static_cast<syntax_option_type>(~static_cast<int>(b));
- }
- inline match_flag_type operator &(match_flag_type b1, match_flag_type b2)
- {
- return static_cast<match_flag_type>(static_cast<int>(b1) & static_cast<int>(b2));
- }
- inline match_flag_type operator |(match_flag_type b1, match_flag_type b2)
- {
- return static_cast<match_flag_type>(static_cast<int>(b1) | static_cast<int>(b2));
- }
- inline match_flag_type operator ^(match_flag_type b1, match_flag_type b2)
- {
- return static_cast<match_flag_type>(static_cast<int>(b1) ^ static_cast<int>(b2));
- }
- inline match_flag_type operator ~(match_flag_type b)
- {
- return static_cast<match_flag_type>(~static_cast<int>(b));
- }
- }}}
- #ifndef BOOST_XPRESSIVE_DOXYGEN_INVOKED
- # undef icase
- #endif
- #endif
|