LibreOffice Module lingucomponent (master) 1
Public Member Functions | Private Attributes | List of all members
Guess Class Referencefinal

#include <guess.hxx>

Public Member Functions

 Guess ()
 Default init. More...
 
 Guess (const char *guess_str)
 Init from a string like [en-UK-utf8] and the rank. More...
 
const std::string & GetLanguage () const
 
const std::string & GetCountry () const
 

Private Attributes

std::string language_str
 
std::string country_str
 

Detailed Description

Definition at line 31 of file guess.hxx.

Constructor & Destructor Documentation

◆ Guess() [1/2]

Guess::Guess ( )

Default init.

Definition at line 42 of file guess.cxx.

References DEFAULT_COUNTRY.

◆ Guess() [2/2]

Guess::Guess ( const char *  guess_str)

Init from a string like [en-UK-utf8] and the rank.

Definition at line 53 of file guess.cxx.

References country_str, DEFAULT_COUNTRY, GUESS_SEPARATOR_CLOSE, GUESS_SEPARATOR_OPEN, GUESS_SEPARATOR_SEP, language_str, p, start, TEXTCAT_RESULT_SHORT_STR, and TEXTCAT_RESULT_UNKNOWN_STR.

Member Function Documentation

◆ GetCountry()

const std::string & Guess::GetCountry ( ) const
inline

Definition at line 45 of file guess.hxx.

References country_str.

◆ GetLanguage()

const std::string & Guess::GetLanguage ( ) const
inline

Definition at line 44 of file guess.hxx.

References language_str.

Member Data Documentation

◆ country_str

std::string Guess::country_str
private

Definition at line 49 of file guess.hxx.

Referenced by GetCountry(), and Guess().

◆ language_str

std::string Guess::language_str
private

Definition at line 48 of file guess.hxx.

Referenced by GetLanguage(), and Guess().


The documentation for this class was generated from the following files: