#include "StdGraph.h"
#include "GraphmatFile.h"
#include "Consent.h"
bool ParagraphTagBeforeGraph | ( | const CGraphmatFile & | C, | |
size_t | i, | |||
size_t | HB | |||
) |
References CUnitHolder::GetUnits().
Referenced by RubiconText().
RubiconEnum RubiconText | ( | const CGraphmatFile & | G, | |
size_t | i | |||
) |
References CUnitHolder::EmptyLineBeforeGraph(), CUnitHolder::GetUnits(), CUnitHolder::HasDescr(), CGraphmatFile::m_bEmptyLineIsSentenceDelim, OPar, ParagraphTagBeforeGraph(), and rPar.
Referenced by RecognizeSimpleCS().
void RecognizeSimpleCS | ( | const CGraphmatFile & | G, | |
vector< CConSent > & | CSL, | |||
size_t | LB, | |||
size_t | HB, | |||
RubiconEnum | LB_Rubicon, | |||
RubiconEnum | HB_Rubicon | |||
) |
References CConSent::m_EndNo, CConSent::m_LowerRubiconType, CConSent::m_StartNo, CConSent::m_UpperRubiconType, CUnitHolder::PSoft(), and RubiconText().
Referenced by RecognizeCS().
void AdjustRubiconsInSpaceCompact | ( | const CGraphmatFile & | C, | |
size_t & | StartNo, | |||
size_t & | EndNo | |||
) | [inline] |
References CUnitHolder::BSpace(), and CUnitHolder::PassSpace().
Referenced by RecognizeCS().
void RecognizeCS | ( | const CGraphmatFile & | G, | |
vector< CConSent > & | CSL, | |||
size_t | LB, | |||
size_t | HB | |||
) |
Второй этап слегка изменяет.
References AdjustRubiconsInSpaceCompact(), rBeg, RecognizeSimpleCS(), and rEnd.
Referenced by CGraphmatFile::MacSynHierarchy().
CConSent InitDoc | ( | const CGraphmatFile * | GraFile | ) |
References CConSent::m_bConnected, CConSent::m_EndNo, CConSent::m_GraLineNoToMark, CConSent::m_HardGraphEndNo, CConSent::m_NumberOfLines, CConSent::m_StartNo, CConSent::m_Type, and UnGroundNo.
Referenced by CGraphmatFile::MacSynHierarchy().
void LinkParat | ( | CSList & | List, | |
long | SentNo, | |||
long | m_ParatTail | |||
) |
References CS_Undef.
Referenced by SetMacroSyntDependcies().
void SubdueSimilarField | ( | CSList & | List, | |
int | FieldNo, | |||
long | m_HostNo | |||
) |
void SetDepthOfBullet | ( | CConSent & | C | ) |
References CConSent::FullStop, CConSent::GetUnit(), CUnitHolder::HasDescr(), CGraLine::IsChar(), CUnitHolder::IsOneFullStop(), CGraLine::IsSpace(), CGraLine::IsString(), CConSent::m_BulletDepth, CConSent::m_BulletLastDelim, CConSent::m_GraFile, CConSent::m_HardGraphEndNo, CConSent::m_HardGraphStartNo, ODigits, and CConSent::Other.
Referenced by CGraphmatFile::MacSynHierarchy().
References CConSent::FirstChar(), is_german_lower(), is_german_upper(), is_russian_lower(), and is_russian_upper().
Referenced by SimilarBullets().
References CConSent::FirstChar(), CConSent::FirstUnit(), HaveEquCase(), is_lower_roman_digit(), is_upper_roman_digit(), CConSent::IsBullet(), CGraLine::IsString(), CConSent::m_BulletDepth, CConSent::m_BulletLastDelim, and CConSent::m_StartNo.
Referenced by CanBeBrothers(), and FindSimilarHeadings().
References CS_Heading, CConSent::IsBullet(), CConSent::m_Type, CConSent::m_UsualLawDocumentDivision, CConSent::None, and SimilarBullets().
Referenced by SetMacroSyntDependcies().
bool CanBeParataxed | ( | const CConSent & | CS | ) | [inline] |
References CS_Heading, CConSent::IsBullet(), CConSent::m_Type, and CConSent::m_UsualLawDocumentDivision.
Referenced by SetMacroSyntDependcies().
bool CanHaveBrotherAfterItself | ( | const CSList & | List, | |
long | SentNo | |||
) | [inline] |
References CS_Heading, CS_Parent, and CConSent::None.
Referenced by SetMacroSyntDependcies().
bool CanBeHost | ( | const CConSent & | CS | ) | [inline] |
References CS_Heading, CS_Parent, CConSent::m_bConnected, and CConSent::m_Type.
Referenced by SetMacroSyntDependcies().
void DelCS | ( | CSList & | List, | |
long | SentNo | |||
) |
void GobbleNextCS | ( | CSList & | List, | |
long | SentNo | |||
) |
References DelCS(), CConSent::m_CountFullStops, CConSent::m_EndNo, CConSent::m_GraLineNoToMark, CConSent::m_HardGraphEndNo, CConSent::m_HostNo, CConSent::m_LowerRubiconType, CConSent::m_NumberOfLines, and CConSent::m_ParatNo.
void MakeObey | ( | CSList & | List, | |
long | SentNo, | |||
long | m_HostNo | |||
) | [inline] |
References SubdueSimilarField().
Referenced by SetMacroSyntDependcies().
void FindParents | ( | CSList & | List | ) |
References CS_Parent.
Referenced by CGraphmatFile::MacSynHierarchy().
bool TestHeadingNumberOfLines | ( | int | x | ) | [inline] |
bool TestHeadinfLeftMargin | ( | int | x | ) | [inline] |
bool TestHeadingLastLetter | ( | int | ch | ) | [inline] |
bool TestHeadingFirstLetter | ( | int | ch, | |
const CGraphmatFile * | GraFile | |||
) | [inline] |
References CUnitHolder::is_lowercase().
Referenced by FindHeadings().
void FindHeadings | ( | CSList & | List | ) |
References CS_Undef, CUnitHolder::HasDescr(), CConSent::None, OPar, rELine, and TestHeadingFirstLetter().
Referenced by CGraphmatFile::MacSynHierarchy().
void FindExplanatory | ( | CSList & | List | ) |
References CS_Explan, CS_Heading, CS_Undef, OCls, OOpn, and OPun.
Referenced by CGraphmatFile::MacSynHierarchy().
bool IsUpperRomanOne | ( | const CGraLine & | L | ) | [inline] |
References CGraLine::IsString().
Referenced by FindSimilarHeadings().
void FindSimilarHeadings | ( | CSList & | List | ) |
References CS_Heading, IsUpperRomanOne(), SimilarBullets(), and strscmp().
Referenced by CGraphmatFile::MacSynHierarchy().
void AssertValid | ( | CSList & | List | ) |
bool SetMacroSyntDependcies | ( | const CGraphmatFile & | G, | |
CSList & | List | |||
) |
References CanBeBrothers(), CanBeHost(), CanBeParataxed(), CanHaveBrotherAfterItself(), LinkParat(), CGraphmatFile::m_bSubdueWrongMacroSynUnitToMainRoot, and MakeObey().
Referenced by CGraphmatFile::MacSynHierarchy().
const char* GetEnglishTag | ( | Descriptors | D | ) |
References CS_Doc, CS_Explan, CS_Heading, and CS_Parent.
Referenced by PrintXmlSubtree().
void PrintXmlSubtree | ( | const vector< CConSent > & | CSL, | |
FILE * | fp, | |||
int | SentNo | |||
) |
References GetEnglishTag().
Referenced by WriteXmlMacSyn().
void WriteXmlMacSyn | ( | const vector< CConSent > & | CSL, | |
const char * | Filename | |||
) |
References PrintXmlSubtree().
Referenced by CGraphmatFile::MacSynHierarchy().