summaryrefslogtreecommitdiff
path: root/src/code_point.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/code_point.h')
-rw-r--r--src/code_point.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/code_point.h b/src/code_point.h
index c039907..59afd75 100644
--- a/src/code_point.h
+++ b/src/code_point.h
@@ -2,6 +2,7 @@
#define CODE_POINT_H
#include <cstdint>
+#include <cstdio>
typedef wchar_t code_point_t;
@@ -26,6 +27,8 @@ namespace CodePoints {
const code_point_t REPLACEMENT_CHAR = 0xFFFD;
const code_point_t GREATER_THAN_SIGN = 0x003E;
const code_point_t LESS_THAN_SIGN = 0x003C;
+ const code_point_t EQUALS_SIGN = 0x003D;
+ const code_point_t GRAVE_ACCENT = 0x0060;
const code_point_t AMPERSAND = 0x0026;
const code_point_t EXCLAMATION_MARK = 0x0021;
const code_point_t NUMBER_SIGN = 0x0023;
@@ -34,6 +37,9 @@ namespace CodePoints {
const code_point_t DIGIT_ZERO = 0x0030;
const code_point_t DIGIT_NINE = 0x0039;
const code_point_t SEMICOLON = 0x003B;
+ const code_point_t QUOTATION_MARK = 0x0022;
+ const code_point_t APOSTROPHE = 0x0027;
+ const code_point_t MY_EOF = EOF;
inline bool is_decimal(code_point_t c) {
return c >= CodePoints::DIGIT_ZERO && c <= CodePoints::DIGIT_NINE;
@@ -153,6 +159,10 @@ namespace CodePoints {
out = c;
return true;
}
+
+ inline code_point_t to_lower_case(code_point_t c) {
+ return c + 0x0020;
+ }
};
#endif