~ubuntu-branches/ubuntu/raring/geany/raring-proposed

« back to all changes in this revision

Viewing changes to scintilla/RESearch.h

  • Committer: Bazaar Package Importer
  • Author(s): Damián Viano
  • Date: 2008-05-02 11:37:45 UTC
  • mfrom: (1.2.1 upstream) (9 hardy)
  • mto: (3.2.1 squeeze)
  • mto: This revision was merged to the branch mainline in revision 12.
  • Revision ID: james.westby@ubuntu.com-20080502113745-xzp4g6dmovrpoj17
Tags: 0.14-1
New upstream release (Closes: #478126)

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
#ifndef RESEARCH_H
10
10
#define RESEARCH_H
11
11
 
 
12
#ifdef SCI_NAMESPACE
 
13
namespace Scintilla {
 
14
#endif
 
15
 
12
16
/*
13
17
 * The following defines are not meant to be changeable.
14
18
 * They are for readability only.
34
38
        int Execute(CharacterIndexer &ci, int lp, int endp);
35
39
        int Substitute(CharacterIndexer &ci, char *src, char *dst);
36
40
 
37
 
        enum {MAXTAG=10};
38
 
        enum {MAXNFA=2048};
39
 
        enum {NOTFOUND=-1};
 
41
        enum { MAXTAG=10 };
 
42
        enum { MAXNFA=2048 };
 
43
        enum { NOTFOUND=-1 };
40
44
 
41
45
        int bopat[MAXTAG];
42
46
        int eopat[MAXTAG];
45
49
private:
46
50
        void Init();
47
51
        void Clear();
48
 
        void ChSet(char c);
49
 
        void ChSetWithCase(char c, bool caseSensitive);
 
52
        void ChSet(unsigned char c);
 
53
        void ChSetWithCase(unsigned char c, bool caseSensitive);
 
54
        int GetBackslashExpression(const char *pat, int &incr);
50
55
 
51
56
        int PMatch(CharacterIndexer &ci, int lp, int endp, char *ap);
52
57
 
53
58
        int bol;
54
 
        int  tagstk[MAXTAG]; /* subpat tag stack */
 
59
        int tagstk[MAXTAG];  /* subpat tag stack */
55
60
        char nfa[MAXNFA];    /* automaton */
56
61
        int sta;
57
 
        char bittab[BITBLK]; /* bit table for CCL pre-set bits */
 
62
        unsigned char bittab[BITBLK]; /* bit table for CCL pre-set bits */
58
63
        int failure;
59
64
        CharClassify *charClass;
60
65
        bool iswordc(unsigned char x) {
62
67
        }
63
68
};
64
69
 
65
 
#endif
 
70
#ifdef SCI_NAMESPACE
 
71
}
 
72
#endif
 
73
 
 
74
#endif
 
75