#include "net/base/net_string_util.h"
#include <string_view>
#include "base/i18n/case_conversion.h"
#include "base/i18n/i18n_constants.h"
#include "base/i18n/icu_string_conversions.h"
#include "base/strings/string_util.h"
#include "third_party/icu/source/common/unicode/ucnv.h"
namespace net {
const char* const kCharsetLatin1 = …;
bool ConvertToUtf8(std::string_view text,
const char* charset,
std::string* output) { … }
bool ConvertToUtf8AndNormalize(std::string_view text,
const char* charset,
std::string* output) { … }
bool ConvertToUTF16(std::string_view text,
const char* charset,
std::u16string* output) { … }
bool ConvertToUTF16WithSubstitutions(std::string_view text,
const char* charset,
std::u16string* output) { … }
bool ToUpper(std::u16string_view str, std::u16string* output) { … }
}