chromium/components/spellcheck/renderer/spellcheck_language.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/renderer/spellcheck_language.h"

#include <string_view>
#include <utility>

#include "base/logging.h"
#include "components/spellcheck/renderer/spellcheck_worditerator.h"
#include "components/spellcheck/renderer/spelling_engine.h"

SpellcheckLanguage::SpellcheckLanguage(
    service_manager::LocalInterfaceProvider* embedder_provider)
    :{}

SpellcheckLanguage::~SpellcheckLanguage() = default;

void SpellcheckLanguage::Init(base::File file, const std::string& language) {}

bool SpellcheckLanguage::InitializeIfNeeded() {}

SpellcheckLanguage::SpellcheckWordResult SpellcheckLanguage::SpellCheckWord(
    std::u16string_view text,
    spellcheck::mojom::SpellCheckHost& host,
    size_t* skip_or_misspelling_start,
    size_t* skip_or_misspelling_len,
    std::vector<std::u16string>* optional_suggestions) {}

// Returns whether or not the given string is a valid contraction.
// This function is a fall-back when the SpellcheckWordIterator class
// returns a concatenated word which is not in the selected dictionary
// (e.g. "in'n'out") but each word is valid.
bool SpellcheckLanguage::IsValidContraction(
    const std::u16string& contraction,
    spellcheck::mojom::SpellCheckHost& host) {}

bool SpellcheckLanguage::IsEnabled() {}

bool SpellcheckLanguage::IsTextInSameScript(const std::u16string& text) const {}