10#ifndef __ABG_REGEX_H__
11#define __ABG_REGEX_H__
49 escape(
const std::string& str) : ref(str) { }
50 const std::string& ref;
Utilities to ease the wrapping of C types into std::shared_ptr.
bool match(const regex_t_sptr &r, const std::string &str)
See if a string matches a regex.
std::ostream & operator<<(std::ostream &os, const escape &esc)
Escape regex special charaters in input string.
regex_t_sptr compile(const std::string &str)
Compile a regex from a string.
std::string generate_from_strings(const std::vector< std::string > &strs)
Generate a regex pattern equivalent to testing set membership.
std::shared_ptr< regex_t > regex_t_sptr
A convenience typedef for a shared pointer of regex_t.
regex::regex_t_sptr build_sptr< regex_t >(regex_t *p)
Specialization of sptr_utils::build_sptr for regex_t.
Toplevel namespace for libabigail.
A class to hold a reference to a string to regex escape.
A delete functor for a shared_ptr of regex_t.
void operator()(::regex_t *r)
The operator called to de-allocate the pointer to regex_t embedded in a shared_ptr<regex_t>