Fix escaping of new lines in wxRegEx documentation
There doesn't seem to be any way to use backslashes with @c: with a single backslash, it's interpreted as a command, but a double backslash appears in the output. So use `\b` instead of @c \b and also use `...` elsewhere for consistency. Also fix wxRE_NEWLINE description formatting.
This commit is contained in:
parent
c6b5070083
commit
05612989f0
1 changed files with 8 additions and 6 deletions
|
|
@ -33,9 +33,9 @@ enum
|
|||
Use basic regular expression syntax, close to its POSIX definition,
|
||||
but with some extensions still available.
|
||||
|
||||
The word start/end boundary assertions @c "\<" and @c "\>" are only
|
||||
available when using basic syntax, use @c "[[:<:]] and @c "[[:>:]]" or
|
||||
just more general word boundary assertion @c "\b" when not using it.
|
||||
The word start/end boundary assertions `\<` and `\>` are only
|
||||
available when using basic syntax, use `[[:<:]]` and `[[:>:]]` or
|
||||
just more general word boundary assertion `\b` when not using it.
|
||||
*/
|
||||
wxRE_BASIC = 2,
|
||||
|
||||
|
|
@ -46,9 +46,11 @@ enum
|
|||
wxRE_NOSUB = 8,
|
||||
|
||||
/**
|
||||
If not set, treat '\n' as an ordinary character, otherwise it is
|
||||
special: it is not matched by '.' and '^' and '$' always match
|
||||
after/before it regardless of the setting of wxRE_NOT[BE]OL.
|
||||
If not set, treat `\n` as an ordinary character.
|
||||
|
||||
Otherwise `\n` is special: it is not matched by `.` and `^` and `$`
|
||||
always match after/before it regardless of the setting of
|
||||
::wxRE_NOTBOL and ::wxRE_NOTEOL.
|
||||
*/
|
||||
wxRE_NEWLINE = 16,
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue