Nuspell
spellchecker
Public Member Functions | Public Attributes | List of all members
nuspell::Aff_Data Struct Reference
Inheritance diagram for nuspell::Aff_Data:
[legend]
Collaboration diagram for nuspell::Aff_Data:
[legend]

Public Member Functions

auto set_encoding_and_language (const std::string &enc, const std::string &lang="") -> void
 Sets the internal encoding, and optionally, language. More...
 
auto parse_aff (std::istream &in) -> bool
 Parses an input stream offering affix information. More...
 
auto parse_dic (std::istream &in) -> bool
 Parses an input stream offering dictionary information. More...
 
auto parse_aff_dic (std::istream &aff, std::istream &dic)
 
template<class CharT >
auto get_structures () const -> const Aff_Structures< CharT > &
 
template<>
auto get_structures () const -> const Aff_Structures< char > &
 
template<>
auto get_structures () const -> const Aff_Structures< wchar_t > &
 

Public Attributes

Word_List words
 
Aff_Structures< char > structures
 
Aff_Structures< wchar_t > wide_structures
 
std::locale internal_locale
 
Flag_Type flag_type
 
bool complex_prefixes
 
bool fullstrip
 
bool checksharps
 
bool forbid_warn
 
char16_t circumfix_flag
 
char16_t forbiddenword_flag
 
char16_t keepcase_flag
 
char16_t need_affix_flag
 
char16_t substandard_flag
 
char16_t warn_flag
 
std::vector< Flag_Setflag_aliases
 
std::string wordchars
 
char16_t nosuggest_flag
 
unsigned short max_compound_suggestions
 
unsigned short max_ngram_suggestions
 
unsigned short max_diff_factor
 
bool only_max_diff
 
bool no_split_suggestions
 
bool suggest_with_dots
 
unsigned short compound_min_length
 
unsigned short compound_max_word_count
 
char16_t compound_flag
 
char16_t compound_begin_flag
 
char16_t compound_last_flag
 
char16_t compound_middle_flag
 
char16_t compound_onlyin_flag
 
char16_t compound_permit_flag
 
char16_t compound_forbid_flag
 
char16_t compound_root_flag
 
char16_t compound_force_uppercase
 
bool compound_more_suffixes
 
bool compound_check_duplicate
 
bool compound_check_rep
 
bool compound_check_case
 
bool compound_check_triple
 
bool compound_simplified_triple
 
Compound_Rule_Table compound_rules
 
unsigned short compound_syllable_max
 
std::string compound_syllable_vowels
 
Flag_Set compound_syllable_num
 

Member Function Documentation

◆ parse_aff()

auto nuspell::Aff_Data::parse_aff ( std::istream &  in) -> bool

Parses an input stream offering affix information.

Parameters
ininput stream to parse from.
Returns
true on success.

◆ parse_dic()

auto nuspell::Aff_Data::parse_dic ( std::istream &  in) -> bool

Parses an input stream offering dictionary information.

Parameters
ininput stream to read from.
Returns
true on success.

◆ set_encoding_and_language()

auto nuspell::Aff_Data::set_encoding_and_language ( const std::string &  enc,
const std::string &  lang = "" 
) -> void

Sets the internal encoding, and optionally, language.

Sets the encoding of the strings inside the dictionary. This function should not be called manually because it is called by parse_aff(). Should be only called if you are manually filling this object via C++ code, and not from file.

Parameters
enc
lang

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