#include "base/i18n/case_conversion.h"
#include <stdint.h>
#include <string>
#include <string_view>
#include "base/numerics/safe_conversions.h"
#include "base/strings/string_util.h"
#include "third_party/icu/source/common/unicode/uchar.h"
#include "third_party/icu/source/common/unicode/unistr.h"
#include "third_party/icu/source/common/unicode/ustring.h"
namespace base {
namespace i18n {
namespace {
CaseMapperFunction;
int32_t ToUpperMapper(UChar* dest, int32_t dest_capacity,
const UChar* src, int32_t src_length,
UErrorCode* error) { … }
int32_t ToLowerMapper(UChar* dest, int32_t dest_capacity,
const UChar* src, int32_t src_length,
UErrorCode* error) { … }
int32_t FoldCaseMapper(UChar* dest, int32_t dest_capacity,
const UChar* src, int32_t src_length,
UErrorCode* error) { … }
std::u16string CaseMap(std::u16string_view string,
CaseMapperFunction case_mapper) { … }
}
std::u16string ToLower(std::u16string_view string) { … }
std::u16string ToUpper(std::u16string_view string) { … }
std::u16string FoldCase(std::u16string_view string) { … }
}
}