|
|
static const std::string | replace_references (const std::string &original, const backreference_replacements &replace) |
| Replace into the original string occurrences of backreferences with the corresponding string in the replace parameter, i.e., n} backreference will be replaced with replace[n-1]. More...
|
|
static const std::string | replace_references (const std::string &original, const regex_match_results &results) |
| Replace into the original string occurrences of backreferences with the corresponding subexpressions that matched in the results. More...
|
|
static const std::string | preprocess (const std::string &s) |
| translates marked subexpressions (...) into non marked subexpressions (?: ) More...
|
|
static const std::string | make_nonsensitive (const std::string &s) |
| translates the expression into a case nonsensitive expression, i.e., foo is translated into [Ff][Oo][Oo] More...
|
|
static unsigned int | num_of_subexpressions (const std::string &s) |
| counts the number of marked subexpressions (...) More...
|
|
static subexpressions_info | num_of_marked_subexpressions (const std::string &s, bool allow_outer_char=false, bool allow_outer_nonmarked=false) |
| check that the expressions is made up of marked subexpressions (...) and no nested subexpressions and no char outside subexpressions (unless allow_outer_char is true). More...
|
|
static const
subexpressions_strings * | split_marked_subexpressions (const std::string &s) |
| Splits the marked subexpressions of a regular expression made up of only marked subexpressions and no nested subexpressions and char outside subexpressions (thus, before calling this, you must make sure that num_of_marked_subexpressions did not return an error. More...
|
|
static bool | contains_backreferences (const std::string &s) |
| Checks whether the passed regular expression string contains a backreference (e.g., either \1 or a conditional with a backreference (?(1)...) More...
|
|
static backreference_info | num_of_backreferences (const std::string &s) |
| counts the number of backreferences (also in conditionals) More...
|
|
static backreference_info | num_of_references (const std::string &s) |
| counts the number of references (i.e., reference to a matched subexpression of another regular expression) More...
|
|
static const std::string | replace_backreferences (const std::string &original, const backreference_replacements &replace) |
| Replace into the original string occurrences of backreferences with the corresponding string in the replace parameter, i.e.,
backreference will be replaced with replace[n-1]. More...
|
|
static const std::string | replace_backreferences (const std::string &original, const regex_match_results &results) |
| Replace into the original string occurrences of backreferences with the corresponding subexpressions that matched in the results. More...
|
|
preprocess a regular expression, e.g., transform "()" into "(?:)"