proxygen
testing::internal::RE Class Reference

#include <gtest-port.h>

Public Member Functions

 RE (const RE &other)
 
 RE (const ::std::string &regex)
 
 RE (const char *regex)
 
 ~RE ()
 
const char * pattern () const
 
 RE (const RE &other)
 
 RE (const ::std::string &regex)
 
 RE (const char *regex)
 
 ~RE ()
 
const char * pattern () const
 
 RE (const RE &other)
 
 RE (const ::std::string &regex)
 
 RE (const char *regex)
 
 ~RE ()
 
const char * pattern () const
 

Static Public Member Functions

static bool FullMatch (const ::std::string &str, const RE &re)
 
static bool PartialMatch (const ::std::string &str, const RE &re)
 
static bool FullMatch (const char *str, const RE &re)
 
static bool PartialMatch (const char *str, const RE &re)
 
static bool FullMatch (const ::std::string &str, const RE &re)
 
static bool PartialMatch (const ::std::string &str, const RE &re)
 
static bool FullMatch (const char *str, const RE &re)
 
static bool PartialMatch (const char *str, const RE &re)
 
static bool FullMatch (const ::std::string &str, const RE &re)
 
static bool PartialMatch (const ::std::string &str, const RE &re)
 
static bool FullMatch (const char *str, const RE &re)
 
static bool PartialMatch (const char *str, const RE &re)
 

Private Member Functions

void Init (const char *regex)
 
void operator= (RE const &)
 
void Init (const char *regex)
 
void operator= (RE const &)
 
void Init (const char *regex)
 
void operator= (RE const &)
 

Private Attributes

const char * pattern_
 
bool is_valid_
 
regex_t full_regex_
 
regex_t partial_regex_
 

Detailed Description

Definition at line 1156 of file gtest-port.h.

Constructor & Destructor Documentation

testing::internal::RE::RE ( const RE other)
inline

Definition at line 1160 of file gtest-port.h.

References pattern().

1160 { Init(other.pattern()); }
void Init(const char *regex)
testing::internal::RE::RE ( const ::std::string regex)
inline

Definition at line 1163 of file gtest-port.h.

References regex, and string.

1163 { Init(regex.c_str()); } // NOLINT
regex
Definition: CMakeCache.txt:563
void Init(const char *regex)
testing::internal::RE::RE ( const char *  regex)
inline

Definition at line 1171 of file gtest-port.h.

1171 { Init(regex); } // NOLINT
regex
Definition: CMakeCache.txt:563
void Init(const char *regex)
testing::internal::RE::~RE ( )
testing::internal::RE::RE ( const RE other)
inline

Definition at line 1160 of file gtest-port.h.

References pattern().

1160 { Init(other.pattern()); }
void Init(const char *regex)
testing::internal::RE::RE ( const ::std::string regex)
inline

Definition at line 1163 of file gtest-port.h.

References regex, and string.

1163 { Init(regex.c_str()); } // NOLINT
regex
Definition: CMakeCache.txt:563
void Init(const char *regex)
testing::internal::RE::RE ( const char *  regex)
inline

Definition at line 1171 of file gtest-port.h.

1171 { Init(regex); } // NOLINT
regex
Definition: CMakeCache.txt:563
void Init(const char *regex)
testing::internal::RE::~RE ( )
testing::internal::RE::RE ( const RE other)
inline

Definition at line 1160 of file gtest-port.h.

References pattern().

1160 { Init(other.pattern()); }
void Init(const char *regex)
testing::internal::RE::RE ( const ::std::string regex)
inline

Definition at line 1163 of file gtest-port.h.

References regex, and string.

1163 { Init(regex.c_str()); } // NOLINT
regex
Definition: CMakeCache.txt:563
void Init(const char *regex)
testing::internal::RE::RE ( const char *  regex)
inline

Definition at line 1171 of file gtest-port.h.

1171 { Init(regex); } // NOLINT
regex
Definition: CMakeCache.txt:563
void Init(const char *regex)
testing::internal::RE::~RE ( )

Member Function Documentation

static bool testing::internal::RE::FullMatch ( const ::std::string str,
const RE re 
)
inlinestatic

Definition at line 1184 of file gtest-port.h.

Referenced by testing::internal::GetThreadCount(), testing::internal::TEST(), and testing::internal::To::To().

1184  {
1185  return FullMatch(str.c_str(), re);
1186  }
static bool FullMatch(const ::std::string &str, const RE &re)
Definition: gtest-port.h:1184
static bool testing::internal::RE::FullMatch ( const ::std::string str,
const RE re 
)
inlinestatic

Definition at line 1184 of file gtest-port.h.

1184  {
1185  return FullMatch(str.c_str(), re);
1186  }
static bool FullMatch(const ::std::string &str, const RE &re)
Definition: gtest-port.h:1184
static bool testing::internal::RE::FullMatch ( const ::std::string str,
const RE re 
)
inlinestatic

Definition at line 1184 of file gtest-port.h.

1184  {
1185  return FullMatch(str.c_str(), re);
1186  }
static bool FullMatch(const ::std::string &str, const RE &re)
Definition: gtest-port.h:1184
static bool testing::internal::RE::FullMatch ( const char *  str,
const RE re 
)
static
static bool testing::internal::RE::FullMatch ( const char *  str,
const RE re 
)
static
static bool testing::internal::RE::FullMatch ( const char *  str,
const RE re 
)
static
void testing::internal::RE::Init ( const char *  regex)
private
void testing::internal::RE::Init ( const char *  regex)
private
void testing::internal::RE::Init ( const char *  regex)
private
void testing::internal::RE::operator= ( RE const &  )
private
void testing::internal::RE::operator= ( RE const &  )
private
void testing::internal::RE::operator= ( RE const &  )
private
static bool testing::internal::RE::PartialMatch ( const ::std::string str,
const RE re 
)
inlinestatic

Definition at line 1187 of file gtest-port.h.

References testing::internal::FormatCompilerIndependentFileLocation(), testing::internal::FormatFileLocation(), GTEST_DISALLOW_ASSIGN_, and string.

1187  {
1188  return PartialMatch(str.c_str(), re);
1189  }
static bool PartialMatch(const ::std::string &str, const RE &re)
Definition: gtest-port.h:1187
static bool testing::internal::RE::PartialMatch ( const ::std::string str,
const RE re 
)
inlinestatic

Definition at line 1187 of file gtest-port.h.

References testing::internal::FormatCompilerIndependentFileLocation(), testing::internal::FormatFileLocation(), GTEST_DISALLOW_ASSIGN_, and string.

1187  {
1188  return PartialMatch(str.c_str(), re);
1189  }
static bool PartialMatch(const ::std::string &str, const RE &re)
Definition: gtest-port.h:1187
static bool testing::internal::RE::PartialMatch ( const ::std::string str,
const RE re 
)
inlinestatic

Definition at line 1187 of file gtest-port.h.

References string.

Referenced by testing::internal::GetThreadCount(), testing::internal::TEST(), and testing::internal::To::To().

1187  {
1188  return PartialMatch(str.c_str(), re);
1189  }
static bool PartialMatch(const ::std::string &str, const RE &re)
Definition: gtest-port.h:1187
static bool testing::internal::RE::PartialMatch ( const char *  str,
const RE re 
)
static
static bool testing::internal::RE::PartialMatch ( const char *  str,
const RE re 
)
static
static bool testing::internal::RE::PartialMatch ( const char *  str,
const RE re 
)
static
const char* testing::internal::RE::pattern ( ) const
inline

Definition at line 1175 of file gtest-port.h.

1175 { return pattern_; }
const char * pattern_
Definition: gtest-port.h:1211
const char* testing::internal::RE::pattern ( ) const
inline

Definition at line 1175 of file gtest-port.h.

Referenced by RE(), testing::internal::TEST(), and testing::internal::To::To().

1175 { return pattern_; }
const char * pattern_
Definition: gtest-port.h:1211
const char* testing::internal::RE::pattern ( ) const
inline

Definition at line 1175 of file gtest-port.h.

1175 { return pattern_; }
const char * pattern_
Definition: gtest-port.h:1211

Member Data Documentation

regex_t testing::internal::RE::full_regex_
private

Definition at line 1216 of file gtest-port.h.

Referenced by testing::internal::GetThreadCount().

bool testing::internal::RE::is_valid_
private

Definition at line 1212 of file gtest-port.h.

Referenced by testing::internal::GetThreadCount().

regex_t testing::internal::RE::partial_regex_
private

Definition at line 1217 of file gtest-port.h.

Referenced by testing::internal::GetThreadCount().

const char * testing::internal::RE::pattern_
private

Definition at line 1211 of file gtest-port.h.

Referenced by testing::internal::GetThreadCount().


The documentation for this class was generated from the following file: