Go to the documentation of this file.
24 #include "absl/base/attributes.h"
33 bool ok() {
return re2_.ok(); }
37 return RE2::Extract(
text, re.re2_, rewrite,
out);
39 template <
typename...
A>
42 return RE2::PartialMatch(
text, re.re2_,
a...);
47 return RE2::GlobalReplace(
str, re.re2_, rewrite);
60 static void _abort() {
throw "No support for regular expressions"; }
73 template <
typename...
A>
91 #endif // BLOATY_RE_H_
#define ABSL_ATTRIBUTE_NORETURN
ReImpl(const std::string &)
static ABSL_ATTRIBUTE_NORETURN void _abort()
static ABSL_ATTRIBUTE_NORETURN bool Replace(std::string *, const ReImpl &, std::string)
static ABSL_ATTRIBUTE_NORETURN bool Extract(std::string, const ReImpl &, std::string, std::string *)
static ABSL_ATTRIBUTE_NORETURN bool PartialMatch(const std::string &, const ReImpl &, A &&...)
std::string Replace(std::string s, const std::string &from, const std::string &to)
static ABSL_ATTRIBUTE_NORETURN int GlobalReplace(std::string *, const ReImpl &, std::string)
grpc
Author(s):
autogenerated on Fri May 16 2025 03:00:00