#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) { … }
bool SpellcheckLanguage::IsValidContraction(
const std::u16string& contraction,
spellcheck::mojom::SpellCheckHost& host) { … }
bool SpellcheckLanguage::IsEnabled() { … }
bool SpellcheckLanguage::IsTextInSameScript(const std::u16string& text) const { … }