35 #ifndef ABSL_STRINGS_STR_SPLIT_H_ 36 #define ABSL_STRINGS_STR_SPLIT_H_ 220 namespace strings_internal {
229 template <
typename Delimiter>
256 template <
typename Delimiter>
260 :
delimiter_(delimiter), limit_(limit), count_(0) {}
262 if (count_++ == limit_) {
289 template <
typename Delimiter>
296 DelimiterType(delimiter), limit);
488 template <
typename Delimiter>
492 using DelimiterType =
493 typename strings_internal::SelectDelimiter<Delimiter>::type;
498 template <
typename Delimiter,
typename Predicate>
500 typename strings_internal::SelectDelimiter<Delimiter>::type, Predicate>
503 using DelimiterType =
504 typename strings_internal::SelectDelimiter<Delimiter>::type;
511 #endif // ABSL_STRINGS_STR_SPLIT_H_
const std::string delimiter_
bool operator()(absl::string_view) const
strings_internal::MaxSplitsImpl< typename strings_internal::SelectDelimiter< Delimiter >::type > MaxSplits(Delimiter delimiter, int limit)
MaxSplitsImpl(Delimiter delimiter, int limit)
constexpr size_type size() const noexcept
strings_internal::Splitter< typename strings_internal::SelectDelimiter< Delimiter >::type, AllowEmpty > StrSplit(strings_internal::ConvertibleToStringView text, Delimiter d)
absl::string_view Find(absl::string_view text, size_t pos) const
absl::string_view Find(absl::string_view text, size_t pos)
ABSL_MUST_USE_RESULT absl::string_view StripAsciiWhitespace(absl::string_view str)
constexpr bool empty() const noexcept
const std::string delimiters_
constexpr const_pointer data() const noexcept
bool operator()(absl::string_view sp) const
bool operator()(absl::string_view sp) const
constexpr absl::remove_reference_t< T > && move(T &&t) noexcept
ByString(absl::string_view sp)