summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libs/hunspell/src/hunspell.cxx14
-rw-r--r--libs/hunspell/src/hunspell.hxx1
2 files changed, 7 insertions, 8 deletions
diff --git a/libs/hunspell/src/hunspell.cxx b/libs/hunspell/src/hunspell.cxx
index 1ef11df341..b1535013fe 100644
--- a/libs/hunspell/src/hunspell.cxx
+++ b/libs/hunspell/src/hunspell.cxx
@@ -95,7 +95,6 @@ public:
std::vector<std::string> stem(const std::string& word);
std::vector<std::string> stem(const std::vector<std::string>& morph);
std::vector<std::string> analyze(const std::string& word);
- int get_langnum() const;
bool input_conv(const std::string& word, std::string& dest);
bool spell(const std::string& word, int* info = NULL, std::string* root = NULL);
std::vector<std::string> suggest(const std::string& word);
@@ -105,10 +104,13 @@ public:
int add(const std::string& word);
int add_with_affix(const std::string& word, const std::string& example);
int remove(const std::string& word);
- const std::string& get_version() const;
struct cs_info* get_csconv();
std::vector<char> dic_encoding_vec;
+ int get_langnum() const { return langnum; }
+ const char* get_try_string() const { return pAMgr->get_try_string(); }
+ const std::string& get_version() const { return pAMgr->get_version(); }
+
private:
AffixMgr* pAMgr;
std::vector<HashMgr*> m_HMgrs;
@@ -1336,8 +1338,8 @@ const std::string& Hunspell::get_version_cpp() const {
return m_Impl->get_version();
}
-const std::string& HunspellImpl::get_version() const {
- return pAMgr->get_version();
+const char* Hunspell::get_try_string() const {
+ return m_Impl->get_try_string();
}
struct cs_info* HunspellImpl::get_csconv() {
@@ -1674,10 +1676,6 @@ int Hunspell::get_langnum() const {
return m_Impl->get_langnum();
}
-int HunspellImpl::get_langnum() const {
- return langnum;
-}
-
bool Hunspell::input_conv(const std::string& word, std::string& dest) {
return m_Impl->input_conv(word, dest);
}
diff --git a/libs/hunspell/src/hunspell.hxx b/libs/hunspell/src/hunspell.hxx
index a06bdd43ab..f728f829c2 100644
--- a/libs/hunspell/src/hunspell.hxx
+++ b/libs/hunspell/src/hunspell.hxx
@@ -216,6 +216,7 @@ class LIBHUNSPELL_DLL_EXPORTED Hunspell {
struct cs_info* get_csconv();
+ const char* get_try_string() const;
const char* get_version() const;
const std::string& get_version_cpp() const;