chromium/third_party/blink/renderer/platform/wtf/text/case_map.cc

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

#ifdef UNSAFE_BUFFERS_BUILD
// TODO(crbug.com/351564777): Remove this and convert code to safer constructs.
#pragma allow_unsafe_buffers
#endif

#include "third_party/blink/renderer/platform/wtf/text/case_map.h"

#include <unicode/casemap.h>

#include "base/notreached.h"
#include "third_party/blink/renderer/platform/wtf/text/atomic_string.h"
#include "third_party/blink/renderer/platform/wtf/text/character_names.h"
#include "third_party/blink/renderer/platform/wtf/text/string_impl.h"
#include "third_party/blink/renderer/platform/wtf/text/string_view.h"
#include "third_party/blink/renderer/platform/wtf/text/text_offset_map.h"
#include "third_party/blink/renderer/platform/wtf/text/unicode.h"
#include "third_party/blink/renderer/platform/wtf/text/wtf_string.h"

namespace WTF {

namespace {

inline bool LocaleIdMatchesLang(const AtomicString& locale_id,
                                const StringView& lang) {}

enum class CaseMapType {};

scoped_refptr<StringImpl> CaseConvert(CaseMapType type,
                                      StringImpl* source,
                                      const char* locale,
                                      TextOffsetMap* offset_map = nullptr) {}

}  // namespace

const char* CaseMap::Locale::turkic_or_azeri_ =;
const char* CaseMap::Locale::greek_ =;
const char* CaseMap::Locale::lithuanian_ =;

CaseMap::Locale::Locale(const AtomicString& locale) {}

scoped_refptr<StringImpl> CaseMap::TryFastToLowerInvariant(StringImpl* source) {}

scoped_refptr<StringImpl> CaseMap::FastToLowerInvariant(StringImpl* source) {}

scoped_refptr<StringImpl> CaseMap::ToLowerInvariant(StringImpl* source,
                                                    TextOffsetMap* offset_map) {}

scoped_refptr<StringImpl> CaseMap::ToUpperInvariant(StringImpl* source,
                                                    TextOffsetMap* offset_map) {}

scoped_refptr<StringImpl> CaseMap::ToLower(StringImpl* source,
                                           TextOffsetMap* offset_map) const {}

scoped_refptr<StringImpl> CaseMap::ToUpper(StringImpl* source,
                                           TextOffsetMap* offset_map) const {}

String CaseMap::ToLower(const String& source, TextOffsetMap* offset_map) const {}

String CaseMap::ToUpper(const String& source, TextOffsetMap* offset_map) const {}

}  // namespace WTF