Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::xpressive::regex_constants Namespace Reference

Enumerations

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
}
 Flags used to customize the regex syntax. More...
 
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
}
 Flags used to customize the behavior of the regex algorithms. More...
 
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
}
 Error codes used by the regex_error type. More...
 

Functions

syntax_option_type operator& (syntax_option_type b1, syntax_option_type b2)
 INTERNAL ONLY. More...
 
syntax_option_type operator| (syntax_option_type b1, syntax_option_type b2)
 INTERNAL ONLY. More...
 
syntax_option_type operator^ (syntax_option_type b1, syntax_option_type b2)
 INTERNAL ONLY. More...
 
syntax_option_type operator~ (syntax_option_type b)
 INTERNAL ONLY. More...
 
match_flag_type operator& (match_flag_type b1, match_flag_type b2)
 INTERNAL ONLY. More...
 
match_flag_type operator| (match_flag_type b1, match_flag_type b2)
 INTERNAL ONLY. More...
 
match_flag_type operator^ (match_flag_type b1, match_flag_type b2)
 INTERNAL ONLY. More...
 
match_flag_type operator~ (match_flag_type b)
 INTERNAL ONLY. More...
 

Enumeration Type Documentation

Error codes used by the regex_error type.

Enumerator
error_collate 

The expression contained an invalid collating element name.

error_ctype 

The expression contained an invalid character class name.

error_escape 

The expression contained an invalid escaped character, or a trailing escape.

error_subreg 

The expression contained an invalid back-reference.

error_brack 

The expression contained mismatched [ and ].

error_paren 

The expression contained mismatched ( and ).

error_brace 

The expression contained mismatched { and }.

error_badbrace 

The expression contained an invalid range in a {} expression.

error_range 

The expression contained an invalid character range, for example [b-a].

error_space 

There was insufficient memory to convert the expression into a finite state machine.

error_badrepeat 

One of *?+{ was not preceded by a valid regular expression.

error_complexity 

The complexity of an attempted match against a regular expression exceeded a pre-set level.

error_stack 

There was insufficient memory to determine whether the regular expression could match the specified character sequence.

error_badref 

An nested regex is uninitialized.

error_badmark 

An invalid use of a named capture.

error_badlookbehind 

An attempt to create a variable-width look-behind assertion was detected.

error_badrule 

An invalid use of a rule was detected.

error_badarg 

An argument to an action was unbound.

error_badattr 

Tried to read from an uninitialized attribute.

error_internal 

An internal error has occurred.

Flags used to customize the behavior of the regex algorithms.

Enumerator
match_default 

Specifies that matching of regular expressions proceeds without any modification of the normal rules used in ECMA-262, ECMAScript Language Specification, Chapter 15 part 10, RegExp (Regular Expression) Objects (FWD.1)

match_not_bol 

Specifies that the expression "^" should not be matched against the sub-sequence [first,first).

match_not_eol 

Specifies that the expression "\$" should not be matched against the sub-sequence [last,last).

match_not_bow 

Specifies that the expression "\\b" should not be matched against the sub-sequence [first,first).

match_not_eow 

Specifies that the expression "\\b" should not be matched against the sub-sequence [last,last).

match_any 

Specifies that if more than one match is possible then any match is an acceptable result.

match_not_null 

Specifies that the expression can not be matched against an empty sequence.

match_continuous 

Specifies that the expression must match a sub-sequence that begins at first.

match_partial 

Specifies that if no match can be found, then it is acceptable to return a match [from, last) where from != last, if there exists some sequence of characters [from,to) of which [from,last) is a prefix, and which would result in a full match.

match_prev_avail 

Specifies that –first is a valid iterator position, when this flag is set then the flags match_not_bol and match_not_bow are ignored by the regular expression algorithms (RE.7) and iterators (RE.8).

format_default 

Specifies that when a regular expression match is to be replaced by a new string, that the new string is constructed using the rules used by the ECMAScript replace function in ECMA-262, ECMAScript Language Specification, Chapter 15 part 5.4.11 String.prototype.replace.

(FWD.1). In addition during search and replace operations then all non-overlapping occurrences of the regular expression are located and replaced, and sections of the input that did not match the expression, are copied unchanged to the output string.

format_sed 

Specifies that when a regular expression match is to be replaced by a new string, that the new string is constructed using the rules used by the Unix sed utility in IEEE Std 1003.1-2001, Portable Operating SystemInterface (POSIX), Shells and Utilities.

format_perl 

Specifies that when a regular expression match is to be replaced by a new string, that the new string is constructed using an implementation defined superset of the rules used by the ECMAScript replace function in ECMA-262, ECMAScript Language Specification, Chapter 15 part 5.4.11 String.prototype.replace (FWD.1).

format_no_copy 

When specified during a search and replace operation, then sections of the character container sequence being searched that do match the regular expression, are not copied to the output string.

format_first_only 

When specified during a search and replace operation, then only the first occurrence of the regular expression is replaced.

format_literal 

Treat the format string as a literal.

format_all 

Specifies that all syntax extensions are enabled, including conditional (?ddexpression1:expression2) replacements.

Flags used to customize the regex syntax.

Enumerator
ECMAScript 

Specifies that the grammar recognized by the regular expression engine uses its normal semantics: that is the same as that given in the ECMA-262, ECMAScript Language Specification, Chapter 15 part 10, RegExp (Regular Expression) Objects (FWD.1).

icase_ 

Specifies that matching of regular expressions against a character.

container sequence shall be performed without regard to case.

nosubs 

Specifies that when a regular expression is matched against a character container sequence, then no sub-expression matches are to be stored in the supplied match_results structure.

optimize 

Specifies that the regular expression engine should pay more attention to the speed with which regular expressions are matched, and less to the speed with which regular expression objects are constructed.

Otherwise it has no detectable effect on the program output.

collate 

Specifies that character ranges of the form "[a-b]" should be locale sensitive.

single_line 

Specifies that the ^ and $ metacharacters DO NOT match at internal line breaks.

Note that this is the opposite of the perl default. It is the inverse of perl's /m (multi-line) modifier.

not_dot_null 

Specifies that the .

metacharacter does not match the null character \0.

not_dot_newline 

Specifies that the .

metacharacter does not match the newline character \n.

ignore_white_space 

Specifies that non-escaped white-space is not significant.

Function Documentation

syntax_option_type boost::xpressive::regex_constants::operator& ( syntax_option_type  b1,
syntax_option_type  b2 
)
inline

INTERNAL ONLY.

match_flag_type boost::xpressive::regex_constants::operator& ( match_flag_type  b1,
match_flag_type  b2 
)
inline

INTERNAL ONLY.

syntax_option_type boost::xpressive::regex_constants::operator^ ( syntax_option_type  b1,
syntax_option_type  b2 
)
inline

INTERNAL ONLY.

match_flag_type boost::xpressive::regex_constants::operator^ ( match_flag_type  b1,
match_flag_type  b2 
)
inline

INTERNAL ONLY.

syntax_option_type boost::xpressive::regex_constants::operator| ( syntax_option_type  b1,
syntax_option_type  b2 
)
inline

INTERNAL ONLY.

match_flag_type boost::xpressive::regex_constants::operator| ( match_flag_type  b1,
match_flag_type  b2 
)
inline

INTERNAL ONLY.

syntax_option_type boost::xpressive::regex_constants::operator~ ( syntax_option_type  b)
inline

INTERNAL ONLY.

References boost::asio::b.

match_flag_type boost::xpressive::regex_constants::operator~ ( match_flag_type  b)
inline

INTERNAL ONLY.

References boost::asio::b.