2 * Copyright 2008-2013, Ingo Weinhold, ingo_weinhold@gmx.de.
3 * Distributed under the terms of the MIT License.
5 #ifndef TERMINAL_CHAR_CLASSIFIER_H
6 #define TERMINAL_CHAR_CLASSIFIER_H
17 CHAR_TYPE_WORD_DELIMITER
23 class TerminalCharClassifier
{
25 virtual ~TerminalCharClassifier();
27 virtual int Classify(const UTF8Char
& character
) = 0;
31 class DefaultCharClassifier
: public TerminalCharClassifier
{
33 DefaultCharClassifier(
34 const char* additionalWordChars
);
36 virtual int Classify(const UTF8Char
& character
);
39 std::vector
<UTF8Char
> fAdditionalWordChars
;
43 #endif // TERMINAL_CHAR_CLASSIFIER_H