Holds substitute data for addressrange.
More...
#include <wex/data/substitute.h>
|
| substitute (const std::string &text=std::string()) |
| Default constructor, calls set.
|
|
auto & | commands () const |
| Returns commands.
|
|
bool | is_clear () const |
| Returns whether clear indicator was asked (:g//)
|
|
bool | is_confirmed () const |
| Returns whether options indicate confirmed.
|
|
bool | is_global () const |
| Returns whether options indicate global.
|
|
bool | is_global_command () const |
| Returns whether command indicates global.
|
|
bool | is_ignore_case () const |
| Returns whether options indicate ignore case.
|
|
bool | is_inverse () const |
| Returns whether inverse option is present (for set_global, is_global_command).
|
|
auto & | pattern () const |
| Returns pattern.
|
|
auto & | replacement () const |
| Returns replacement.
|
|
bool | set (const std::string &text) |
| Sets pattern, replacement, options from text: s/pattern/text/options.
|
|
bool | set_global (const std::string &text) |
| Sets pattern, commands from text (for global substitute).
|
|
void | set_options (const std::string &text) |
| Sets options only.
|
|
Holds substitute data for addressrange.