wex v24.04.0
Public Member Functions | List of all members
wex::data::substitute Class Reference

Holds substitute data for addressrange. More...

#include <wex/data/substitute.h>

Public Member Functions

 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.
 

Detailed Description

Holds substitute data for addressrange.