.. _program_listing_file_src_rdf4cpp_regex_Regex.cpp: Program Listing for File Regex.cpp ================================== |exhale_lsh| :ref:`Return to documentation for file ` (``src/rdf4cpp/regex/Regex.cpp``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS .. code-block:: cpp #include #include #include namespace rdf4cpp::regex { Regex::Regex(std::string_view regex, flag_type const flags) : impl_{std::make_shared(regex, flags)} { } TriBool Regex::regex_match(std::string_view const str) const noexcept { return impl_->regex_match(str); } TriBool Regex::regex_search(std::string_view const str) const noexcept { return impl_->regex_search(str); } RegexReplacer Regex::make_replacer(std::string_view const rewrite) const { return RegexReplacer{std::make_shared(impl_, rewrite)}; } } //namespace rdf4cpp::regex