Go to the documentation of this file.
21 #ifndef ABSL_STRINGS_STRIP_H_
22 #define ABSL_STRINGS_STRIP_H_
27 #include "absl/base/macros.h"
28 #include "absl/strings/ascii.h"
29 #include "absl/strings/match.h"
30 #include "absl/strings/string_view.h"
48 str->remove_prefix(expected.
size());
64 str->remove_suffix(expected.
size());
93 #endif // ABSL_STRINGS_STRIP_H_
bool ConsumeSuffix(absl::string_view *str, absl::string_view expected)
bool StartsWith(absl::string_view text, absl::string_view prefix) noexcept
ABSL_MUST_USE_RESULT absl::string_view StripPrefix(absl::string_view str, absl::string_view prefix)
#define ABSL_NAMESPACE_END
ABSL_MUST_USE_RESULT absl::string_view StripSuffix(absl::string_view str, absl::string_view suffix)
#define ABSL_MUST_USE_RESULT
#define ABSL_NAMESPACE_BEGIN
constexpr size_type size() const noexcept
unsigned char suffix[65536]
static const char prefix[]
bool EndsWith(absl::string_view text, absl::string_view suffix) noexcept
ABSL_NAMESPACE_BEGIN bool ConsumePrefix(absl::string_view *str, absl::string_view expected)
grpc
Author(s):
autogenerated on Fri May 16 2025 03:00:22