ddc
|
#include <GraphanDicts.h>
Classes | |
struct | CSpacedWord |
Public Member Functions | |
CGraphanDicts (MorphLanguageEnum Language) | |
~CGraphanDicts () | |
bool | ReadSpaces (string FileName) |
const char * | SearchSpace (const char *In, int *len) const |
bool | FindInIdents (const char *s, BYTE &ResultLen) const |
bool | ReadIdents (string FileName) |
bool | ReadENames (string FileName) |
const CDictionary * | GetOborDic () const |
void | BuildOborot (const string &s, int OborotNo) |
void | BuildOborottos () |
bool | ReadAbbrevations () |
bool | IsRegisteredKeyModifier (const char *Str, size_t Len) const |
bool | ReadKeyboard (string FileName) |
bool | IsExtension (const char *UpperStr, BYTE Len) const |
bool | ReadExtensions (string FileName) |
Public Attributes | |
MorphLanguageEnum | m_Language |
vector< CSpacedWord > | m_Spaces |
StringVector | m_Idents [256] |
vector< CEnglishName > | m_EnglishNames |
PtrHolder< CDictionary > | m_pOborDic |
map< WORD, vector< WORD > > | m_OborottosFirstWordIndex |
vector< CGraphemOborot > | m_Oborottos |
StringVector | m_OborotTokens |
vector< CAbbrev > | m_Abbrevs |
StringVector | m_KeyModifiers |
StringVector | m_Keys |
StringVector | m_Extensions |
CGraphanDicts::CGraphanDicts | ( | MorphLanguageEnum | Language | ) |
References m_Language.
CGraphanDicts::~CGraphanDicts | ( | ) |
bool CGraphanDicts::ReadSpaces | ( | string | FileName | ) |
References m_Language, CGraphanDicts::CSpacedWord::m_SpacedWord, CGraphanDicts::CSpacedWord::m_SpacedWordLen, m_Spaces, MOpen(), morphUnknown, RD_MODE, and rtrim().
Referenced by CGraphmatFile::LoadDicts().
const char * CGraphanDicts::SearchSpace | ( | const char * | In, |
int * | len | ||
) | const |
References m_Language, m_Spaces, and StrSpacingCompare().
Referenced by CGraLine::ReadWord().
bool CGraphanDicts::FindInIdents | ( | const char * | s, |
BYTE & | ResultLen | ||
) | const |
References CompareWithoutRegister(), m_Idents, and morphEnglish.
Referenced by CGraLine::ReadWord().
bool CGraphanDicts::ReadIdents | ( | string | FileName | ) |
References m_Idents, m_Language, MaxNameSize, MOpen(), morphUnknown, RD_MODE, ReverseChar(), and Trim().
Referenced by CGraphmatFile::LoadDicts().
bool CGraphanDicts::ReadENames | ( | string | FileName | ) |
References m_EnglishNames, m_Language, MaxNameSize, MOpen(), morphUnknown, CEnglishName::name, RD_MODE, and RmlMakeUpper().
Referenced by CGraphmatFile::LoadDicts().
|
inline |
void CGraphanDicts::BuildOborot | ( | const string & | s, |
int | OborotNo | ||
) |
References ErrorMessage(), CGraphemOborot::m_UnitNo, CGraphemOborot::m_UnitStr, and NormalizeOborotStr().
void CGraphanDicts::BuildOborottos | ( | ) |
References BuildOborottosIndex(), ErrorMessage(), and Format().
Referenced by CGraphmatFile::LoadDicts().
bool CGraphanDicts::ReadAbbrevations | ( | ) |
References GetRegistryString(), CStrToCompare::m_Language, MakeFName(), morphGerman, and ReadAbbrevationsFromOneFile().
Referenced by CGraphmatFile::LoadDicts().
bool CGraphanDicts::IsRegisteredKeyModifier | ( | const char * | Str, |
size_t | Len | ||
) | const |
References m_KeyModifiers.
Referenced by CGraLine::LengthUntilDelimiters().
bool CGraphanDicts::ReadKeyboard | ( | string | FileName | ) |
References CStrToCompare::m_Language, RmlMakeUpper(), and rtrim().
Referenced by CGraphmatFile::LoadDicts().
bool CGraphanDicts::IsExtension | ( | const char * | UpperStr, |
BYTE | Len | ||
) | const |
References m_Extensions.
Referenced by CGraphmatFile::DealExtensionsAndLocalFileNames().
bool CGraphanDicts::ReadExtensions | ( | string | FileName | ) |
References EngRusMakeUpper(), and rtrim().
Referenced by CGraphmatFile::LoadDicts().
MorphLanguageEnum CGraphanDicts::m_Language |
Referenced by CGraphanDicts(), NormalizeOborotStr(), ReadENames(), ReadIdents(), ReadSpaces(), and SearchSpace().
vector<CSpacedWord> CGraphanDicts::m_Spaces |
Referenced by ReadSpaces(), and SearchSpace().
StringVector CGraphanDicts::m_Idents[256] |
Referenced by FindInIdents(), and ReadIdents().
vector<CEnglishName> CGraphanDicts::m_EnglishNames |
Referenced by InitEnglishNameSlot(), and ReadENames().
PtrHolder<CDictionary> CGraphanDicts::m_pOborDic |
Referenced by CGraphmatFile::LoadDicts().
Referenced by BuildOborottosIndex(), and CGraphmatFile::FindOborotto().
vector<CGraphemOborot> CGraphanDicts::m_Oborottos |
Referenced by BuildOborottosIndex(), CGraphmatFile::FindOborotto(), and CGraphmatFile::GetGraphematicalLine().
StringVector CGraphanDicts::m_OborotTokens |
Referenced by BuildOborottosIndex(), and CGraphmatFile::DealOborotto().
vector<CAbbrev> CGraphanDicts::m_Abbrevs |
StringVector CGraphanDicts::m_KeyModifiers |
Referenced by IsRegisteredKeyModifier().
StringVector CGraphanDicts::m_Keys |
Referenced by CGraphmatFile::IsKey().
StringVector CGraphanDicts::m_Extensions |
Referenced by IsExtension().