regex.hpp 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. /*
  2. *
  3. * Copyright (c) 1998-2002
  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 regex.cpp
  14. * VERSION see <boost/version.hpp>
  15. * DESCRIPTION: Declares boost::basic_regex<> and associated
  16. * functions and classes. This header is the main
  17. * entry point for the template regex code.
  18. */
  19. #ifndef BOOST_RE_REGEX_HPP_INCLUDED
  20. #define BOOST_RE_REGEX_HPP_INCLUDED
  21. #ifdef __cplusplus
  22. // what follows is all C++ don't include in C builds!!
  23. #include <boost/regex/config.hpp>
  24. #include <boost/regex/v5/regex_workaround.hpp>
  25. #include <boost/regex_fwd.hpp>
  26. #include <boost/regex/regex_traits.hpp>
  27. #include <boost/regex/v5/error_type.hpp>
  28. #include <boost/regex/v5/match_flags.hpp>
  29. #include <boost/regex/v5/regex_raw_buffer.hpp>
  30. #include <boost/regex/pattern_except.hpp>
  31. #include <boost/regex/v5/char_regex_traits.hpp>
  32. #include <boost/regex/v5/states.hpp>
  33. #include <boost/regex/v5/regbase.hpp>
  34. #include <boost/regex/v5/basic_regex.hpp>
  35. #include <boost/regex/v5/basic_regex_creator.hpp>
  36. #include <boost/regex/v5/basic_regex_parser.hpp>
  37. #include <boost/regex/v5/sub_match.hpp>
  38. #include <boost/regex/v5/regex_format.hpp>
  39. #include <boost/regex/v5/match_results.hpp>
  40. #include <boost/regex/v5/perl_matcher.hpp>
  41. namespace boost{
  42. #ifdef BOOST_REGEX_NO_FWD
  43. typedef basic_regex<char, regex_traits<char> > regex;
  44. #ifndef BOOST_NO_WREGEX
  45. typedef basic_regex<wchar_t, regex_traits<wchar_t> > wregex;
  46. #endif
  47. #endif
  48. typedef match_results<const char*> cmatch;
  49. typedef match_results<std::string::const_iterator> smatch;
  50. #ifndef BOOST_NO_WREGEX
  51. typedef match_results<const wchar_t*> wcmatch;
  52. typedef match_results<std::wstring::const_iterator> wsmatch;
  53. #endif
  54. } // namespace boost
  55. #include <boost/regex/v5/regex_match.hpp>
  56. #include <boost/regex/v5/regex_search.hpp>
  57. #include <boost/regex/v5/regex_iterator.hpp>
  58. #include <boost/regex/v5/regex_token_iterator.hpp>
  59. #include <boost/regex/v5/regex_grep.hpp>
  60. #include <boost/regex/v5/regex_replace.hpp>
  61. #include <boost/regex/v5/regex_merge.hpp>
  62. #include <boost/regex/v5/regex_split.hpp>
  63. #endif // __cplusplus
  64. #endif // include