summaryrefslogtreecommitdiff
path: root/libs/hunspell/src/atypes.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'libs/hunspell/src/atypes.hxx')
-rw-r--r--libs/hunspell/src/atypes.hxx13
1 files changed, 5 insertions, 8 deletions
diff --git a/libs/hunspell/src/atypes.hxx b/libs/hunspell/src/atypes.hxx
index d71f62a32d..60826af20e 100644
--- a/libs/hunspell/src/atypes.hxx
+++ b/libs/hunspell/src/atypes.hxx
@@ -57,11 +57,11 @@ static inline void HUNSPELL_WARNING(FILE*, const char*, ...) {}
#include "hashmgr.hxx"
#include "w_char.hxx"
+#include <algorithm>
+#include <string>
#define SETSIZE 256
#define CONTSIZE 65536
-#define MAXWORDLEN 100
-#define MAXWORDUTF8LEN 256
// affentry options
#define aeXPRODUCT (1 << 0)
@@ -98,14 +98,11 @@ static inline void HUNSPELL_WARNING(FILE*, const char*, ...) {}
#define FLAG_NULL 0x00
#define FREE_FLAG(a) a = 0
-#define TESTAFF(a, b, c) \
- (flag_bsearch((unsigned short*)a, (unsigned short)b, c))
+#define TESTAFF(a, b, c) (std::binary_search(a, a + c, b))
struct affentry {
- char* strip;
- char* appnd;
- unsigned char stripl;
- unsigned char appndl;
+ std::string strip;
+ std::string appnd;
char numconds;
char opts;
unsigned short aflag;