Use tm_parser_scope_separator() instead of symbols_get_context_separator()
[geany-mirror.git] / scintilla / src / CaseFolder.h
blob45abe4d8f54bac32b8b6a0322e12c091323ebf43
1 // Scintilla source code edit control
2 /** @file CaseFolder.h
3 ** Classes for case folding.
4 **/
5 // Copyright 1998-2013 by Neil Hodgson <neilh@scintilla.org>
6 // The License.txt file describes the conditions under which this software may be distributed.
8 #ifndef CASEFOLDER_H
9 #define CASEFOLDER_H
11 namespace Scintilla::Internal {
13 class CaseFolder {
14 public:
15 virtual ~CaseFolder();
16 virtual size_t Fold(char *folded, size_t sizeFolded, const char *mixed, size_t lenMixed) = 0;
19 class CaseFolderTable : public CaseFolder {
20 protected:
21 char mapping[256];
22 public:
23 CaseFolderTable() noexcept;
24 size_t Fold(char *folded, size_t sizeFolded, const char *mixed, size_t lenMixed) override;
25 void SetTranslation(char ch, char chTranslation) noexcept;
26 void StandardASCII() noexcept;
29 class ICaseConverter;
31 class CaseFolderUnicode : public CaseFolderTable {
32 ICaseConverter *converter;
33 public:
34 CaseFolderUnicode();
35 size_t Fold(char *folded, size_t sizeFolded, const char *mixed, size_t lenMixed) override;
40 #endif