This function returns the name of a character class given its number.
This changes the name of \w, \s, \d to be [\w] .... And it adds an
entry for \v and \V. These makes a complete set, and will make things
easier to read, as a result of changes coming in future commits
/* Should be synchronized with * ANYOF_ #xdefines in regcomp.h */
static const char * const anyofs[] = {
- "\\w",
- "\\W",
- "\\s",
- "\\S",
- "\\d",
- "\\D",
+ "[\\w]",
+ "[\\W]",
+ "[\\s]",
+ "[\\S]",
+ "[\\d]",
+ "[\\D]",
"[:alnum:]",
"[:^alnum:]",
"[:alpha:]",
"[:space:]",
"[:^space:]",
"[:blank:]",
- "[:^blank:]"
+ "[:^blank:]",
+ "[\\v]",
+ "[\\V]"
};
RXi_GET_DECL(prog,progi);
GET_RE_DEBUG_FLAGS_DECL;