Go to the documentation of this file.
35 #ifndef ABSL_STRINGS_STR_SPLIT_H_
36 #define ABSL_STRINGS_STR_SPLIT_H_
46 #include "absl/base/internal/raw_logging.h"
47 #include "absl/base/macros.h"
48 #include "absl/strings/internal/str_split_internal.h"
49 #include "absl/strings/string_view.h"
50 #include "absl/strings/strip.h"
222 namespace strings_internal {
231 template <
typename Delimiter>
258 template <
typename Delimiter>
291 template <
typename Delimiter>
298 DelimiterType(delimiter), limit);
372 template <
typename T>
495 template <
typename Delimiter>
500 using DelimiterType =
507 template <
typename Delimiter,
typename StringType,
508 EnableSplitIfString<StringType> = 0>
509 strings_internal::Splitter<
513 using DelimiterType =
519 template <
typename Delimiter,
typename Predicate>
520 strings_internal::Splitter<
525 using DelimiterType =
532 template <
typename Delimiter,
typename Predicate,
typename StringType,
533 EnableSplitIfString<StringType> = 0>
534 strings_internal::Splitter<
538 using DelimiterType =
547 #endif // ABSL_STRINGS_STR_SPLIT_H_
ABSL_MUST_USE_RESULT absl::string_view StripAsciiWhitespace(absl::string_view str)
strings_internal::Splitter< typename strings_internal::SelectDelimiter< Delimiter >::type, AllowEmpty, absl::string_view > StrSplit(strings_internal::ConvertibleToStringView text, Delimiter d)
absl::string_view Find(absl::string_view text, size_t pos) const
strings_internal::MaxSplitsImpl< typename strings_internal::SelectDelimiter< Delimiter >::type > MaxSplits(Delimiter delimiter, int limit)
MaxSplitsImpl(Delimiter delimiter, int limit)
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_
absl::string_view Find(absl::string_view text, size_t pos)
bool operator()(absl::string_view sp) const
#define ABSL_NAMESPACE_END
typename std::enable_if< std::is_same< T, std::string >::value||std::is_same< T, const std::string >::value, int >::type EnableSplitIfString
#define ABSL_NAMESPACE_BEGIN
constexpr absl::remove_reference_t< T > && move(T &&t) noexcept
ByString(absl::string_view sp)
absl::string_view Find(absl::string_view text, size_t pos) const
bool operator()(absl::string_view) const
const std::string delimiter_
absl::string_view string_view
constexpr bool empty() const noexcept
bool operator()(absl::string_view sp) const
absl::string_view Find(absl::string_view text, size_t pos) const
grpc
Author(s):
autogenerated on Fri May 16 2025 03:00:20