aboutsummaryrefslogtreecommitdiffhomepage
path: root/parser.h
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2012-12-03 17:09:13 +0100
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2012-12-03 17:09:13 +0100
commitaca9517b3d90180581570596cb5ac768ef8c127e (patch)
tree2f7bc6a0a180af4fb03bf6b3085d304b0a964302 /parser.h
parent14246a1c5a8b542eadd19d74640d9e69c7df9b98 (diff)
downloadsciteco-aca9517b3d90180581570596cb5ac768ef8c127e.tar.gz
refactored search command (states): they are now in a separate search.cpp file
Diffstat (limited to 'parser.h')
-rw-r--r--parser.h37
1 files changed, 0 insertions, 37 deletions
diff --git a/parser.h b/parser.h
index 86751bc..ab0e381 100644
--- a/parser.h
+++ b/parser.h
@@ -224,41 +224,6 @@ private:
State *done(const gchar *str) throw (Error);
};
-class StateSearch : public StateExpectString {
-protected:
- struct Parameters {
- gint dot;
- gint from, to;
- gint count;
-
- Buffer *from_buffer, *to_buffer;
- } parameters;
-
- enum MatchState {
- STATE_START,
- STATE_NOT,
- STATE_CTL_E,
- STATE_ANYQ,
- STATE_MANY,
- STATE_ALT
- };
-
- gchar *class2regexp(MatchState &state, const gchar *&pattern,
- bool escape_default = false);
- gchar *pattern2regexp(const gchar *&pattern, bool single_expr = false);
- void do_search(GRegex *re, gint from, gint to, gint &count);
-
- virtual void initial(void) throw (Error);
- virtual void process(const gchar *str, gint new_chars) throw (Error);
- virtual State *done(const gchar *str) throw (Error);
-};
-
-class StateSearchAll : public StateSearch {
-private:
- void initial(void) throw (Error);
- State *done(const gchar *str) throw (Error);
-};
-
namespace States {
extern StateStart start;
extern StateControl control;
@@ -268,8 +233,6 @@ namespace States {
extern StateScintilla_symbols scintilla_symbols;
extern StateScintilla_lParam scintilla_lparam;
extern StateInsert insert;
- extern StateSearch search;
- extern StateSearchAll searchall;
extern State *current;
}