summaryrefslogtreecommitdiff
path: root/libs/hunspell/src/replist.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'libs/hunspell/src/replist.hxx')
-rw-r--r--libs/hunspell/src/replist.hxx16
1 files changed, 6 insertions, 10 deletions
diff --git a/libs/hunspell/src/replist.hxx b/libs/hunspell/src/replist.hxx
index 08daeb4488..e3462b9f68 100644
--- a/libs/hunspell/src/replist.hxx
+++ b/libs/hunspell/src/replist.hxx
@@ -79,22 +79,18 @@
class RepList {
private:
- RepList(const RepList&);
- RepList& operator=(const RepList&);
-
- protected:
- replentry** dat;
- int size;
- int pos;
-
+ std::vector<replentry*> dat;
public:
explicit RepList(int n);
+ RepList(const RepList&) = delete;
+ RepList& operator=(const RepList&) = delete;
~RepList();
+ bool check_against_breaktable(const std::vector<std::string>& breaktable) const;
+
int add(const std::string& pat1, const std::string& pat2);
- replentry* item(int n);
int find(const char* word);
- std::string replace(const char* word, int n, bool atstart);
+ std::string replace(const size_t wordlen, int n, bool atstart);
bool conv(const std::string& word, std::string& dest);
};
#endif