Home
last modified time | relevance | path

Searched refs:pimpl_ (Results 1 – 2 of 2) sorted by relevance

/external/libtextclassifier/lang_id/
Dlang-id.cc350 LangId::LangId(const std::string &filename) : pimpl_(new LangIdImpl(filename)) { in LangId()
351 if (!pimpl_->is_valid()) { in LangId()
359 LangId::LangId(int fd) : pimpl_(new LangIdImpl(fd)) { in LangId()
360 if (!pimpl_->is_valid()) { in LangId()
369 : pimpl_(new LangIdImpl(ptr, length)) { in LangId()
370 if (!pimpl_->is_valid()) { in LangId()
380 pimpl_->SetProbabilityThreshold(threshold); in SetProbabilityThreshold()
384 pimpl_->SetDefaultLanguage(lang); in SetDefaultLanguage()
388 return pimpl_->FindLanguage(text); in FindLanguage()
393 return pimpl_->FindLanguages(text); in FindLanguages()
[all …]
Dlang-id.h103 std::unique_ptr<LangIdImpl> pimpl_; variable