|
| static std::string | CodeText (RegexpStatusCode code) |
|
|
| RegexpStatus (const RegexpStatus &)=delete |
|
RegexpStatus & | operator= (const RegexpStatus &)=delete |
|
|
RegexpStatusCode | code_ |
|
StringPiece | error_arg_ |
|
std::string * | tmp_ |
◆ RegexpStatus()
| duckdb_re2::RegexpStatus::RegexpStatus |
( |
| ) |
|
|
inline |
322400: code_(kRegexpSuccess), tmp_(NULL) {}
◆ ~RegexpStatus()
| duckdb_re2::RegexpStatus::~RegexpStatus |
( |
| ) |
|
|
inline |
◆ set_code()
| void duckdb_re2::RegexpStatus::set_code |
( |
RegexpStatusCode | code | ) |
|
|
inline |
◆ set_error_arg()
| void duckdb_re2::RegexpStatus::set_error_arg |
( |
const StringPiece & | error_arg | ) |
|
|
inline |
322404{ error_arg_ = error_arg; }
◆ set_tmp()
| void duckdb_re2::RegexpStatus::set_tmp |
( |
std::string * | tmp | ) |
|
|
inline |
322405{ delete tmp_; tmp_ = tmp; }
◆ code()
| RegexpStatusCode duckdb_re2::RegexpStatus::code |
( |
| ) |
const |
|
inline |
◆ error_arg()
| const StringPiece & duckdb_re2::RegexpStatus::error_arg |
( |
| ) |
const |
|
inline |
322407{ return error_arg_; }
◆ ok()
| bool duckdb_re2::RegexpStatus::ok |
( |
| ) |
const |
|
inline |
322408{ return code() == kRegexpSuccess; }
◆ Copy()
| void duckdb_re2::RegexpStatus::Copy |
( |
const RegexpStatus & | status | ) |
|
473480 {
473481 code_ = status.code_;
473482 error_arg_ = status.error_arg_;
473483}
◆ CodeText()
| std::string duckdb_re2::RegexpStatus::CodeText |
( |
RegexpStatusCode | code | ) |
|
|
static |
473464 {
473465 if (code < 0 || code >= arraysize(kErrorStrings))
473466 code = kRegexpInternalError;
473467 return kErrorStrings[code];
473468}
◆ Text()
| std::string duckdb_re2::RegexpStatus::Text |
( |
| ) |
const |
473470 {
473471 if (error_arg_.empty())
473472 return CodeText(code_);
473473 std::string s;
473474 s.append(CodeText(code_));
473475 s.append(": ");
473476 s.append(error_arg_.data(), error_arg_.size());
473477 return s;
473478}
The documentation for this class was generated from the following file: