chromium/components/spellcheck/common/spellcheck_common.cc

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

#include "components/spellcheck/common/spellcheck_common.h"

#include <string_view>

#include "base/check.h"
#include "base/command_line.h"
#include "base/containers/contains.h"
#include "base/files/file_path.h"
#include "base/metrics/field_trial.h"
#include "base/strings/string_util.h"
#include "third_party/icu/source/common/unicode/uloc.h"
#include "third_party/icu/source/common/unicode/urename.h"
#include "third_party/icu/source/common/unicode/utypes.h"

namespace spellcheck {

struct LanguageRegion {};

struct LanguageVersion {};

static constexpr LanguageRegion kSupportedSpellCheckerLanguages[] =;

bool IsValidRegion(const std::string& region) {}

// This function returns the language-region version of language name.
// e.g. returns hi-IN for hi.
std::string GetSpellCheckLanguageRegion(std::string_view input_language) {}

base::FilePath GetVersionedFileName(std::string_view input_language,
                                    const base::FilePath& dict_dir) {}

std::string GetCorrespondingSpellCheckLanguage(std::string_view language) {}

std::vector<std::string> SpellCheckLanguages() {}

void GetISOLanguageCountryCodeFromLocale(const std::string& locale,
                                         std::string* language_code,
                                         std::string* country_code) {}

void FillSuggestions(
    const std::vector<std::vector<std::u16string>>& suggestions_list,
    std::vector<std::u16string>* optional_suggestions) {}

}  // namespace spellcheck