| 515 | } |
| 516 | |
| 517 | std::string RegexpStatus::Text() const { |
| 518 | if (error_arg_.empty()) |
| 519 | return CodeText(code_); |
| 520 | std::string s; |
| 521 | s.append(CodeText(code_)); |
| 522 | s.append(": "); |
| 523 | s.append(error_arg_.data(), error_arg_.size()); |
| 524 | return s; |
| 525 | } |
| 526 | |
| 527 | void RegexpStatus::Copy(const RegexpStatus& status) { |
| 528 | code_ = status.code_; |