diff options
| author | Neil <nyamatongwe@gmail.com> | 2020-03-23 11:22:01 +1100 |
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2020-03-23 11:22:01 +1100 |
| commit | 96962eeb0c0ed87e1aa2bcf016cd5cd23bc111f2 (patch) | |
| tree | 39a02effd2aac10f9bc063ac422128cd427f696a /src/RESearch.h | |
| parent | 48471c6743cb5eac8642c9cc680ec8657c8ea036 (diff) | |
| download | scintilla-mirror-96962eeb0c0ed87e1aa2bcf016cd5cd23bc111f2.tar.gz | |
Backport: Use noexcept, const, and constexpr where possible.
Backport of changeset 8021:0dbef7a9205f.
Diffstat (limited to 'src/RESearch.h')
| -rw-r--r-- | src/RESearch.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/RESearch.h b/src/RESearch.h index 213055dac..10ed4380d 100644 --- a/src/RESearch.h +++ b/src/RESearch.h @@ -24,9 +24,9 @@ public: explicit RESearch(CharClassify *charClassTable); // No dynamic allocation so default copy constructor and assignment operator are OK. ~RESearch(); - void Clear(); + void Clear() noexcept; void GrabMatches(const CharacterIndexer &ci); - const char *Compile(const char *pattern, Sci::Position length, bool caseSensitive, bool posix); + const char *Compile(const char *pattern, Sci::Position length, bool caseSensitive, bool posix) noexcept; int Execute(const CharacterIndexer &ci, Sci::Position lp, Sci::Position endp); enum { MAXTAG=10 }; @@ -45,9 +45,9 @@ private: 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); + void ChSet(unsigned char c) noexcept; + void ChSetWithCase(unsigned char c, bool caseSensitive) noexcept; + int GetBackslashExpression(const char *pattern, int &incr) noexcept; Sci::Position PMatch(const CharacterIndexer &ci, Sci::Position lp, Sci::Position endp, char *ap); @@ -58,7 +58,7 @@ private: unsigned char bittab[BITBLK]; /* bit table for CCL pre-set bits */ int failure; CharClassify *charClass; - bool iswordc(unsigned char x) const { + bool iswordc(unsigned char x) const noexcept { return charClass->IsWord(x); } }; |
