wex v24.10.0
Public Member Functions | Static Public Member Functions | List of all members
wex::data::find Class Reference

Offers a class to find data inside a factory stc or stream component. More...

#include <wex/data/find.h>

Public Member Functions

 find (const std::string &text=std::string(), bool forward=true)
 Default constructor. Sets members only.
 
 find (wex::factory::stc *stc, const std::string &text, bool forward=true)
 Constructor. Sets stc and positions.
 
 find (const std::string &text, int line, int pos, bool forward=true)
 Constructor. Sets stream info.
 
int end_pos () const
 Returns stc end pos.
 
bool find_margin (int &line)
 Returns true if text found in margin, and sets line.
 
int flags () const
 Returns find flags.
 
findflags (int rhs)
 Sets find flags.
 
bool is_forward () const
 Returns if forward search is true.
 
int line_no () const
 Returns stream line.
 
int pos () const
 Returns sream pos.
 
int start_pos () const
 Returns stc start pos.
 
void statustext () const
 Updates statusbar with info.
 
factory::stcstc ()
 Returns stc member.
 
const auto & text () const
 Returns text.
 

Static Public Member Functions

static bool recursive ()
 Returns if recursive is true.
 
static void recursive (bool rhs)
 Sets recursive.
 

Detailed Description

Offers a class to find data inside a factory stc or stream component.

Constructor & Destructor Documentation

◆ find() [1/3]

wex::data::find::find ( const std::string & text = std::string(),
bool forward = true )

Default constructor. Sets members only.

Parameters
texttext to find
forwardforward

◆ find() [2/3]

wex::data::find::find ( wex::factory::stc * stc,
const std::string & text,
bool forward = true )

Constructor. Sets stc and positions.

Parameters
stccomponent
texttext to find
forwardforward

◆ find() [3/3]

wex::data::find::find ( const std::string & text,
int line,
int pos,
bool forward = true )

Constructor. Sets stream info.

Parameters
texttext to find
lineline
posstream pos
forwardforward