From c597d73ba23375ab2b86489e0818aad7a86e402b Mon Sep 17 00:00:00 2001 From: Zufu Liu Date: Fri, 12 Apr 2019 08:22:21 +1000 Subject: Bug [#2093]. Improve efficiency with single byte character sets. --- src/DBCS.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src') diff --git a/src/DBCS.h b/src/DBCS.h index ff3f9f22f..58659ee3e 100644 --- a/src/DBCS.h +++ b/src/DBCS.h @@ -10,6 +10,14 @@ namespace Scintilla { +constexpr bool IsDBCSCodePage(int codePage) noexcept { + return codePage == 932 + || codePage == 936 + || codePage == 949 + || codePage == 950 + || codePage == 1361; +} + bool DBCSIsLeadByte(int codePage, char ch) noexcept; } -- cgit v1.2.3