tesseract v5.3.3.20231005
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
 

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)
 

Detailed Description

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

Constructor & Destructor Documentation

◆ RE() [1/3]

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

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

897{ Init(other.pattern()); }

◆ RE() [2/3]

testing::internal::RE::RE ( const ::std::string &  regex)
inline

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

900{ Init(regex.c_str()); } // NOLINT

◆ RE() [3/3]

testing::internal::RE::RE ( const char *  regex)
inline

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

902{ Init(regex); } // NOLINT

◆ ~RE()

testing::internal::RE::~RE ( )

Member Function Documentation

◆ FullMatch() [1/2]

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

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

912 {
913 return FullMatch(str.c_str(), re);
914 }
static bool FullMatch(const ::std::string &str, const RE &re)
Definition: gtest-port.h:912

◆ FullMatch() [2/2]

static bool testing::internal::RE::FullMatch ( const char *  str,
const RE re 
)
static

◆ PartialMatch() [1/2]

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

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

915 {
916 return PartialMatch(str.c_str(), re);
917 }
static bool PartialMatch(const ::std::string &str, const RE &re)
Definition: gtest-port.h:915

◆ PartialMatch() [2/2]

static bool testing::internal::RE::PartialMatch ( const char *  str,
const RE re 
)
static

◆ pattern()

const char * testing::internal::RE::pattern ( ) const
inline

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

906{ return pattern_; }

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