aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexlib/CharacterCategory.h
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2013-07-01 18:45:48 +1000
committerNeil <nyamatongwe@gmail.com>2013-07-01 18:45:48 +1000
commitb6ce2b9544c84a884876ab5de120fa3e322f7270 (patch)
tree64e75dc6f4b9b6a8c936349b83d33ba0aee9aa9d /lexlib/CharacterCategory.h
parent7dd00233a2022afce51494726e2881f15573641f (diff)
downloadscintilla-mirror-b6ce2b9544c84a884876ab5de120fa3e322f7270.tar.gz
Added CharacterCategory.
Diffstat (limited to 'lexlib/CharacterCategory.h')
-rw-r--r--lexlib/CharacterCategory.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/lexlib/CharacterCategory.h b/lexlib/CharacterCategory.h
new file mode 100644
index 000000000..c8600504b
--- /dev/null
+++ b/lexlib/CharacterCategory.h
@@ -0,0 +1,31 @@
+// 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);
+
+#ifdef SCI_NAMESPACE
+}
+#endif
+
+#endif