18360460ab
* Update Scintilla to version 3.7.5 This now requires a C++11-capable compiler. Closes #1308. * Test using newer dist on Travis Since Scintilla needs C++11 * Add debugging code for when configure fails * Workaround a pkg-config-corsswrapper bug on Ubuntu 14.04 See https://bugs.launchpad.net/ubuntu/+source/mingw-w64/+bug/1327242
38 lines
906 B
C++
38 lines
906 B
C++
// Scintilla source code edit control
|
|
/** @file CharacterCategory.h
|
|
** Returns the Unicode general category of a character.
|
|
**/
|
|
// Copyright 2013 by Neil Hodgson <neilh@scintilla.org>
|
|
// The License.txt file describes the conditions under which this software may be distributed.
|
|
|
|
#ifndef CHARACTERCATEGORY_H
|
|
#define CHARACTERCATEGORY_H
|
|
|
|
#ifdef SCI_NAMESPACE
|
|
namespace Scintilla {
|
|
#endif
|
|
|
|
enum CharacterCategory {
|
|
ccLu, ccLl, ccLt, ccLm, ccLo,
|
|
ccMn, ccMc, ccMe,
|
|
ccNd, ccNl, ccNo,
|
|
ccPc, ccPd, ccPs, ccPe, ccPi, ccPf, ccPo,
|
|
ccSm, ccSc, ccSk, ccSo,
|
|
ccZs, ccZl, ccZp,
|
|
ccCc, ccCf, ccCs, ccCo, ccCn
|
|
};
|
|
|
|
CharacterCategory CategoriseCharacter(int character);
|
|
|
|
// Common definitions of allowable characters in identifiers from UAX #31.
|
|
bool IsIdStart(int character);
|
|
bool IsIdContinue(int character);
|
|
bool IsXidStart(int character);
|
|
bool IsXidContinue(int character);
|
|
|
|
#ifdef SCI_NAMESPACE
|
|
}
|
|
#endif
|
|
|
|
#endif
|