summaryrefslogtreecommitdiff
path: root/libs/hunspell/src/replist.hxx
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2023-10-01 13:24:29 +0300
committerGeorge Hazan <george.hazan@gmail.com>2023-10-01 13:24:29 +0300
commit93babaf1665bd2b706a096057fdd06572c159622 (patch)
treeefa9da647497149233facb88a422d9d31564bb4b /libs/hunspell/src/replist.hxx
parent13627600541c19643b96bd4c7b3a3d9fd92040f9 (diff)
fixes #3696 (Update hunspell to 1.7.2)
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