error_type.hpp 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /*
  2. *
  3. * Copyright (c) 2003-2005
  4. * John Maddock
  5. *
  6. * Use, modification and distribution are subject to the
  7. * Boost Software License, Version 1.0. (See accompanying file
  8. * LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  9. *
  10. */
  11. /*
  12. * LOCATION: see http://www.boost.org for most recent version.
  13. * FILE error_type.hpp
  14. * VERSION see <boost/version.hpp>
  15. * DESCRIPTION: Declares regular expression error type enumerator.
  16. */
  17. #ifndef BOOST_REGEX_ERROR_TYPE_HPP
  18. #define BOOST_REGEX_ERROR_TYPE_HPP
  19. #ifdef __cplusplus
  20. namespace boost{
  21. #endif
  22. #ifdef __cplusplus
  23. namespace regex_constants{
  24. enum error_type{
  25. error_ok = 0, /* not used */
  26. error_no_match = 1, /* not used */
  27. error_bad_pattern = 2,
  28. error_collate = 3,
  29. error_ctype = 4,
  30. error_escape = 5,
  31. error_backref = 6,
  32. error_brack = 7,
  33. error_paren = 8,
  34. error_brace = 9,
  35. error_badbrace = 10,
  36. error_range = 11,
  37. error_space = 12,
  38. error_badrepeat = 13,
  39. error_end = 14, /* not used */
  40. error_size = 15,
  41. error_right_paren = 16, /* not used */
  42. error_empty = 17,
  43. error_complexity = 18,
  44. error_stack = 19,
  45. error_perl_extension = 20,
  46. error_unknown = 21
  47. };
  48. }
  49. }
  50. #endif /* __cplusplus */
  51. #endif