123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156 |
-
-
- #ifndef BOOST_REGEX_V5_MATCH_FLAGS
- #define BOOST_REGEX_V5_MATCH_FLAGS
- #ifdef __cplusplus
- # include <cstdint>
- #endif
- #ifdef __cplusplus
- namespace boost{
- namespace regex_constants{
- #endif
- #ifdef BOOST_REGEX_MSVC
- #pragma warning(push)
- #if BOOST_REGEX_MSVC >= 1800
- #pragma warning(disable : 26812)
- #endif
- #endif
- typedef enum _match_flags
- {
- match_default = 0,
- match_not_bol = 1,
- match_not_eol = match_not_bol << 1,
- match_not_bob = match_not_eol << 1,
- match_not_eob = match_not_bob << 1,
- match_not_bow = match_not_eob << 1,
- match_not_eow = match_not_bow << 1,
- match_not_dot_newline = match_not_eow << 1,
- match_not_dot_null = match_not_dot_newline << 1,
- match_prev_avail = match_not_dot_null << 1,
- match_init = match_prev_avail << 1,
- match_any = match_init << 1,
- match_not_null = match_any << 1,
- match_continuous = match_not_null << 1,
-
- match_partial = match_continuous << 1,
-
- match_stop = match_partial << 1,
- match_not_initial_null = match_stop,
- match_all = match_stop << 1,
- match_perl = match_all << 1,
- match_posix = match_perl << 1,
- match_nosubs = match_posix << 1,
- match_extra = match_nosubs << 1,
- match_single_line = match_extra << 1,
- match_unused1 = match_single_line << 1,
- match_unused2 = match_unused1 << 1,
- match_unused3 = match_unused2 << 1,
- match_max = match_unused3,
- format_perl = 0,
- format_default = 0,
- format_sed = match_max << 1,
- format_all = format_sed << 1,
- format_no_copy = format_all << 1,
- format_first_only = format_no_copy << 1,
- format_is_if = format_first_only << 1,
- format_literal = format_is_if << 1,
- match_not_any = match_not_bol | match_not_eol | match_not_bob
- | match_not_eob | match_not_bow | match_not_eow | match_not_dot_newline
- | match_not_dot_null | match_prev_avail | match_init | match_not_null
- | match_continuous | match_partial | match_stop | match_not_initial_null
- | match_stop | match_all | match_perl | match_posix | match_nosubs
- | match_extra | match_single_line | match_unused1 | match_unused2
- | match_unused3 | match_max | format_perl | format_default | format_sed
- | format_all | format_no_copy | format_first_only | format_is_if
- | format_literal
- } match_flags;
- typedef match_flags match_flag_type;
- #ifdef __cplusplus
- inline match_flags operator&(match_flags m1, match_flags m2)
- { return static_cast<match_flags>(static_cast<std::int32_t>(m1) & static_cast<std::int32_t>(m2)); }
- inline match_flags operator|(match_flags m1, match_flags m2)
- { return static_cast<match_flags>(static_cast<std::int32_t>(m1) | static_cast<std::int32_t>(m2)); }
- inline match_flags operator^(match_flags m1, match_flags m2)
- { return static_cast<match_flags>(static_cast<std::int32_t>(m1) ^ static_cast<std::int32_t>(m2)); }
- inline match_flags operator~(match_flags m1)
- { return static_cast<match_flags>(~static_cast<std::int32_t>(m1)); }
- inline match_flags& operator&=(match_flags& m1, match_flags m2)
- { m1 = m1&m2; return m1; }
- inline match_flags& operator|=(match_flags& m1, match_flags m2)
- { m1 = m1|m2; return m1; }
- inline match_flags& operator^=(match_flags& m1, match_flags m2)
- { m1 = m1^m2; return m1; }
- #endif
- #ifdef __cplusplus
- }
- using regex_constants::match_flag_type;
- using regex_constants::match_default;
- using regex_constants::match_not_bol;
- using regex_constants::match_not_eol;
- using regex_constants::match_not_bob;
- using regex_constants::match_not_eob;
- using regex_constants::match_not_bow;
- using regex_constants::match_not_eow;
- using regex_constants::match_not_dot_newline;
- using regex_constants::match_not_dot_null;
- using regex_constants::match_prev_avail;
- using regex_constants::match_any;
- using regex_constants::match_not_null;
- using regex_constants::match_continuous;
- using regex_constants::match_partial;
- using regex_constants::match_all;
- using regex_constants::match_perl;
- using regex_constants::match_posix;
- using regex_constants::match_nosubs;
- using regex_constants::match_extra;
- using regex_constants::match_single_line;
- using regex_constants::format_all;
- using regex_constants::format_sed;
- using regex_constants::format_perl;
- using regex_constants::format_default;
- using regex_constants::format_no_copy;
- using regex_constants::format_first_only;
- #ifdef BOOST_REGEX_MSVC
- #pragma warning(pop)
- #endif
- }
- #endif
- #endif
|