~ubuntu-branches/ubuntu/karmic/enchant/karmic

« back to all changes in this revision

Viewing changes to src/myspell/affentry.hxx

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2006-02-06 23:17:30 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20060206231730-eerhkbqake8mxfn5
Tags: 1.2.2-0ubuntu1
* New upstream version
* debian/rules:
  - don't remove the autogenerated .hxx, fix the build

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
#include "baseaffix.hxx"
6
6
#include "affixmgr.hxx"
7
7
 
8
 
 
9
8
/* A Prefix Entry  */
10
9
 
11
10
class PfxEntry : public AffEntry
22
21
  PfxEntry(AffixMgr* pmgr, affentry* dp );
23
22
  ~PfxEntry();
24
23
 
25
 
  struct hentry *      check(const char * word, int len);
26
 
 
27
 
  inline bool          allowCross() { return ((xpflg & XPRODUCT) != 0); }
28
 
  inline unsigned char getFlag()   { return achar;   }
 
24
  inline bool          allowCross() { return ((opts & aeXPRODUCT) != 0); }
 
25
  struct hentry *      check(const char * word, int len, char in_compound, 
 
26
                            const FLAG needflag = FLAG_NULL);
 
27
 
 
28
  struct hentry *      check_twosfx(const char * word, int len, char in_compound, const FLAG needflag = NULL);
 
29
 
 
30
  char *      check_morph(const char * word, int len, char in_compound,
 
31
                            const FLAG needflag = FLAG_NULL);
 
32
 
 
33
  char *      check_twosfx_morph(const char * word, int len,
 
34
                  char in_compound, const FLAG needflag = FLAG_NULL);
 
35
 
 
36
  inline FLAG getFlag()   { return aflag;   }
29
37
  inline const char *  getKey()    { return appnd;  } 
30
38
  char *               add(const char * word, int len);
31
39
 
 
40
  inline short getKeyLen() { return appndl; } 
 
41
 
 
42
  inline const char *  getMorph()    { return morphcode;  } 
 
43
 
 
44
  inline const unsigned short * getCont()    { return contclass;  } 
 
45
  inline short           getContLen()    { return contclasslen;  } 
 
46
 
32
47
  inline PfxEntry *    getNext()   { return next;   }
33
48
  inline PfxEntry *    getNextNE() { return nextne; }
34
49
  inline PfxEntry *    getNextEQ() { return nexteq; }
38
53
  inline void   setNextNE(PfxEntry * ptr) { nextne = ptr; }
39
54
  inline void   setNextEQ(PfxEntry * ptr) { nexteq = ptr; }
40
55
  inline void   setFlgNxt(PfxEntry * ptr) { flgnxt = ptr; }
 
56
  
 
57
  inline int    test_condition(const char * st);
41
58
};
42
59
 
43
60
 
54
71
       SfxEntry *   nexteq;
55
72
       SfxEntry *   nextne;
56
73
       SfxEntry *   flgnxt;
 
74
           
 
75
       SfxEntry *   l_morph;
 
76
       SfxEntry *   r_morph;
 
77
       SfxEntry *   eq_morph;
57
78
 
58
79
public:
59
80
 
60
81
  SfxEntry(AffixMgr* pmgr, affentry* dp );
61
82
  ~SfxEntry();
62
83
 
 
84
  inline bool          allowCross() { return ((opts & aeXPRODUCT) != 0); }
63
85
  struct hentry *   check(const char * word, int len, int optflags, 
64
 
                                                       AffEntry* ppfx);
65
 
 
66
 
  inline bool          allowCross() { return ((xpflg & XPRODUCT) != 0); }
67
 
  inline unsigned char getFlag()   { return achar;   }
 
86
                    AffEntry* ppfx, char ** wlst, int maxSug, int * ns,
 
87
                    const FLAG cclass = FLAG_NULL, const FLAG needflag = FLAG_NULL);
 
88
 
 
89
  struct hentry *   check_twosfx(const char * word, int len, int optflags, AffEntry* ppfx, const FLAG needflag = NULL);
 
90
 
 
91
  char *      check_twosfx_morph(const char * word, int len, int optflags,
 
92
                 AffEntry* ppfx, const FLAG needflag = FLAG_NULL);
 
93
  struct hentry * get_next_homonym(struct hentry * he);
 
94
  struct hentry * get_next_homonym(struct hentry * word, int optflags, AffEntry* ppfx, 
 
95
    const FLAG cclass, const FLAG needflag);
 
96
 
 
97
 
 
98
  inline FLAG getFlag()   { return aflag;   }
68
99
  inline const char *  getKey()    { return rappnd; } 
69
100
  char *               add(const char * word, int len);
70
101
 
 
102
 
 
103
  inline const char *  getMorph()    { return morphcode;  } 
 
104
 
 
105
  inline const unsigned short * getCont()    { return contclass;  } 
 
106
  inline short           getContLen()    { return contclasslen;  } 
 
107
  inline const char *  getAffix()    { return appnd; } 
 
108
 
 
109
  inline short getKeyLen() { return appndl; } 
 
110
 
71
111
  inline SfxEntry *    getNext()   { return next;   }
72
112
  inline SfxEntry *    getNextNE() { return nextne; }
73
113
  inline SfxEntry *    getNextEQ() { return nexteq; }
 
114
 
 
115
  inline SfxEntry *    getLM() { return l_morph; }
 
116
  inline SfxEntry *    getRM() { return r_morph; }
 
117
  inline SfxEntry *    getEQM() { return eq_morph; }
74
118
  inline SfxEntry *    getFlgNxt() { return flgnxt; }
75
119
 
76
120
  inline void   setNext(SfxEntry * ptr)   { next = ptr;   }
78
122
  inline void   setNextEQ(SfxEntry * ptr) { nexteq = ptr; }
79
123
  inline void   setFlgNxt(SfxEntry * ptr) { flgnxt = ptr; }
80
124
 
 
125
  inline int    test_condition(const char * st, const char * begin);
81
126
};
82
127
 
83
 
 
84
128
#endif
85
129
 
86
130