diff options
| author | Neil <nyamatongwe@gmail.com> | 2021-10-03 08:35:22 +1100 |
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2021-10-03 08:35:22 +1100 |
| commit | 180ea34843782451f6d0684af51b584b83a4dd62 (patch) | |
| tree | 22eb7ac994e8cb719c66ca94a63b4ca266b6af31 /src/CharacterType.h | |
| parent | 58c944057852a1f1fceecedf7378317b49007c20 (diff) | |
| download | scintilla-mirror-180ea34843782451f6d0684af51b584b83a4dd62.tar.gz | |
Feature [feature-requests:#1417] Add DEL (0x7F) to set of space characters.
Diffstat (limited to 'src/CharacterType.h')
| -rw-r--r-- | src/CharacterType.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/CharacterType.h b/src/CharacterType.h index dcef6aa78..70f4cbd05 100644 --- a/src/CharacterType.h +++ b/src/CharacterType.h @@ -20,6 +20,10 @@ constexpr bool IsASpaceOrTab(int ch) noexcept { return (ch == ' ') || (ch == '\t'); } +constexpr bool IsControl(int ch) noexcept { + return ((ch >= 0) && (ch <= 0x1F)) || (ch == 0x7F); +} + constexpr bool IsADigit(int ch) noexcept { return (ch >= '0') && (ch <= '9'); } |
