diff options
Diffstat (limited to 'src/Document.h')
-rw-r--r-- | src/Document.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/Document.h b/src/Document.h index 3e57d1449..cbb91e574 100644 --- a/src/Document.h +++ b/src/Document.h @@ -168,6 +168,14 @@ constexpr int LevelNumber(int level) noexcept { return level & SC_FOLDLEVELNUMBERMASK; } +constexpr bool LevelIsHeader(int level) noexcept { + return (level & SC_FOLDLEVELHEADERFLAG) == SC_FOLDLEVELHEADERFLAG; +} + +constexpr bool LevelIsWhitespace(int level) noexcept { + return (level & SC_FOLDLEVELWHITEFLAG) == SC_FOLDLEVELWHITEFLAG; +} + class LexInterface { protected: Document *pdoc; |