Public Member Functions | Public Attributes | Private Attributes

CUnitHolder Class Reference

#include <UnitHolder.h>

Inheritance diagram for CUnitHolder:
Inheritance graph
[legend]

List of all members.

Public Member Functions

Public Attributes

Private Attributes


Constructor & Destructor Documentation

CUnitHolder::CUnitHolder (  ) 

References m_Language.


Member Function Documentation

const vector<CGraLine>& CUnitHolder::GetUnits (  )  const [inline]
CGraLine & CUnitHolder::GetUnit ( size_t  UnitNo  ) 

References m_Units.

Referenced by CGraphmatFile::GraphmatMain(), CGraphmatFile::InitContextDescriptors(), InitEnglishNameSlot(), and MakeOneWord().

Here is the caller graph for this function:

const vector< char > & CUnitHolder::GetUnitBuf (  )  const

References m_TokenBuf.

Referenced by GetUnitBufferSize(), and GetUnitBufferStart().

Here is the caller graph for this function:

const vector< BYTE > & CUnitHolder::GetInputBuffer (  )  const

References m_InputBuffer.

Referenced by CGraphmatFile::GraphmatMain(), and CGraLine::ReadWord().

Here is the caller graph for this function:

void CUnitHolder::SetState ( size_t  LB,
size_t  HB,
WORD  state 
)
void CUnitHolder::SetDes ( size_t  x,
Descriptors  des 
)
bool CUnitHolder::HasDescr ( size_t  i,
int  descr 
) const [inline]
bool CUnitHolder::AreGrouped ( size_t  LB,
size_t  HB 
) const

References m_Units.

bool CUnitHolder::HasGrouped ( size_t  LB,
size_t  HB 
) const
bool CUnitHolder::HasAbbreviation ( size_t  LB,
size_t  HB 
) const

References m_Units.

Referenced by CGraphmatFile::DealExtensionsAndLocalFileNames().

Here is the caller graph for this function:

size_t CUnitHolder::PassSpace ( size_t  i,
size_t  HB 
) const
size_t CUnitHolder::PPunctOrSoft ( size_t  i,
size_t  HB 
) const

References HasDescr(), m_Units, and OPun.

Referenced by CGraphmatFile::DealSentBreaker().

Here is the call graph for this function:

Here is the caller graph for this function:

size_t CUnitHolder::PPunct ( size_t  i,
size_t  HB 
) const

References HasDescr(), and OPun.

Referenced by CGraphmatFile::DealSentBreaker().

Here is the call graph for this function:

Here is the caller graph for this function:

size_t CUnitHolder::FindSpace ( size_t  i,
size_t  HB 
) const

References m_Units.

size_t CUnitHolder::BSpace ( size_t  i,
size_t  LB = 0 
) const
size_t CUnitHolder::PSoft ( size_t  i,
size_t  HB 
) const
size_t CUnitHolder::BSoft ( size_t  i  )  const
bool CUnitHolder::IsHyphen ( size_t  x  )  const

References HasDescr(), m_Units, and OHyp.

Here is the call graph for this function:

bool CUnitHolder::is_latin_alpha ( int  ch  )  const

References is_english_alpha(), is_german_alpha(), m_Language, and morphGerman.

Referenced by CGraphmatFile::InitNonContextDescriptors(), and IsOneAlpha().

Here is the call graph for this function:

Here is the caller graph for this function:

bool CUnitHolder::is_lowercase ( int  ch  )  const

References is_english_lower(), is_german_lower(), is_russian_lower(), m_Language, and morphGerman.

Referenced by CGraphmatFile::InitNonContextDescriptors(), and TestHeadingFirstLetter().

Here is the call graph for this function:

Here is the caller graph for this function:

bool CUnitHolder::is_uppercase ( int  ch  )  const

References is_english_upper(), is_german_upper(), is_russian_upper(), m_Language, and morphGerman.

Referenced by CGraphmatFile::InitNonContextDescriptors().

Here is the call graph for this function:

Here is the caller graph for this function:

bool CUnitHolder::StrSuperCompare ( int  UnitNo,
const char *  s 
) const

References GetToken(), GetTokenLength(), m_Language, m_Units, and strscmp().

Referenced by CConSent::IsFirstWord().

Here is the call graph for this function:

Here is the caller graph for this function:

bool CUnitHolder::IsOneAlpha ( size_t  x  )  const

References GetTokenLength(), HasDescr(), is_latin_alpha(), m_Units, OLLE, and ORLE.

Referenced by CGraphmatFile::DealSimpleKey(), IsBulletWord(), and CGraphmatFile::IsKey().

Here is the call graph for this function:

Here is the caller graph for this function:

bool CUnitHolder::IsOneChar ( size_t  x,
int  i 
) const

References m_Units.

Referenced by CheckComma(), and CGraphmatFile::DealGermanDividedCompounds().

Here is the caller graph for this function:

bool CUnitHolder::IsOneULet ( size_t  x  )  const
bool CUnitHolder::FirstUpper ( size_t  x  )  const

References HasDescr(), OUp, and OUpLw.

Referenced by CGraphmatFile::DealFIO(), and CGraphmatFile::DealShortFIO().

Here is the call graph for this function:

Here is the caller graph for this function:

bool CUnitHolder::IsBulletWord ( size_t  x  )  const

References HasDescr(), IsOneAlpha(), and ODigits.

Referenced by CGraphmatFile::DealBullet(), CGraphmatFile::DealBulletsWithTwoBrackets(), and CConSent::SetUsualLawDocumentDivision().

Here is the call graph for this function:

Here is the caller graph for this function:

bool CUnitHolder::IsOneFullStop ( size_t  i  )  const
bool CUnitHolder::EmptyLineBeforeGraph ( size_t  i,
size_t  HB 
) const

References BSpace(), GetToken(), GetTokenLength(), and m_Units.

Referenced by RubiconText().

Here is the call graph for this function:

Here is the caller graph for this function:

bool CUnitHolder::IsQuestionOrExclamationMarks ( size_t  i  )  const

References GetToken(), GetTokenLength(), and m_Units.

Referenced by IsSentenceEndMark().

Here is the call graph for this function:

Here is the caller graph for this function:

bool CUnitHolder::IsSentenceEndMark ( size_t  i  )  const

References cEllipseChar, GetTokenLength(), IsOneFullStop(), IsQuestionOrExclamationMarks(), and m_Units.

Referenced by CGraphmatFile::DealSentBreaker(), FindSentEndAfterParagraph(), and CConSent::InitBasicInformation().

Here is the call graph for this function:

Here is the caller graph for this function:

bool CUnitHolder::IsOneCloseQuotationMark ( size_t  i  )  const

References GetToken(), GetTokenLength(), and m_Units.

Referenced by CGraphmatFile::DealQuotedKeySequence(), and CGraphmatFile::DealSentBreaker().

Here is the call graph for this function:

Here is the caller graph for this function:

bool CUnitHolder::IsOneOpenQuotationMark ( size_t  i  )  const

References GetToken(), GetTokenLength(), and m_Units.

Referenced by CGraphmatFile::DealQuotedKeySequence(), and SetSentMarkers().

Here is the call graph for this function:

Here is the caller graph for this function:

void CUnitHolder::FreeTable (  ) 

References ClearVector(), m_FoundOborots, m_FoundPageBreaks, m_TokenBuf, and m_Units.

Referenced by CMorphologyHolder::GetMorphology(), CConcIndexator::IndexTextOrHtmlFile(), InitTokenBuffer(), and CGraphmatFile::~CGraphmatFile().

Here is the call graph for this function:

Here is the caller graph for this function:

void CUnitHolder::BuildUnitBufferUpper (  ) 

References GerEngRusMakeUpperTemplate(), m_Language, m_UnitBufUpper, and m_Units.

Referenced by CGraphmatFile::GraphmatMain().

Here is the call graph for this function:

Here is the caller graph for this function:

void CUnitHolder::InitTokenBuffer (  ) 

References FreeTable(), m_InputBuffer, m_TokenBuf, m_Units, OBeg, and SetDes().

Referenced by CGraphmatFile::GraphmatMain().

Here is the call graph for this function:

Here is the caller graph for this function:

bool CUnitHolder::InitInputBuffer ( const string &  S  ) 

References m_InputBuffer.

Referenced by CGraphmatFile::LoadFileToGraphan(), and CGraphmatFile::LoadStringToGraphan().

Here is the caller graph for this function:

void CUnitHolder::ClearInputBuffer (  ) 

References ClearVector(), and m_InputBuffer.

Referenced by CGraphmatFile::GraphmatMain().

Here is the call graph for this function:

Here is the caller graph for this function:

void CUnitHolder::AddUnit ( const CGraLine NewLine  ) 

References m_Units.

Referenced by CGraphmatFile::GraphmatMain().

Here is the caller graph for this function:

const char * CUnitHolder::GetUnitBufferStart (  )  const

References GetUnitBuf().

Referenced by GetUppercaseToken(), and CGraphmatFile::GraphmatMain().

Here is the call graph for this function:

Here is the caller graph for this function:

const char * CUnitHolder::GetUnitUpperBufferStart (  )  const

References m_UnitBufUpper.

Referenced by GetUppercaseToken(), and MakeOneWord().

Here is the caller graph for this function:

const char * CUnitHolder::GetUppercaseToken ( DWORD  LineNo  )  const
string CUnitHolder::GetToken ( DWORD  LineNo  )  const
size_t CUnitHolder::GetTokensCount (  )  const

References GetUnits().

Referenced by CMorphologyHolder::GetMorphology(), CConcIndexator::IndexTextOrHtmlFile(), CLemmatizer::ProcessHyphenWords(), and CPlmLineCollection::ProcessPlmLines().

Here is the call graph for this function:

Here is the caller graph for this function:

DWORD CUnitHolder::GetTokenInputOffset ( DWORD  LineNo  )  const

References GetUnits().

Referenced by CGraphmatFile::DealSentBreaker(), and SetSentMarkers().

Here is the call graph for this function:

Here is the caller graph for this function:

BYTE CUnitHolder::GetTokenLength ( DWORD  LineNo  )  const
size_t CUnitHolder::GetUnitBufferSize (  )  const

References GetUnitBuf().

Here is the call graph for this function:

void CUnitHolder::DeleteDescr ( size_t  LineNo,
Descriptors  d 
)
void CUnitHolder::MakeOneWord ( size_t  StartLineNo,
size_t  EndLineNo 
)
void CUnitHolder::ClearPairDescriptors ( size_t  StartLineNo,
size_t  EndLineNo 
)

References DeleteDescr(), GetFirstMemberByTheSecond(), GetSecondMemberByTheFirst(), HasDescr(), IsFirstMemberOfPairDesciptor(), IsSecondMemberOfPairDesciptor(), and OSentEnd.

Referenced by MakeOneWord().

Here is the call graph for this function:

Here is the caller graph for this function:

void CUnitHolder::SetOborotNo ( size_t  LineNo,
short  OborotNo 
)

References m_FoundOborots, and m_Units.

Referenced by CGraphmatFile::DealOborotto(), and MakeOneWord().

Here is the caller graph for this function:

short CUnitHolder::GetOborotNo ( size_t  LineNo  )  const

References m_FoundOborots, and m_Units.

Referenced by CGraphmatFile::GetGraphematicalLine(), and CGraphmatFile::StartsFixedOborot().

Here is the caller graph for this function:

void CUnitHolder::SetPageNumber ( size_t  LineNo,
DWORD  PageNumber 
)

References m_FoundPageBreaks, m_Units, and UnknownPageNumber.

Referenced by CGraphmatFile::GraphmatMain().

Here is the caller graph for this function:

DWORD CUnitHolder::GetPageNumber ( size_t  LineNo  )  const

References m_FoundPageBreaks, m_Units, and UnknownPageNumber.

Referenced by CGraphmatFile::GetGraphematicalLine(), and CConcIndexator::IndexTextOrHtmlFile().

Here is the caller graph for this function:


Member Data Documentation

vector<CGraLine> CUnitHolder::m_Units [private]
vector<char> CUnitHolder::m_TokenBuf [private]
vector<char> CUnitHolder::m_UnitBufUpper [private]
vector<BYTE> CUnitHolder::m_InputBuffer [private]
map<size_t, short> CUnitHolder::m_FoundOborots [private]

Referenced by FreeTable(), GetOborotNo(), and SetOborotNo().

map<size_t, DWORD> CUnitHolder::m_FoundPageBreaks [private]

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