summaryrefslogtreecommitdiff
path: root/src/byte_class.h
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2017-12-15 17:33:19 +0000
committerVincent Sanders <vince@kyllikki.org>2017-12-15 17:33:19 +0000
commit5de69a618c7858f997e9944c06837d951fc129aa (patch)
treea91d3ee6972a7d3f31693f3f3091569f63b13da1 /src/byte_class.h
parentd1ee370eaa428fafb27cce60624bdf73ca35716d (diff)
downloadlibnspdf-5de69a618c7858f997e9944c06837d951fc129aa.tar.gz
libnspdf-5de69a618c7858f997e9944c06837d951fc129aa.tar.bz2
split out byte class
Diffstat (limited to 'src/byte_class.h')
-rw-r--r--src/byte_class.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/byte_class.h b/src/byte_class.h
new file mode 100644
index 0000000..011acda
--- /dev/null
+++ b/src/byte_class.h
@@ -0,0 +1,8 @@
+#define BC_RGLR 0 /* regular character */
+#define BC_WSPC 1 /* character is whitespace */
+#define BC_EOLM (1<<1) /* character signifies end of line */
+#define BC_DCML (1<<2) /* character is a decimal */
+#define BC_HEXL (1<<3) /* character is a hexadecimal */
+#define BC_DELM (1<<4) /* character is a delimiter */
+
+const uint8_t *bclass;