aboutsummaryrefslogtreecommitdiff
path: root/Src/nde/android/Query.h
diff options
context:
space:
mode:
Diffstat (limited to 'Src/nde/android/Query.h')
-rw-r--r--Src/nde/android/Query.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/Src/nde/android/Query.h b/Src/nde/android/Query.h
new file mode 100644
index 00000000..a9dd90dd
--- /dev/null
+++ b/Src/nde/android/Query.h
@@ -0,0 +1,30 @@
+#pragma once
+
+#define TOKEN_UNKNOWN -1 // BLAAAAA!!!!!!!!
+#define TOKEN_EOQ 0 // End of Query
+#define TOKEN_IDENTIFIER 1 // Column name or data to match against
+#define TOKEN_EQUAL 2 // =, ==, IS
+#define TOKEN_NOTEQUAL 3 // !=, =!, <>, ><
+#define TOKEN_BELOW 4 // <
+#define TOKEN_ABOVE 5 // >
+#define TOKEN_BOREQUAL 6 // <=, =<
+#define TOKEN_AOREQUAL 7 // >=, =>
+#define TOKEN_NOT 8 // !, NOT
+#define TOKEN_AND 9 // &, &&, AND
+#define TOKEN_OR 10 // |, ||, OR
+#define TOKEN_PAROPEN 11 // (
+#define TOKEN_PARCLOSE 12 // )
+#define TOKEN_CONTAINS 13 // HAS
+#define TOKEN_BEGINS 14 // string starts with...
+#define TOKEN_ENDS 15 // string ends with...
+#define TOKEN_LIKE 16 // string is nearly (excluding "the " and whitespace etc)
+#define TOKEN_ISEMPTY 17 // field does not exists
+#define TOKEN_SQBRACKETOPEN 18 // [
+#define TOKEN_SQBRACKETCLOSE 19 // ]
+#define TOKEN_COMMA 20 // ,
+#define TOKEN_NOTCONTAINS 21 // NOTHAS
+#define TOKEN_ISNOTEMPTY 22 // field does not exists
+#define TOKEN_BEGINSLIKE 23 // string is nearly starts with (excluding "the " and whitespace etc)
+
+// in-place
+void Query_Unescape(char *p); \ No newline at end of file