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
commit81082e48424f6a18d306dfb073ded8ef6688434e (patch)
tree9f478fc5ec7c59a0636ae0f82fdd72a5cae8367f /src
parent50bbd6a2bea15a623d19a8a20c5cb01f8cfbe1bd (diff)
downloadscintilla-mirror-81082e48424f6a18d306dfb073ded8ef6688434e.tar.gz
Backport: Convert #defines to enums and hide them in private section so not visible to
other modules. Backport of changeset 7331:edd77716f615.
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);