From 180ea34843782451f6d0684af51b584b83a4dd62 Mon Sep 17 00:00:00 2001 From: Neil Date: Sun, 3 Oct 2021 08:35:22 +1100 Subject: Feature [feature-requests:#1417] Add DEL (0x7F) to set of space characters. --- test/unit/testCharClassify.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/unit') diff --git a/test/unit/testCharClassify.cxx b/test/unit/testCharClassify.cxx index 18bf9dc29..8a9279848 100644 --- a/test/unit/testCharClassify.cxx +++ b/test/unit/testCharClassify.cxx @@ -30,7 +30,7 @@ protected: for (int ch = 0; ch < 256; ch++) { if (ch == '\r' || ch == '\n') charClass[ch] = CharacterClass::newLine; - else if (ch < 0x20 || ch == ' ') + else if (ch < 0x20 || ch == ' ' || ch == '\x7f') charClass[ch] = CharacterClass::space; else if (ch >= 0x80 || isalnum(ch) || ch == '_') charClass[ch] = CharacterClass::word; -- cgit v1.2.3