zypp::str::regex Class Reference

#include <Regex.h>

List of all members.

Public Types

enum  RegFlags {
  optimize = 0, match_extra = 0, icase = REG_ICASE, nosubs = REG_NOSUB,
  match_extended = REG_EXTENDED, normal = 1<<16
}

Public Member Functions

 regex ()
 regex (const std::string &s, int flags=match_extended)
 ~regex () throw ()
void assign (const std::string &s, int flags=match_extended)

Private Attributes

regex_t m_preg
bool m_valid

Friends

class smatch
bool regex_match (const std::string &s, str::smatch &matches, const regex &regex)
bool regex_match (const std::string &s, const regex &regex)


Detailed Description

Definition at line 40 of file Regex.h.


Member Enumeration Documentation

enum zypp::str::regex::RegFlags

Enumerator:
optimize 
match_extra 
icase 
nosubs 
match_extended 
normal 

Definition at line 43 of file Regex.h.


Constructor & Destructor Documentation

regex::regex (  ) 

Definition at line 22 of file Regex.cc.

regex::regex ( const std::string &  s,
int  flags = match_extended 
)

Definition at line 45 of file Regex.cc.

References assign().

regex::~regex (  )  throw ()

Definition at line 50 of file Regex.cc.

References m_preg, and m_valid.


Member Function Documentation

void regex::assign ( const std::string &  s,
int  flags = match_extended 
)

Definition at line 28 of file Regex.cc.

References m_preg, m_valid, match_extended, normal, and ZYPP_THROW.

Referenced by zypp::locks::AddLockToPool::operator()(), and regex().


Friends And Related Function Documentation

friend class smatch [friend]

Definition at line 59 of file Regex.h.

bool regex_match ( const std::string &  s,
str::smatch matches,
const regex regex 
) [friend]

Definition at line 56 of file Regex.cc.

bool regex_match ( const std::string &  s,
const regex regex 
) [friend]

Definition at line 64 of file Regex.cc.


Member Data Documentation

regex_t zypp::str::regex::m_preg [private]

Definition at line 62 of file Regex.h.

Referenced by assign(), zypp::str::regex_match(), and ~regex().

bool zypp::str::regex::m_valid [private]

Definition at line 63 of file Regex.h.

Referenced by assign(), zypp::str::regex_match(), and ~regex().


The documentation for this class was generated from the following files:
Generated on Tue Sep 25 19:23:28 2007 for libzypp by  doxygen 1.5.3