thorregex.hpp 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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 _WIN32
  16. #ifdef THORHELPER_EXPORTS
  17. #define THORHELPER_API __declspec(dllexport)
  18. #else
  19. #define THORHELPER_API __declspec(dllimport)
  20. #endif
  21. #else
  22. #define THORHELPER_API
  23. #endif
  24. #define RegexSpecialMask 0xF0000000
  25. #define RegexSpecialCharacterClass 0x10000000
  26. #define RegexSpecialCollationClass 0x20000000
  27. #define RegexSpecialEquivalenceClass 0x30000000
  28. #define RCCalnum (RegexSpecialCharacterClass|0)
  29. #define RCCcntrl (RegexSpecialCharacterClass|1)
  30. #define RCClower (RegexSpecialCharacterClass|2)
  31. #define RCCupper (RegexSpecialCharacterClass|3)
  32. #define RCCspace (RegexSpecialCharacterClass|4)
  33. #define RCCalpha (RegexSpecialCharacterClass|5)
  34. #define RCCdigit (RegexSpecialCharacterClass|6)
  35. #define RCCprint (RegexSpecialCharacterClass|7)
  36. #define RCCblank (RegexSpecialCharacterClass|8)
  37. #define RCCgraph (RegexSpecialCharacterClass|9)
  38. #define RCCpunct (RegexSpecialCharacterClass|10)
  39. #define RCCxdigit (RegexSpecialCharacterClass|11)
  40. #define RCCany (RegexSpecialCharacterClass|12)
  41. #define RCCutf8lead (RegexSpecialCharacterClass|13)
  42. #define RCCutf8follow (RegexSpecialCharacterClass|14)
  43. #define PATTERN_UNLIMITED_LENGTH ((unsigned)-1)
  44. #endif /* __THORREGEX_HPP_ */