#include "base/strings/string_split.h"
#include <stddef.h>
#include <string_view>
#include "base/logging.h"
#include "base/strings/string_split_internal.h"
#include "base/strings/string_util.h"
#include "base/third_party/icu/icu_utf.h"
namespace base {
namespace {
std::optional<std::pair<std::string_view, std::string_view>>
SplitStringAtExclusive(std::string_view input, size_t position) { … }
bool AppendStringKeyValue(std::string_view input,
char delimiter,
StringPairs* result) { … }
}
std::optional<std::pair<std::string_view, std::string_view>> SplitStringOnce(
std::string_view input,
char separator) { … }
std::optional<std::pair<std::string_view, std::string_view>> SplitStringOnce(
std::string_view input,
std::string_view separators) { … }
std::optional<std::pair<std::string_view, std::string_view>> RSplitStringOnce(
std::string_view input,
char separator) { … }
std::optional<std::pair<std::string_view, std::string_view>> RSplitStringOnce(
std::string_view input,
std::string_view separators) { … }
std::vector<std::string> SplitString(std::string_view input,
std::string_view separators,
WhitespaceHandling whitespace,
SplitResult result_type) { … }
std::vector<std::u16string> SplitString(std::u16string_view input,
std::u16string_view separators,
WhitespaceHandling whitespace,
SplitResult result_type) { … }
std::vector<std::string_view> SplitStringPiece(std::string_view input,
std::string_view separators,
WhitespaceHandling whitespace,
SplitResult result_type) { … }
std::vector<std::u16string_view> SplitStringPiece(
std::u16string_view input,
std::u16string_view separators,
WhitespaceHandling whitespace,
SplitResult result_type) { … }
bool SplitStringIntoKeyValuePairs(std::string_view input,
char key_value_delimiter,
char key_value_pair_delimiter,
StringPairs* key_value_pairs) { … }
bool SplitStringIntoKeyValuePairsUsingSubstr(
std::string_view input,
char key_value_delimiter,
std::string_view key_value_pair_delimiter,
StringPairs* key_value_pairs) { … }
std::vector<std::u16string> SplitStringUsingSubstr(
std::u16string_view input,
std::u16string_view delimiter,
WhitespaceHandling whitespace,
SplitResult result_type) { … }
std::vector<std::string> SplitStringUsingSubstr(std::string_view input,
std::string_view delimiter,
WhitespaceHandling whitespace,
SplitResult result_type) { … }
std::vector<std::u16string_view> SplitStringPieceUsingSubstr(
std::u16string_view input,
std::u16string_view delimiter,
WhitespaceHandling whitespace,
SplitResult result_type) { … }
std::vector<std::string_view> SplitStringPieceUsingSubstr(
std::string_view input,
std::string_view delimiter,
WhitespaceHandling whitespace,
SplitResult result_type) { … }
}