2
0

regex.inline.h 379 B

12345678910111213141516
  1. #ifndef AFUN_REGEX_INLINE_H
  2. #define AFUN_REGEX_INLINE_H
  3. #include "regex.h"
  4. namespace aFuntool {
  5. inline int Regex::match(const std::string &subject) const {
  6. return match(subject.c_str());
  7. }
  8. inline Regex::Regex(Regex &&regex) noexcept : pattern {std::move(regex.pattern)}, re {regex.re} {
  9. regex.re = nullptr;
  10. }
  11. }
  12. #endif //AFUN_REGEX_INLINE_H