teditor  1.8.0@@fee5e94
Terminal based editor written in C++
Public Member Functions | List of all members
teditor::ISearch Class Reference

Incremental search support used by Ctrl-F command. More...

#include <isearch.h>

+ Inheritance diagram for teditor::ISearch:

Public Member Functions

 ISearch (Window &w, bool _noCase)
 
const std::string & at (int idx) const
 
int size () const
 
bool updateChoices (const std::string &str)
 
std::string getFinalStr (int idx, const std::string &str) const
 
void updateMainBuffer (CmdMsgBar &cmBar)
 
void resetLocations (CmdMsgBar &cmBar)
 
void reset ()
 
bool emptyAt (int i) const
 
const std::vector< int > & matchesAt (int i) const
 
- Public Member Functions inherited from teditor::Choices
 Choices (ChoicesFilter cf)
 
virtual ~Choices ()
 
bool match (const std::string &line, const std::string &str) const
 
bool match (int idx, const std::string &str) const
 
void setChoiceIdx (int idx)
 
int getChoiceIdx () const
 

Detailed Description

Incremental search support used by Ctrl-F command.

Constructor & Destructor Documentation

◆ ISearch()

teditor::ISearch::ISearch ( Window w,
bool  _noCase 
)

Member Function Documentation

◆ at()

const std::string & teditor::ISearch::at ( int  idx) const
virtual

Implements teditor::Choices.

◆ emptyAt()

bool teditor::ISearch::emptyAt ( int  i) const
inline

check whether there are matches at a given line num

◆ getFinalStr()

std::string teditor::ISearch::getFinalStr ( int  idx,
const std::string &  str 
) const
virtual

Implements teditor::Choices.

◆ matchesAt()

const std::vector< int > & teditor::ISearch::matchesAt ( int  i) const

fetch matches for a given line num

◆ reset()

void teditor::ISearch::reset ( )

reset the search state

◆ resetLocations()

void teditor::ISearch::resetLocations ( CmdMsgBar cmBar)
virtual

Reimplemented from teditor::Choices.

◆ size()

int teditor::ISearch::size ( ) const
inlinevirtual

Implements teditor::Choices.

◆ updateChoices()

bool teditor::ISearch::updateChoices ( const std::string &  str)
virtual

Reimplemented from teditor::Choices.

◆ updateMainBuffer()

void teditor::ISearch::updateMainBuffer ( CmdMsgBar cmBar)
virtual

Reimplemented from teditor::Choices.


The documentation for this class was generated from the following files: