5 #include "regex/regex.h"
30 #define SPNHRDSZ (sizeof(uint32))
33 typedef struct spell_struct
47 #define SPELLHDRSZ (offsetof(SPELL, word))
49 typedef struct aff_struct
70 #define FF_CROSSPRODUCT 0x01
71 #define FF_COMPOUNDWORD 0x02
72 #define FF_COMPOUNDONLYAFX 0x04
84 struct AffixNode *node;
87 typedef struct AffixNode
91 AffixNodeData data[1];
94 #define ANHRDSZ (sizeof(uint32))
107 char compoundcontrol;
118 CMPDAffix *CompoundAffix;
122 TSLexeme *NINormalizeWord(IspellDict * Conf, char *word);
123 int NIImportAffixes(IspellDict * Conf, const char *filename);
124 int NIImportDictionary(IspellDict * Conf, const char *filename);
126 int NIAddSpell(IspellDict * Conf, const char *word, const char *flag);
127 int NIAddAffix(IspellDict * Conf, int flag, char flagflags, const char *mask, const char *find, const char *repl, int type);
128 void NISortDictionary(IspellDict * Conf);
129 void NISortAffixes(IspellDict * Conf);
130 void NIFree(IspellDict * Conf);