Autonomy Software C++ 24.5.1
Welcome to the Autonomy Software repository of the Mars Rover Design Team (MRDT) at Missouri University of Science and Technology (Missouri S&T)! API reference contains the source code and other resources for the development of the autonomy software for our Mars rover. The Autonomy Software project aims to compete in the University Rover Challenge (URC) by demonstrating advanced autonomous capabilities and robust navigation algorithms.
Loading...
Searching...
No Matches
RE2::Options Class Reference

Public Types

enum  Encoding { EncodingUTF8 = 1 , EncodingLatin1 }

Public Member Functions

 Options (CannedOptions)
int64_t max_mem () const
void set_max_mem (int64_t m)
Encoding encoding () const
void set_encoding (Encoding encoding)
bool posix_syntax () const
void set_posix_syntax (bool b)
bool longest_match () const
void set_longest_match (bool b)
bool log_errors () const
void set_log_errors (bool b)
bool literal () const
void set_literal (bool b)
bool never_nl () const
void set_never_nl (bool b)
bool dot_nl () const
void set_dot_nl (bool b)
bool never_capture () const
void set_never_capture (bool b)
bool case_sensitive () const
void set_case_sensitive (bool b)
bool perl_classes () const
void set_perl_classes (bool b)
bool word_boundary () const
void set_word_boundary (bool b)
bool one_line () const
void set_one_line (bool b)
void Copy (const Options &src)
int ParseFlags () const

Static Public Attributes

static const int kDefaultMaxMem = 8<<20

Private Attributes

int64_t max_mem_
Encoding encoding_
bool posix_syntax_
bool longest_match_
bool log_errors_
bool literal_
bool never_nl_
bool dot_nl_
bool never_capture_
bool case_sensitive_
bool perl_classes_
bool word_boundary_
bool one_line_

Member Enumeration Documentation

◆ Encoding

enum duckdb_re2::RE2::Options::Encoding
98408 {
98409 EncodingUTF8 = 1,
98410 EncodingLatin1
98411 };

Constructor & Destructor Documentation

◆ Options() [1/2]

duckdb_re2::RE2::Options::Options ( )
inline
98413 :
98414 max_mem_(kDefaultMaxMem),
98415 encoding_(EncodingUTF8),
98416 posix_syntax_(false),
98417 longest_match_(false),
98418 log_errors_(true),
98419 literal_(false),
98420 never_nl_(false),
98421 dot_nl_(false),
98422 never_capture_(false),
98423 case_sensitive_(true),
98424 perl_classes_(false),
98425 word_boundary_(false),
98426 one_line_(false) {
98427 }

◆ Options() [2/2]

duckdb_re2::RE2::Options::Options ( RE2::CannedOptions opt)
471624 : max_mem_(kDefaultMaxMem),
471625 encoding_(opt == RE2::Latin1 ? EncodingLatin1 : EncodingUTF8),
471626 posix_syntax_(opt == RE2::POSIX),
471627 longest_match_(opt == RE2::POSIX),
471628 log_errors_(opt != RE2::Quiet),
471629 literal_(false),
471630 never_nl_(false),
471631 dot_nl_(false),
471632 never_capture_(false),
471633 case_sensitive_(true),
471634 perl_classes_(false),
471635 word_boundary_(false),
471636 one_line_(false) {
471637}

Member Function Documentation

◆ max_mem()

int64_t duckdb_re2::RE2::Options::max_mem ( ) const
inline
98431{ return max_mem_; }

◆ set_max_mem()

void duckdb_re2::RE2::Options::set_max_mem ( int64_t m)
inline
98432{ max_mem_ = m; }

◆ encoding()

Encoding duckdb_re2::RE2::Options::encoding ( ) const
inline
98434{ return encoding_; }

◆ set_encoding()

void duckdb_re2::RE2::Options::set_encoding ( Encoding encoding)
inline
98435{ encoding_ = encoding; }

◆ posix_syntax()

bool duckdb_re2::RE2::Options::posix_syntax ( ) const
inline
98437{ return posix_syntax_; }

◆ set_posix_syntax()

void duckdb_re2::RE2::Options::set_posix_syntax ( bool b)
inline
98438{ posix_syntax_ = b; }

◆ longest_match()

bool duckdb_re2::RE2::Options::longest_match ( ) const
inline
98440{ return longest_match_; }

◆ set_longest_match()

void duckdb_re2::RE2::Options::set_longest_match ( bool b)
inline
98441{ longest_match_ = b; }

◆ log_errors()

bool duckdb_re2::RE2::Options::log_errors ( ) const
inline
98443{ return log_errors_; }

◆ set_log_errors()

void duckdb_re2::RE2::Options::set_log_errors ( bool b)
inline
98444{ log_errors_ = b; }

◆ literal()

bool duckdb_re2::RE2::Options::literal ( ) const
inline
98446{ return literal_; }

◆ set_literal()

void duckdb_re2::RE2::Options::set_literal ( bool b)
inline
98447{ literal_ = b; }

◆ never_nl()

bool duckdb_re2::RE2::Options::never_nl ( ) const
inline
98449{ return never_nl_; }

◆ set_never_nl()

void duckdb_re2::RE2::Options::set_never_nl ( bool b)
inline
98450{ never_nl_ = b; }

◆ dot_nl()

bool duckdb_re2::RE2::Options::dot_nl ( ) const
inline
98452{ return dot_nl_; }

◆ set_dot_nl()

void duckdb_re2::RE2::Options::set_dot_nl ( bool b)
inline
98453{ dot_nl_ = b; }

◆ never_capture()

bool duckdb_re2::RE2::Options::never_capture ( ) const
inline
98455{ return never_capture_; }

◆ set_never_capture()

void duckdb_re2::RE2::Options::set_never_capture ( bool b)
inline
98456{ never_capture_ = b; }

◆ case_sensitive()

bool duckdb_re2::RE2::Options::case_sensitive ( ) const
inline
98458{ return case_sensitive_; }

◆ set_case_sensitive()

void duckdb_re2::RE2::Options::set_case_sensitive ( bool b)
inline
98459{ case_sensitive_ = b; }

◆ perl_classes()

bool duckdb_re2::RE2::Options::perl_classes ( ) const
inline
98461{ return perl_classes_; }

◆ set_perl_classes()

void duckdb_re2::RE2::Options::set_perl_classes ( bool b)
inline
98462{ perl_classes_ = b; }

◆ word_boundary()

bool duckdb_re2::RE2::Options::word_boundary ( ) const
inline
98464{ return word_boundary_; }

◆ set_word_boundary()

void duckdb_re2::RE2::Options::set_word_boundary ( bool b)
inline
98465{ word_boundary_ = b; }

◆ one_line()

bool duckdb_re2::RE2::Options::one_line ( ) const
inline
98467{ return one_line_; }

◆ set_one_line()

void duckdb_re2::RE2::Options::set_one_line ( bool b)
inline
98468{ one_line_ = b; }

◆ Copy()

void duckdb_re2::RE2::Options::Copy ( const Options & src)
inline
98470 {
98471 *this = src;
98472 }

◆ ParseFlags()

int duckdb_re2::RE2::Options::ParseFlags ( ) const
471726 {
471727 int flags = Regexp::ClassNL;
471728 switch (encoding()) {
471729 default:
471730 if (log_errors())
471731 LOG(ERROR) << "Unknown encoding " << encoding();
471732 break;
471733 case RE2::Options::EncodingUTF8:
471734 break;
471735 case RE2::Options::EncodingLatin1:
471736 flags |= Regexp::Latin1;
471737 break;
471738 }
471739
471740 if (!posix_syntax())
471741 flags |= Regexp::LikePerl;
471742
471743 if (literal())
471744 flags |= Regexp::Literal;
471745
471746 if (never_nl())
471747 flags |= Regexp::NeverNL;
471748
471749 if (dot_nl())
471750 flags |= Regexp::DotNL;
471751
471752 if (never_capture())
471753 flags |= Regexp::NeverCapture;
471754
471755 if (!case_sensitive())
471756 flags |= Regexp::FoldCase;
471757
471758 if (perl_classes())
471759 flags |= Regexp::PerlClasses;
471760
471761 if (word_boundary())
471762 flags |= Regexp::PerlB;
471763
471764 if (one_line())
471765 flags |= Regexp::OneLine;
471766
471767 return flags;
471768}

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