chromium/third_party/boringssl/src/pki/string_util.cc

// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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) {}

// TODO(bbe) get rid of this once we can c++20.
bool EndsWith(std::string_view str, std::string_view suffix) {}

// TODO(bbe) get rid of this once we can c++20.
bool StartsWith(std::string_view str, std::string_view prefix) {}

std::string HexEncode(Span<const uint8_t> data) {}

// TODO(bbe) get rid of this once extracted to boringssl. Everything else
// in third_party uses std::to_string
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) {}

}  // namespace string_util
BSSL_NAMESPACE_END