Public Member Functions | Private Member Functions | Private Attributes

BarbarismChecker Class Reference

#include <barbarisms.h>

Inheritance diagram for BarbarismChecker:

List of all members.

Public Member Functions

 BarbarismChecker ()
 ~BarbarismChecker ()
bool load (const char *szLang)
bool checkWord (const UT_UCSChar *word32, size_t length)
 True if word is a barbarsim, false if not.
bool suggestWord (const UT_UCSChar *word32, size_t length, UT_GenericVector< UT_UCSChar * > *pVecsugg)
void startElement (const gchar *name, const gchar **atts)
void endElement (const gchar *)
void charData (const gchar *, int)

Private Member Functions

bool suggestExactWord (const UT_UCSChar *word32, size_t length, UT_GenericVector< UT_UCSChar * > *pVecsugg)

Private Attributes

< UT_GenericVector
< UT_UCS4Char * > * > 
UT_GenericVector< UT_UCS4Char * > * m_pCurVector
UT_String m_sLang

Constructor & Destructor Documentation

BarbarismChecker::BarbarismChecker (  ) 

References m_pCurVector.

BarbarismChecker::~BarbarismChecker (  ) 

References m_map.

Member Function Documentation

void BarbarismChecker::charData ( const gchar *  ,
) [inline, virtual]

Implements UT_XML::Listener.

bool BarbarismChecker::checkWord ( const UT_UCSChar word32,
size_t  length 

True if word is a barbarsim, false if not.

References UT_UTF8String::appendUCS4(), m_map, UT_GenericStringMap< T >::pick(), and UT_UTF8String::utf8_str().

Referenced by SpellChecker::checkWord().

void BarbarismChecker::endElement ( const gchar *   )  [inline, virtual]

Implements UT_XML::Listener.

bool BarbarismChecker::load ( const char *  szLang  ) 
void BarbarismChecker::startElement ( const gchar *  name,
const gchar **  atts 
) [virtual]

Member Data Documentation

Referenced by load().

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