diff options
Diffstat (limited to 'lingucomponent/source/languageguessing')
7 files changed, 24 insertions, 24 deletions
diff --git a/lingucomponent/source/languageguessing/altstrfunc.cxx b/lingucomponent/source/languageguessing/altstrfunc.cxx index 35e989a4f7e7..5461a2267ab0 100644 --- a/lingucomponent/source/languageguessing/altstrfunc.cxx +++ b/lingucomponent/source/languageguessing/altstrfunc.cxx @@ -2,7 +2,7 @@ /*************************************************************************** * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite diff --git a/lingucomponent/source/languageguessing/altstrfunc.hxx b/lingucomponent/source/languageguessing/altstrfunc.hxx index 6a45106b9bcf..5ddeda4eea3b 100644 --- a/lingucomponent/source/languageguessing/altstrfunc.hxx +++ b/lingucomponent/source/languageguessing/altstrfunc.hxx @@ -2,7 +2,7 @@ /*************************************************************************** * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite diff --git a/lingucomponent/source/languageguessing/guess.cxx b/lingucomponent/source/languageguessing/guess.cxx index 3885a417a82a..2a377dc0f891 100644 --- a/lingucomponent/source/languageguessing/guess.cxx +++ b/lingucomponent/source/languageguessing/guess.cxx @@ -2,7 +2,7 @@ /*************************************************************************** * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite diff --git a/lingucomponent/source/languageguessing/guess.hxx b/lingucomponent/source/languageguessing/guess.hxx index 5b601ed7c6e9..b05913bb2721 100644 --- a/lingucomponent/source/languageguessing/guess.hxx +++ b/lingucomponent/source/languageguessing/guess.hxx @@ -2,7 +2,7 @@ /*************************************************************************** * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -44,12 +44,12 @@ using namespace std; */ class Guess{ public: - + /** * Default init */ Guess(); - + /** * Init from a string like [en-UK-utf8] and the rank */ @@ -60,9 +60,9 @@ class Guess{ string GetLanguage(); string GetCountry(); string GetEncoding(); - + bool operator==(string lang); - + protected: string language_str; string country_str; diff --git a/lingucomponent/source/languageguessing/guesslang.cxx b/lingucomponent/source/languageguessing/guesslang.cxx index 0efe7eebf200..d6b2c3c24c05 100644 --- a/lingucomponent/source/languageguessing/guesslang.cxx +++ b/lingucomponent/source/languageguessing/guesslang.cxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -106,7 +106,7 @@ class LangGuess_Impl : public: explicit LangGuess_Impl(css::uno::Reference< css::uno::XComponentContext > const & rxContext); - // XServiceInfo implementation + // XServiceInfo implementation virtual OUString SAL_CALL getImplementationName( ) throw(RuntimeException); virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) throw(RuntimeException); virtual Sequence< OUString > SAL_CALL getSupportedServiceNames( ) throw(RuntimeException); diff --git a/lingucomponent/source/languageguessing/simpleguesser.cxx b/lingucomponent/source/languageguessing/simpleguesser.cxx index b4c37d490c74..8bc444b8f586 100644 --- a/lingucomponent/source/languageguessing/simpleguesser.cxx +++ b/lingucomponent/source/languageguessing/simpleguesser.cxx @@ -2,7 +2,7 @@ /*************************************************************************** * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite diff --git a/lingucomponent/source/languageguessing/simpleguesser.hxx b/lingucomponent/source/languageguessing/simpleguesser.hxx index 4a164c7e35da..ee76b0781dcf 100644 --- a/lingucomponent/source/languageguessing/simpleguesser.hxx +++ b/lingucomponent/source/languageguessing/simpleguesser.hxx @@ -2,7 +2,7 @@ /*************************************************************************** * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -45,7 +45,7 @@ class SimpleGuesser{ public: /**inits the object with conf file "./conf.txt"*/ SimpleGuesser(); - + /** Compares the current Simpleguesser with an other * @param SimpleGuesser& sg the other guesser to compare */ @@ -55,51 +55,51 @@ public: * destroy the object */ ~SimpleGuesser(); - + /** * Analyze a text and return the most probable languages of the text * @param char* text is the text to analyze * @return the list of guess */ vector<Guess> GuessLanguage(char* text); - + /** * Analyze a text and return the most probable language of the text * @param char* text is the text to analyze * @return the guess (containing language) */ Guess GuessPrimaryLanguage(char* text); - + /** * List all available languages (possibly to be in guesses) * @return the list of languages */ vector<Guess> GetAvailableLanguages(); - + /** * List all languages (possibly in guesses or not) * @return the list of languages */ vector<Guess> GetAllManagedLanguages(); - + /** * List all Unavailable languages (disable for any reason) * @return the list of languages */ vector<Guess> GetUnavailableLanguages(); - + /** * Mark a language enabled * @param string lang the language to enable (build like language-COUNTRY-encoding) */ void EnableLanguage(string lang); - + /** * Mark a language disabled * @param string lang the language to disable (build like language-COUNTRY-encoding) */ void DisableLanguage(string lang); - + /** * Load a new DB of fingerprints * @param const char* thePathOfConfFile self explaining @@ -108,13 +108,13 @@ public: void SetDBPath(const char* thePathOfConfFile, const char* prefix); protected: - + //Where typical fingerprints (n-gram tables) are stored void* h; - + //Is used to select languages into the fingerprints DB, the mask is used to indicate if we want enabled disabled or both vector<Guess> GetManagedLanguages(const char mask); - + //Like getManagedLanguages, this function enable or disable a language and it depends of the mask void XableLanguage(string lang, char mask); }; |