aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2019-03-25 13:07:29 +1100
committerNeil <nyamatongwe@gmail.com>2019-03-25 13:07:29 +1100
commit045980dcfa1f8c28ebaaedad961dce3d6a175c51 (patch)
treead977255dd177f73c1ab81be57ba768d264e0cb5 /src
parent2cfe99dc4716bb77d500e2e9b88a57ee621e2135 (diff)
downloadscintilla-mirror-045980dcfa1f8c28ebaaedad961dce3d6a175c51.tar.gz
Convert #defines to enums and hide them in private section so not visible to
other modules.
Diffstat (limited to 'src')
-rw-r--r--src/RESearch.h17
1 files changed, 8 insertions, 9 deletions
diff --git a/src/RESearch.h b/src/RESearch.h
index 285c9dc62..213055dac 100644
--- a/src/RESearch.h
+++ b/src/RESearch.h
@@ -11,14 +11,6 @@
namespace Scintilla {
-/*
- * The following defines are not meant to be changeable.
- * They are for readability only.
- */
-#define MAXCHR 256
-#define CHRBIT 8
-#define BITBLK MAXCHR/CHRBIT
-
class CharacterIndexer {
public:
virtual char CharAt(Sci::Position index) const=0;
@@ -38,7 +30,6 @@ public:
int Execute(const CharacterIndexer &ci, Sci::Position lp, Sci::Position endp);
enum { MAXTAG=10 };
- enum { MAXNFA=4096 };
enum { NOTFOUND=-1 };
Sci::Position bopat[MAXTAG];
@@ -46,6 +37,14 @@ public:
std::string pat[MAXTAG];
private:
+
+ enum { MAXNFA = 4096 };
+ // The following enums are not meant to be changeable.
+ // They are for readability only.
+ enum { MAXCHR = 256 };
+ enum { CHRBIT = 8 };
+ enum { BITBLK = MAXCHR / CHRBIT };
+
void ChSet(unsigned char c);
void ChSetWithCase(unsigned char c, bool caseSensitive);
int GetBackslashExpression(const char *pattern, int &incr);