#include "string_util.h"
#include <algorithm>
#include <iomanip>
#include <sstream>
#include <string>
#include <openssl/base64.h>
#include <openssl/mem.h>
BSSL_NAMESPACE_BEGIN
namespace string_util {
bool IsAscii(std::string_view str) { … }
bool IsEqualNoCase(std::string_view str1, std::string_view str2) { … }
bool EndsWithNoCase(std::string_view str, std::string_view suffix) { … }
bool StartsWithNoCase(std::string_view str, std::string_view prefix) { … }
std::string FindAndReplace(std::string_view str, std::string_view find,
std::string_view replace) { … }
bool EndsWith(std::string_view str, std::string_view suffix) { … }
bool StartsWith(std::string_view str, std::string_view prefix) { … }
std::string HexEncode(Span<const uint8_t> data) { … }
std::string NumberToDecimalString(int i) { … }
std::vector<std::string_view> SplitString(std::string_view str,
char split_char) { … }
static bool IsUnicodeWhitespace(char c) { … }
std::string CollapseWhitespaceASCII(std::string_view text,
bool trim_sequences_with_line_breaks) { … }
bool Base64Encode(const std::string_view &input, std::string *output) { … }
bool Base64Decode(const std::string_view &input, std::string *output) { … }
}
BSSL_NAMESPACE_END