Merge pull request #2212 from TwlyY29/bibtex-parser
[geany-mirror.git] / scintilla / src / DBCS.h
blob58659ee3ee1887068e7b017fc933aedf43098912
1 // Scintilla source code edit control
2 /** @file DBCS.h
3 ** Functions to handle DBCS double byte encodings like Shift-JIS.
4 **/
5 // Copyright 2017 by Neil Hodgson <neilh@scintilla.org>
6 // The License.txt file describes the conditions under which this software may be distributed.
8 #ifndef DBCS_H
9 #define DBCS_H
11 namespace Scintilla {
13 constexpr bool IsDBCSCodePage(int codePage) noexcept {
14 return codePage == 932
15 || codePage == 936
16 || codePage == 949
17 || codePage == 950
18 || codePage == 1361;
21 bool DBCSIsLeadByte(int codePage, char ch) noexcept;
25 #endif