teditor
1.8.0@@fee5e94
Terminal based editor written in C++
|
Go to the documentation of this file.
5 #include <unordered_map>
23 const std::string&
at(
int idx)
const;
26 std::string
getFinalStr(
int idx,
const std::string& str)
const;
34 bool emptyAt(
int i)
const {
return matches.find(i) == matches.end(); }
37 const std::vector<int>&
matchesAt(
int i)
const;
47 std::unordered_map<int, std::vector<int>> matches;
52 void searchLine(
const std::string& str, std::vector<int>& res);
53 void iSearchLine(
const std::string& str, std::vector<int>& res);
void reset()
Definition: isearch.cpp:48
int getOptLoc() const
Definition: cmd_msg_bar.h:72
const std::vector< int > & matchesAt(int i) const
Definition: isearch.cpp:34
bool strFind(const std::string &line, const std::string &str)
Definition: utils.cpp:237
void setOptLoc(int loc)
Definition: cmd_msg_bar.h:73
void setStartLine(int line)
Definition: cmd_msg_bar.h:76
int length() const
Definition: buffer.h:92
bool updateChoices(const std::string &str)
Definition: isearch.cpp:40
Definition: cmd_msg_bar.h:50
const Point & getPoint() const
Definition: buffer.h:165
T y
Definition: pos2d.h:16
const std::string & get() const
Definition: line.h:51
Definition: cmd_msg_bar.h:15
Line & at(int idx)
Definition: buffer.h:98
int size() const
Definition: isearch.h:24
bool iStrFindEmpty(const std::string &line, const std::string &str)
Definition: isearch.cpp:15
#define ASSERT(check, fmt,...)
Macro to assert with runtime_error exception if the check fails.
Definition: utils.h:35
bool emptyAt(int i) const
Definition: isearch.h:34
std::string getFinalStr(int idx, const std::string &str) const
Definition: isearch.cpp:26
ISearch(Window &w, bool _noCase)
Definition: isearch.cpp:21
void updateMainBuffer(CmdMsgBar &cmBar)
Definition: isearch.cpp:68
void resetLocations(CmdMsgBar &cmBar)
Definition: isearch.cpp:63
bool iStrFind(const std::string &line, const std::string &str)
Definition: utils.cpp:241
void gotoLine(int lineNum, const Point &dim)
Definition: buffer.cpp:797
Incremental search support used by Ctrl-F command.
Definition: isearch.h:19
const std::string & at(int idx) const
Definition: isearch.cpp:30
bool strFindEmpty(const std::string &line, const std::string &str)
Definition: isearch.cpp:10
const Pos2di & dim() const
Definition: window.h:59