thorregex.hpp 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /*##############################################################################
  2. HPCC SYSTEMS software Copyright (C) 2012 HPCC Systems®.
  3. Licensed under the Apache License, Version 2.0 (the "License");
  4. you may not use this file except in compliance with the License.
  5. You may obtain a copy of the License at
  6. http://www.apache.org/licenses/LICENSE-2.0
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License.
  12. ############################################################################## */
  13. #ifndef __THORRREGEX_HPP_
  14. #define __THORRREGEX_HPP_
  15. #ifdef THORHELPER_EXPORTS
  16. #define THORHELPER_API DECL_EXPORT
  17. #else
  18. #define THORHELPER_API DECL_IMPORT
  19. #endif
  20. #define RegexSpecialMask 0xF0000000
  21. #define RegexSpecialCharacterClass 0x10000000
  22. #define RegexSpecialCollationClass 0x20000000
  23. #define RegexSpecialEquivalenceClass 0x30000000
  24. #define RCCalnum (RegexSpecialCharacterClass|0)
  25. #define RCCcntrl (RegexSpecialCharacterClass|1)
  26. #define RCClower (RegexSpecialCharacterClass|2)
  27. #define RCCupper (RegexSpecialCharacterClass|3)
  28. #define RCCspace (RegexSpecialCharacterClass|4)
  29. #define RCCalpha (RegexSpecialCharacterClass|5)
  30. #define RCCdigit (RegexSpecialCharacterClass|6)
  31. #define RCCprint (RegexSpecialCharacterClass|7)
  32. #define RCCblank (RegexSpecialCharacterClass|8)
  33. #define RCCgraph (RegexSpecialCharacterClass|9)
  34. #define RCCpunct (RegexSpecialCharacterClass|10)
  35. #define RCCxdigit (RegexSpecialCharacterClass|11)
  36. #define RCCany (RegexSpecialCharacterClass|12)
  37. #define RCCutf8lead (RegexSpecialCharacterClass|13)
  38. #define RCCutf8follow (RegexSpecialCharacterClass|14)
  39. #define PATTERN_UNLIMITED_LENGTH ((unsigned)-1)
  40. #endif /* __THORREGEX_HPP_ */