Go to the documentation of this file.
15 #include "absl/strings/str_split.h"
26 #include "absl/base/internal/raw_logging.h"
27 #include "absl/strings/ascii.h"
40 template <
typename FindPolicy>
43 FindPolicy find_policy) {
44 if (delimiter.
empty() &&
text.length() > 0) {
52 found_pos = find_policy.Find(
text, delimiter,
pos);
55 find_policy.Length(delimiter));
64 return text.find(delimiter,
pos);
73 return text.find_first_of(delimiter,
pos);
93 return text.substr(found_pos, 1);
106 return text.substr(found_pos, 1);
#define ABSL_RAW_CHECK(condition, message)
absl::string_view Find(absl::string_view text, size_t pos) const
size_t Find(absl::string_view text, absl::string_view delimiter, size_t pos)
ByLength(ptrdiff_t length)
absl::string_view Find(absl::string_view text, size_t pos) const
ByAnyChar(absl::string_view sp)
const std::string delimiters_
size_t Length(absl::string_view)
#define ABSL_NAMESPACE_END
constexpr size_type length() const noexcept
#define ABSL_NAMESPACE_BEGIN
ByString(absl::string_view sp)
size_t Find(absl::string_view text, absl::string_view delimiter, size_t pos)
absl::string_view Find(absl::string_view text, size_t pos) const
const std::string delimiter_
absl::string_view string_view
size_t Length(absl::string_view delimiter)
constexpr bool empty() const noexcept
static constexpr size_type npos
constexpr const_pointer data() const noexcept
absl::string_view GenericFind(absl::string_view text, absl::string_view delimiter, size_t pos, FindPolicy find_policy)
absl::string_view Find(absl::string_view text, size_t pos) const
grpc
Author(s):
autogenerated on Fri May 16 2025 03:00:20