regex 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. // -*- C++ -*-
  2. //===----------------------------- regex ----------------------------------===//
  3. //
  4. // The LLVM Compiler Infrastructure
  5. //
  6. // This file is dual licensed under the MIT and the University of Illinois Open
  7. // Source Licenses. See LICENSE.TXT for details.
  8. //
  9. //===----------------------------------------------------------------------===//
  10. #ifndef _LIBCPP_EXPERIMENTAL_REGEX
  11. #define _LIBCPP_EXPERIMENTAL_REGEX
  12. /*
  13. experimental/regex synopsis
  14. // C++1z
  15. namespace std {
  16. namespace experimental {
  17. inline namespace fundamentals_v1 {
  18. namespace pmr {
  19. template <class BidirectionalIterator>
  20. using match_results =
  21. std::match_results<BidirectionalIterator,
  22. polymorphic_allocator<sub_match<BidirectionalIterator>>>;
  23. typedef match_results<const char*> cmatch;
  24. typedef match_results<const wchar_t*> wcmatch;
  25. typedef match_results<string::const_iterator> smatch;
  26. typedef match_results<wstring::const_iterator> wsmatch;
  27. } // namespace pmr
  28. } // namespace fundamentals_v1
  29. } // namespace experimental
  30. } // namespace std
  31. */
  32. #include <experimental/__config>
  33. #include <regex>
  34. #include <experimental/string>
  35. #include <experimental/memory_resource>
  36. #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
  37. #pragma GCC system_header
  38. #endif
  39. _LIBCPP_BEGIN_NAMESPACE_LFTS_PMR
  40. template <class _BiDirIter>
  41. using match_results =
  42. _VSTD::match_results<_BiDirIter,
  43. polymorphic_allocator<_VSTD::sub_match<_BiDirIter>>>;
  44. typedef match_results<const char*> cmatch;
  45. typedef match_results<const wchar_t*> wcmatch;
  46. typedef match_results<_VSTD_LFTS_PMR::string::const_iterator> smatch;
  47. typedef match_results<_VSTD_LFTS_PMR::wstring::const_iterator> wsmatch;
  48. _LIBCPP_END_NAMESPACE_LFTS_PMR
  49. #endif /* _LIBCPP_EXPERIMENTAL_REGEX */