Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:51:27

0001 /*
0002  *
0003  * Copyright (c) 2003
0004  * John Maddock
0005  *
0006  * Use, modification and distribution are subject to the 
0007  * Boost Software License, Version 1.0. (See accompanying file 
0008  * LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
0009  *
0010  */
0011  
0012  /*
0013   *   LOCATION:    see http://www.boost.org for most recent version.
0014   *   FILE         syntax_type.hpp
0015   *   VERSION      see <boost/version.hpp>
0016   *   DESCRIPTION: Declares regular expression synatx type enumerator.
0017   */
0018 
0019 #ifndef BOOST_REGEX_SYNTAX_TYPE_HPP
0020 #define BOOST_REGEX_SYNTAX_TYPE_HPP
0021 
0022 namespace boost{
0023 namespace regex_constants{
0024 
0025 typedef unsigned char syntax_type;
0026 
0027 //
0028 // values chosen are binary compatible with previous version:
0029 //
0030 static const syntax_type syntax_char = 0;
0031 static const syntax_type syntax_open_mark = 1;
0032 static const syntax_type syntax_close_mark = 2;
0033 static const syntax_type syntax_dollar = 3;
0034 static const syntax_type syntax_caret = 4;
0035 static const syntax_type syntax_dot = 5;
0036 static const syntax_type syntax_star = 6;
0037 static const syntax_type syntax_plus = 7;
0038 static const syntax_type syntax_question = 8;
0039 static const syntax_type syntax_open_set = 9;
0040 static const syntax_type syntax_close_set = 10;
0041 static const syntax_type syntax_or = 11;
0042 static const syntax_type syntax_escape = 12;
0043 static const syntax_type syntax_dash = 14;
0044 static const syntax_type syntax_open_brace = 15;
0045 static const syntax_type syntax_close_brace = 16;
0046 static const syntax_type syntax_digit = 17;
0047 static const syntax_type syntax_comma = 27;
0048 static const syntax_type syntax_equal = 37;
0049 static const syntax_type syntax_colon = 36;
0050 static const syntax_type syntax_not = 53;
0051 
0052 // extensions:
0053 
0054 static const syntax_type syntax_hash = 13;
0055 static const syntax_type syntax_newline = 26;
0056 
0057 // escapes:
0058 
0059 typedef syntax_type escape_syntax_type;
0060 
0061 static const escape_syntax_type escape_type_word_assert = 18;
0062 static const escape_syntax_type escape_type_not_word_assert = 19;
0063 static const escape_syntax_type escape_type_control_f = 29;
0064 static const escape_syntax_type escape_type_control_n = 30;
0065 static const escape_syntax_type escape_type_control_r = 31;
0066 static const escape_syntax_type escape_type_control_t = 32;
0067 static const escape_syntax_type escape_type_control_v = 33;
0068 static const escape_syntax_type escape_type_ascii_control = 35;
0069 static const escape_syntax_type escape_type_hex = 34;
0070 static const escape_syntax_type escape_type_unicode = 0; // not used
0071 static const escape_syntax_type escape_type_identity = 0; // not used
0072 static const escape_syntax_type escape_type_backref = syntax_digit;
0073 static const escape_syntax_type escape_type_decimal = syntax_digit; // not used
0074 static const escape_syntax_type escape_type_class = 22; 
0075 static const escape_syntax_type escape_type_not_class = 23; 
0076 
0077 // extensions:
0078 
0079 static const escape_syntax_type escape_type_left_word = 20;
0080 static const escape_syntax_type escape_type_right_word = 21;
0081 static const escape_syntax_type escape_type_start_buffer = 24;                 // for \`
0082 static const escape_syntax_type escape_type_end_buffer = 25;                   // for \'
0083 static const escape_syntax_type escape_type_control_a = 28;                    // for \a
0084 static const escape_syntax_type escape_type_e = 38;                            // for \e
0085 static const escape_syntax_type escape_type_E = 47;                            // for \Q\E
0086 static const escape_syntax_type escape_type_Q = 48;                            // for \Q\E
0087 static const escape_syntax_type escape_type_X = 49;                            // for \X
0088 static const escape_syntax_type escape_type_C = 50;                            // for \C
0089 static const escape_syntax_type escape_type_Z = 51;                            // for \Z
0090 static const escape_syntax_type escape_type_G = 52;                            // for \G
0091 
0092 static const escape_syntax_type escape_type_property = 54;                     // for \p
0093 static const escape_syntax_type escape_type_not_property = 55;                 // for \P
0094 static const escape_syntax_type escape_type_named_char = 56;                   // for \N
0095 static const escape_syntax_type escape_type_extended_backref = 57;             // for \g
0096 static const escape_syntax_type escape_type_reset_start_mark = 58;             // for \K
0097 static const escape_syntax_type escape_type_line_ending = 59;                  // for \R
0098 
0099 static const escape_syntax_type syntax_max = 60;
0100 
0101 }
0102 }
0103 
0104 
0105 #endif