1
0

Query.h 1.3 KB

123456789101112131415161718192021222324252627282930
  1. #pragma once
  2. #define TOKEN_UNKNOWN -1 // BLAAAAA!!!!!!!!
  3. #define TOKEN_EOQ 0 // End of Query
  4. #define TOKEN_IDENTIFIER 1 // Column name or data to match against
  5. #define TOKEN_EQUAL 2 // =, ==, IS
  6. #define TOKEN_NOTEQUAL 3 // !=, =!, <>, ><
  7. #define TOKEN_BELOW 4 // <
  8. #define TOKEN_ABOVE 5 // >
  9. #define TOKEN_BOREQUAL 6 // <=, =<
  10. #define TOKEN_AOREQUAL 7 // >=, =>
  11. #define TOKEN_NOT 8 // !, NOT
  12. #define TOKEN_AND 9 // &, &&, AND
  13. #define TOKEN_OR 10 // |, ||, OR
  14. #define TOKEN_PAROPEN 11 // (
  15. #define TOKEN_PARCLOSE 12 // )
  16. #define TOKEN_CONTAINS 13 // HAS
  17. #define TOKEN_BEGINS 14 // string starts with...
  18. #define TOKEN_ENDS 15 // string ends with...
  19. #define TOKEN_LIKE 16 // string is nearly (excluding "the " and whitespace etc)
  20. #define TOKEN_ISEMPTY 17 // field does not exists
  21. #define TOKEN_SQBRACKETOPEN 18 // [
  22. #define TOKEN_SQBRACKETCLOSE 19 // ]
  23. #define TOKEN_COMMA 20 // ,
  24. #define TOKEN_NOTCONTAINS 21 // NOTHAS
  25. #define TOKEN_ISNOTEMPTY 22 // field does not exists
  26. #define TOKEN_BEGINSLIKE 23 // string is nearly starts with (excluding "the " and whitespace etc)
  27. // in-place
  28. void Query_Unescape(char *p);