1 // Scintilla source code edit control 2 /** @file CharacterCategory.h 3 ** Returns the Unicode general category of a character. 4 **/ 5 // Copyright 2013 by Neil Hodgson <neilh@scintilla.org> 6 // The License.txt file describes the conditions under which this software may be distributed. 7 8 #ifndef CHARACTERCATEGORY_H 9 #define CHARACTERCATEGORY_H 10 11 #ifdef SCI_NAMESPACE 12 namespace Scintilla { 13 #endif 14 15 enum CharacterCategory { 16 ccLu, ccLl, ccLt, ccLm, ccLo, 17 ccMn, ccMc, ccMe, 18 ccNd, ccNl, ccNo, 19 ccPc, ccPd, ccPs, ccPe, ccPi, ccPf, ccPo, 20 ccSm, ccSc, ccSk, ccSo, 21 ccZs, ccZl, ccZp, 22 ccCc, ccCf, ccCs, ccCo, ccCn 23 }; 24 25 CharacterCategory CategoriseCharacter(int character); 26 27 #ifdef SCI_NAMESPACE 28 } 29 #endif 30 31 #endif 32