Classes | Defines | Typedefs | Enumerations | Functions | Variables

utilit.h File Reference

#include "ddcConfig.h"
#include <stdint.h>
#include <stdio.h>
#include <assert.h>
#include <stdarg.h>
#include <string.h>
#include <ctype.h>
#include <string>
#include <algorithm>
#include <stdexcept>
#include <vector>
#include "set"
#include "stack"
#include "map"
#include "time.h"
#include <unistd.h>
Include dependency graph for utilit.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

Defines

Typedefs

Enumerations

Functions

Variables


Define Documentation

#define WIN32_LEAN_AND_MEAN
#define _QM (   X  )     (((QWORD)1)<<X)

Typedef Documentation

typedef unsigned char BYTE
typedef unsigned int DWORD
typedef unsigned short WORD
typedef long long QWORD
typedef unsigned int UINT
typedef vector<string> StringVector
typedef set<string> StringSet
typedef vector<DWORD> DwordVector
typedef QWORD file_off_t

Enumeration Type Documentation

Enumerator:
morphUnknown 
morphRussian 
morphEnglish 
morphGerman 
morphGeneric 
morphURL 
morphDigits 
Enumerator:
DontKillHomonyms 
CoverageKillHomonyms 
enum EThesType
Enumerator:
LocThes 
FinThes 
CompThes 
OmniThes 
NoneThes 
enum EUnitType
Enumerator:
EClause 
EWord 
EGroup 
ENoneType 
Enumerator:
AnyRegister 
LowLow 
UpLow 
UpUp 

Function Documentation

QWORD GetMaxQWORD (  )  [inline]

Referenced by GetParadigmByGroups().

Here is the caller graph for this function:

bool FileExists ( const char *  FName  ) 
file_off_t FileSize ( const char *  filename  ) 
bool FSeek ( FILE *  fp,
file_off_t  pos,
int  origin 
)
file_off_t FTell ( FILE *  fp  ) 

Referenced by FileSize(), and CItemIndexForLoading::ReadFromTemporalFile().

Here is the caller graph for this function:

void ErrorMessage ( const string &  Titul,
const string &  Message 
)

References GlobalErrorMessage.

Referenced by CIndexSetForQueryingStage::AddOneIndexItem(), CIndexSetForQueryingStage::AssertHasPath(), CConcIndexator::AssertHasPath(), CCOMSyntaxHolder::BuildBeforeSyntax(), CConcIndexatorInvoker::BuildIndex(), CGraphanDicts::BuildOborot(), CGraphanDicts::BuildOborottos(), CCOMSyntaxHolder::BuildSyntax(), MorphoWizard::check_paradigm(), CheckEvaluationTime(), CShortStringHolder::CreateFromSequence(), CConcIndexator::CreateMorphIndex(), CMyTimeSpanHolder::EndTimer(), ErrorMessage(), MorphoWizard::find_lemm(), MorphoWizard::find_wordforms(), CConcHolder::GenerateHitStrings(), CConcHolder::GenerateOneHitString(), CConcHolder::GenerateOneHitStringJson(), CConcHolder::GetContext(), CConcHolder::GetContextJson(), GetCWBFormattedStringRecursive(), CDDCServerListenHost::GetFirstHitsFromCorpora(), CConcHolder::GetHits(), CDDCServerListenHost::GetHitStringsFromOneCorpora(), CConcHolder::GetOccurrences(), GetTextFromXMLRecursive(), CStringIndexator::IndexOneToken(), InitAlphabet(), CAncodePattern::InitAncodePattern(), InitMorphologySystem(), CMorphDict::Load(), CMorphAutomat::Load(), CConcXml::LoadBibl(), CConcIndexator::LoadCorpusFiles(), CConcIndexator::LoadFileIntoGraphan(), CMorphologyHolder::LoadGraphanAndLemmatizer(), CConcIndexator::LoadOptionsFromString(), CConcIndexator::LoadProject(), CSyntaxHolder::LoadSyntax(), CCOMSyntaxHolder::LoadSyntax(), CCOMSyntaxHolder::LoadSyntaxModule(), CConcIndexator::LoadXmlFile(), CAncodePattern::ModifyGrammems(), MorphoWizard::predict_lemm(), CHomonym::ProcessLemmaAndGrammems(), CConcXml::CFreeBiblIndex::ReadFromDisk(), ReadTimeOutFromRegistry(), CHitBorders::RegisterBorderIndices(), CHitBorders::RegisterBreak(), CStringIndexator::RegisterStringIndices(), CMorphDict::Save(), CMorphAutomat::Save(), CConcHolder::SimpleQuery(), CHitBorders::StartIndexing(), WriteVector(), and WriteVectorInner().

void ErrorMessage ( const string &  Message  ) 

References ErrorMessage().

Here is the call graph for this function:

string MakeFName ( const string &  InpitFileName,
const string &  Ext 
)
bool MakePath ( const char *  RossPath,
const char *  FileName,
char *  FullPath 
)

References FileExists().

Referenced by TRoss::FullLoad(), TRoss::LoadOnlyConstants(), and TRoss::ReadUnitComments().

Here is the call graph for this function:

Here is the caller graph for this function:

string GetPathByFile ( string  FileName  ) 

Referenced by CConcIndexatorInvoker::BuildIndex(), MorphoWizard::get_predict_src_file_path(), and GetFullPathByName().

Here is the caller graph for this function:

bool IsBinFile ( const char *  FileName  ) 

Referenced by TRoss::BuildCorteges(), TRoss::BuildUnits(), and TRoss::ReadUnitComments().

Here is the caller graph for this function:

bool IsEmptyLine ( const char *  t  ) 

Referenced by TRoss::ReadFromStrWithOneSignatura().

Here is the caller graph for this function:

bool IsHtmlFile ( const string &  FileName  ) 

References EngMakeLower(), and FileExtension().

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

Here is the call graph for this function:

Here is the caller graph for this function:

bool IsTableFile ( const string &  FileName  ) 

References EngMakeLower(), and FileExtension().

Here is the call graph for this function:

bool IsJsonFile ( const string &  FileName  ) 

References EngMakeLower(), and FileExtension().

Here is the call graph for this function:

string FileExtension ( const string &  FileName  ) 

Referenced by IsHtmlFile(), IsJsonFile(), and IsTableFile().

Here is the caller graph for this function:

void AddFile ( const char *  MainFile,
const char *  ToAdd 
)

References _MAX_PATH.

Referenced by CConcXml::UniteBibliography().

Here is the caller graph for this function:

bool RmlMoveFile ( const char *  oldpath,
const char *  newpath 
)

References RmlCopyFile().

Referenced by CIndexSetForLoadingStage::AddMemoryLoadIndexToMainLoadIndex(), ConvertBufferOffsetToTokenId(), SetRegistryString(), SortWithFiles(), and UnionBinaryFiles().

Here is the call graph for this function:

Here is the caller graph for this function:

bool RmlCopyFile ( const char *  oldpath,
const char *  newpath 
)

Referenced by RmlMoveFile().

Here is the caller graph for this function:

string CreateTempFileName (  ) 
bool MakeDir ( const string &  txt  ) 

Referenced by mkdirhier().

Here is the caller graph for this function:

bool RemoveWithPrint ( const string &  FileName  ) 

References FileExists().

Referenced by CIndexSetForBigrams::CreateRightBigrams(), CIndexSetForLoadingStage::DeleteTempFiles(), CIndexSetForBigrams::DestroyIndexSet(), and CIndexBigram::RemoveFiles().

Here is the call graph for this function:

Here is the caller graph for this function:

string GetRegistryString ( string  RegistryPath  ) 
string GetRegistryStringFromLocalIniFile ( string  RegistryPath  ) 

References GetStringInnerFromTheFile().

Referenced by ReadTimeOutFromRegistry().

Here is the call graph for this function:

Here is the caller graph for this function:

bool CanGetRegistryString ( string  RegistryPath  ) 

References GetRegistryString().

Referenced by GetThesaurusPath().

Here is the call graph for this function:

Here is the caller graph for this function:

void SetRegistryString ( string  RegistryPath,
string  Value 
)

References CreateTempFileName(), GetIniFilePath(), RmlMoveFile(), and Trim().

Here is the call graph for this function:

bool IsRmlRegistered ( string &  Error  ) 

References FileExists(), GetIniFilePath(), and CExpc::m_strCause.

Referenced by LoadDDCServer(), LoadLocalCorpora(), and main().

Here is the call graph for this function:

Here is the caller graph for this function:

bool CheckEvaluationTime (  ) 

References ErrorMessage(), and RmlGetCurrentTime().

Here is the call graph for this function:

struct tm RmlGetCurrentTime (  )  [read]

Referenced by CheckEvaluationTime(), concord_daemon_log(), CDictionary::SetUnitCurrentTime(), and TUnitComment::TUnitComment().

Here is the caller graph for this function:

bool ReadTimeOutFromRegistry ( bool  bReadFromLocalFile,
int &  TimeOut 
)

References ErrorMessage(), GetRegistryString(), and GetRegistryStringFromLocalIniFile().

Here is the call graph for this function:

string GetIniFilePath (  ) 

References GetRmlVariable().

Referenced by GetRegistryString(), IsRmlRegistered(), LoadDDCServer(), LoadLocalCorpora(), main(), and SetRegistryString().

Here is the call graph for this function:

Here is the caller graph for this function:

string GetRmlVariable (  ) 

References Trim().

Referenced by BuildRMLPath(), GetIniFilePath(), GetRegistryString(), and CLemmatizer::LoadDictionariesRegistry().

Here is the call graph for this function:

Here is the caller graph for this function:

string BuildRMLPath ( const char *  s  ) 

References GetRmlVariable().

Here is the call graph for this function:

char* rtrim ( char *  s  ) 
bool IsSuperEqualChar ( BYTE  ch1,
BYTE  ch2,
MorphLanguageEnum  langua 
)

References is_english_upper(), is_russian_upper(), ReverseChar(), and rtolower().

Referenced by CGraphmatFile::FindKeySequence(), strscmp(), and StrSpacingCompare().

Here is the call graph for this function:

Here is the caller graph for this function:

bool strscmp ( const char *  s1,
const char *  s2,
size_t  l,
MorphLanguageEnum  langua 
)

References IsSuperEqualChar().

Referenced by FindSimilarHeadings(), and CUnitHolder::StrSuperCompare().

Here is the call graph for this function:

Here is the caller graph for this function:

int CompareWithoutRegister ( const char *  s1,
const char *  s2,
size_t  l,
MorphLanguageEnum  langua 
)

References ReverseChar().

Referenced by CGraphanDicts::FindInIdents().

Here is the call graph for this function:

Here is the caller graph for this function:

BYTE force_rus_char ( BYTE  ch  ) 

Referenced by force_to_rus().

Here is the caller graph for this function:

bool force_to_rus ( char *  dest,
const char *  sour,
size_t  len 
)

References force_rus_char(), and is_russian_alpha().

Referenced by CRusCorpXmlFile::CreateGraTable(), and CGraphmatFile::InitNonContextDescriptors().

Here is the call graph for this function:

Here is the caller graph for this function:

char* IntToStr ( int  Value,
char *  Buffer 
)
string& IntToStr ( int  Value,
string &  oBuffer 
)
string Format ( const char *  format,
  ... 
)

Referenced by MorphoWizard::add_lemma(), CTempArticle::AddCortegeToVector(), AddMessage(), CIndexSetForQueryingStage::AddOneIndexItem(), CHost::AnswerByRequest(), CCOMSyntaxHolder::BuildBeforeSyntax(), TItemContainer::BuildDomens(), CConcIndexatorInvoker::BuildIndex(), CGraphanDicts::BuildOborottos(), TItemContainer::BuildOneFieldFormat(), CConcIndexatorInvoker::BuildOnlyMorphIndex(), MorphoWizard::check_paradigm(), CTempArticle::CheckCortegeVector(), concord_daemon_log(), create_socket(), CHost::CreateListener(), CMyTimeSpanHolder::EndTimer(), escapeCString(), escapeJsonString(), CConcIndexatorInvoker::FinalizeIndex(), CFormInfo::FormatAsInPlmLine(), CConcHolder::GenerateHitStrings(), CConcHolder::GenerateOneHitString(), CConcHolder::GenerateOneHitStringJson(), CHost::GetAddressStr(), GetBigramsAsString(), GetBindErrorLinux(), CHitBorders::GetBorderIndicesString(), CHitBorders::CBreakCollection::GetBreakFileName(), GetConnectedWords(), CConcHolder::GetContext(), CConcHolder::GetContextJson(), GetCWBFormattedStringRecursive(), CLemWord::GetDebugString(), CConcXml::CFreeBiblIndex::GetDescriptionStr(), CConcHolder::GetFileSnippets(), CDDCServerListenHost::GetFirstHitsFromCorpora(), CConcXml::GetFreeBibiAttributesDescr(), CConcHolder::GetHitIds(), CDDCServerListenHost::GetHitStringsFromOneCorpora(), CConcIndexator::GetHtmlReference(), CStringIndexator::GetIndicesString(), CMorphologyHolder::GetParadigmIdsByNormAndAncode(), CLemWord::GetPlmStr(), CPlmLine::GetStr(), CConcXml::CFreeBiblIndex::GetStringValue(), CConcXml::GetTextAreaElements(), CConcXml::GetTextAreasDescr(), GetTextFromXMLRecursive(), CConcHolder::GetTokensFromStorageByBreak(), TRoss::GetUnitTextHeader(), CConcXml::CFreeBiblStringIndex::GetValueForDDCFilter(), GetWordForms(), CMorphologyHolder::id_to_paradigm(), CMorphologyHolder::id_to_string(), CDictionary::ImportFromText(), CConcIndexator::IndexOneTableTextArea(), CStringIndexator::IndexOneToken(), CConcIndexator::IndexTextOrHtmlFile(), CAncodePattern::InitAncodePattern(), CConcHolder::InitLessByRank(), InitMorphologySystem(), TRoss::InsertDomItem(), CMorphDict::Load(), CMorphAutomat::Load(), CConcXml::LoadBibl(), CConcIndexator::LoadCorpusFiles(), LoadDDCServer(), CConcIndexator::LoadFileIntoGraphan(), CGraphmatFile::LoadFileToGraphan(), CDDCCorpusListenHost::LoadHolder(), LoadLocalCorpora(), CConcIndexator::LoadMaskedFiles(), TRoss::LoadOnlyConstants(), CConcIndexator::LoadOptionsFromString(), CConcIndexator::LoadProject(), CConcIndexator::LoadSourceFilesAndOptions(), CGraphmatFile::LoadStringToGraphan(), CConcXml::LoadXmlAndReadBibliography(), CConcIndexator::LoadXmlFile(), CTempArticle::MarkUp(), CAncodePattern::ModifyGrammems(), CHomonym::ProcessLemmaAndGrammems(), CDictionary::ProcessOneArticle(), CPlmLineCollection::ProcessPlmLines(), CDDCServerListenHost::ProcessSocketString(), CDDCCorpusListenHost::ProcessSocketString(), QPEncodeString(), CConcXml::CFreeBiblIndex::ReadFromDisk(), CDumpParadigm::ReadFromFile(), CConcXml::ReadMorphXmlFileIntoGraTable(), MorphoWizard::ReadNextParadigmFromFile(), ReadOccurrences(), MorphoWizard::ReadSessions(), ReadVectorInner(), CHitBorders::RegisterBorderIndices(), CConcXml::RegisterFreeBiblAttributes(), ReloadCorpus(), CDDCServerListenHost::ReloadCorpusProcessSignal(), CDDCServerListenHost::ReplaceHolderIfNeeded(), CHost::RunThread(), CMorphDict::Save(), CMorphAutomat::Save(), MorphoWizard::save_mrd(), CConcHolder::SaveOccurrences(), CConcIndexator::SaveOptionsToString(), SaveTrigger(), send_buffer(), CPlmLine::SetMorph(), MorphoWizard::show_differences_in_two_paradigms(), CConcHolder::ShowBibliographyForTable(), CConcHolder::ShowBibliographyForTextOrHtml(), CConcHolder::SimpleQuery(), CHitBorders::StartIndexing(), tar_header::th_get_pathname(), CAccentModel::ToString(), CMorphSession::ToString(), CHighlightTags::ToString(), UnionBinaryFiles(), and TItemContainer::WriteDomens().

string& TrimLeft ( string &  str  ) 

Referenced by Trim().

Here is the caller graph for this function:

string& TrimRight ( string &  str  ) 

Referenced by Trim().

Here is the caller graph for this function:

string& Trim ( string &  str  ) 

References TrimLeft(), and TrimRight().

Referenced by AddMessage(), MorphoWizard::AddPrefixSet(), BuildHtmlHitStrWithHighlighting(), MorphoWizard::check_common_grammems(), MorphoWizard::check_prefixes(), CQueryTokenNode::CreateFileList(), CRusCorpXmlFile::CreateGraTable(), DeleteEmptyLines(), MorphoWizard::find_wordforms(), CHitBorders::GetBorderIndicesString(), GetCWBFormattedStringRecursive(), CStringIndexator::GetIndicesString(), GetInterfacePOS(), GetRmlVariable(), GetStringInnerFromTheFile(), GetTextFromXMLRecursive(), GetValue(), CDictionary::ImportFromText(), CConcIndexator::IndexOneTableTextArea(), CMorphDict::Load(), CConcIndexator::LoadCorpusFiles(), LoadHosts(), CConcIndexator::LoadMaskedFiles(), CConcIndexator::LoadOptionsFromString(), CPlmLine::LoadPlmLineFromString(), NormalizeOborotStr(), CQueryParser::ParseQuery(), CQueryParser::ParseQueryOperators(), CQueryParser::ParseSortAndFilterOperators(), CDDCServerListenHost::ProcessSocketString(), CConcXml::ProcessTextAreaNoInQueryStr(), ReadAbbrevationsFromOneFile(), CConcXml::CFreeBiblStringIndex::ReadBiblStringItems(), TRoss::ReadConfig(), ReadFlexiaModels(), CDumpParadigm::ReadFromFile(), ReadFromHtml(), CFlexiaModel::ReadFromString(), CHost::ReadFromString(), CHighlightTags::ReadFromString(), CBibliography::ReadFromString(), CGraphanDicts::ReadIdents(), CConcXml::ReadMorphXmlFileIntoGraTable(), MorphoWizard::ReadOnePrefixSet(), CLemmatizer::ReadOptions(), CDwdsThesaurus::ReadPathFromString(), CDDCServerListenHost::ReadPossibleHosts(), CSourceFileHolder::ReadSourceFileList(), ReadXmlField(), CConcXml::CFreeBiblStringIndex::RegisterBiblStringItemId(), CHitBorders::RegisterBorderIndices(), CConcXml::RegisterFreeBiblAttributes(), CStringIndexator::RegisterStringIndices(), CConcXml::RegisterTextAreas(), SetRegistryString(), and MorphoWizard::slf_to_mrd().

Here is the call graph for this function:

void rml_TRACE ( const char *  format,
  ... 
)
bool LoadFileToString ( string  FileName,
string &  Result 
)

References ReadVector().

Referenced by CGraphmatFile::LoadFileToGraphan(), CConcIndexator::LoadOptionsFromString(), CConcIndexator::LoadSourceFilesAndOptions(), and CLemmatizer::ReadOptions().

Here is the call graph for this function:

Here is the caller graph for this function:

void SqueezeSpacesAndDeleteEoln ( string &  s  ) 
void KOI8ToWin ( string &  s  ) 

References ktw().

Here is the call graph for this function:

void WinToKOI8 ( string &  s  ) 

References wtk().

Here is the call graph for this function:

DWORD StringCrc32 ( const char *  szString  ) 
void QPEncodeString ( string &  s  ) 

References Format().

Here is the call graph for this function:

void QPDecodeString ( string &  s  ) 
void strrev ( char *  s  ) 
int GetPredictionPartOfSpeech ( const string &  PartOfSpeech,
MorphLanguageEnum  langua 
)

References morphEnglish, morphGerman, morphRussian, and UnknownPartOfSpeech.

Referenced by CMorphDictBuilder::GenerateUnitedFlexModels(), and MorphoWizard::predict_lemm().

Here is the caller graph for this function:

bool GetLanguageByString ( string  s,
MorphLanguageEnum Result 
)

References EngRusMakeUpper().

Referenced by MorphoWizard::load_wizard(), and CConcIndexator::LoadOptionsFromString().

Here is the call graph for this function:

Here is the caller graph for this function:

string GetStringByLanguage ( MorphLanguageEnum  Langua  ) 
template<class T >
void ClearVector ( vector< T > &  V  ) 
int isbracket ( BYTE  x  ) 

Referenced by CGraphmatFile::InitNonContextDescriptors(), is_word_delim(), and CGraLine::ReadWord().

Here is the caller graph for this function:

size_t dual_bracket ( BYTE  x  ) 

Referenced by CGraphmatFile::DealSentBreaker().

Here is the caller graph for this function:

bool is_upper_roman_digit ( BYTE  ch  ) 

References ASCII, and UpRomDigits.

Referenced by SimilarBullets().

Here is the caller graph for this function:

bool is_lower_roman_digit ( BYTE  ch  ) 

References ASCII, and LwRomDigits.

Referenced by SimilarBullets().

Here is the caller graph for this function:

bool is_roman_number ( const char *  s,
size_t  len 
)

References ASCII, LwRomDigits, and UpRomDigits.

Referenced by CPlmLine::LoadPlmLineFromString(), and CLemWord::ProcessGraphematicalDescriptors().

Here is the caller graph for this function:

bool is_pseudo_graph ( BYTE  x  ) 

Referenced by is_word_delim(), and CGraLine::ReadWord().

Here is the caller graph for this function:

bool is_word_delim ( BYTE  x  ) 

References cCompanyChar, cEllipseChar, cIonChar, cNumberChar, cPiChar, is_pseudo_graph(), and isbracket().

Here is the call graph for this function:

bool is_spc_fill ( BYTE  x  ) 

Referenced by CGraLine::ReadWord(), and StrSpacingCompare().

Here is the caller graph for this function:

bool is_english_upper ( BYTE  x  ) 

References ASCII, and EngUpper.

Referenced by gtolower(), is_english_alpha(), is_upper_alpha(), CUnitHolder::is_uppercase(), IsSuperEqualChar(), and ReverseChar().

Here is the caller graph for this function:

bool is_english_lower ( BYTE  x  ) 
bool is_german_upper ( BYTE  x  ) 

References ASCII, and GerUpper.

Referenced by HaveEquCase(), is_german_alpha(), is_upper_alpha(), and CUnitHolder::is_uppercase().

Here is the caller graph for this function:

bool is_german_lower ( BYTE  x  ) 

References ASCII, and GerLower.

Referenced by GerEngRusMakeUpperTemplate(), GerMakeUpper(), HaveEquCase(), is_german_alpha(), is_lower_alpha(), and CUnitHolder::is_lowercase().

Here is the caller graph for this function:

bool is_russian_upper ( BYTE  x  ) 
bool is_russian_lower ( BYTE  x  ) 
bool is_lower_consonant ( BYTE  x,
MorphLanguageEnum  Langua 
)

References is_lower_alpha(), and is_lower_vowel().

Here is the call graph for this function:

bool is_upper_consonant ( BYTE  x,
MorphLanguageEnum  Langua 
)

References is_upper_alpha(), and is_upper_vowel().

Referenced by CLemmatizer::CheckAbbreviation().

Here is the call graph for this function:

Here is the caller graph for this function:

bool is_lower_vowel ( BYTE  x,
MorphLanguageEnum  Langua 
)

References is_english_lower_vowel(), is_german_lower_vowel(), is_russian_lower_vowel(), morphEnglish, morphGerman, and morphRussian.

Referenced by is_lower_consonant(), MorphoWizard::slf_to_mrd(), and TransferReverseVowelNoToCharNo().

Here is the call graph for this function:

Here is the caller graph for this function:

bool is_upper_vowel ( BYTE  x,
MorphLanguageEnum  Langua 
)

References is_english_upper_vowel(), is_german_upper_vowel(), is_russian_upper_vowel(), morphEnglish, morphGerman, and morphRussian.

Referenced by is_upper_consonant(), and TransferReverseVowelNoToCharNo().

Here is the call graph for this function:

Here is the caller graph for this function:

bool is_english_alpha ( BYTE  x  ) 

References is_english_lower(), and is_english_upper().

Referenced by CGraphmatFile::DealExtensionsAndLocalFileNames(), is_alpha(), is_generic_alpha(), CUnitHolder::is_latin_alpha(), and CDDCServerListenHost::ReadPossibleHosts().

Here is the call graph for this function:

Here is the caller graph for this function:

bool is_russian_alpha ( BYTE  x  ) 
bool is_german_alpha ( BYTE  x  ) 

References is_german_lower(), and is_german_upper().

Referenced by is_alpha(), and CUnitHolder::is_latin_alpha().

Here is the call graph for this function:

Here is the caller graph for this function:

bool is_alpha ( BYTE  x  ) 

References is_german_alpha(), and is_russian_alpha().

Referenced by GetMorphSignPosition(), InitAlphabet(), CGraLine::LengthUntilDelimiters(), NormalizeOborotStr(), and RmlPcreMakeTables().

Here is the call graph for this function:

Here is the caller graph for this function:

bool is_alpha ( BYTE  x,
MorphLanguageEnum  langua 
)
bool is_lower_alpha ( BYTE  x,
MorphLanguageEnum  langua 
)
bool is_upper_alpha ( BYTE  x,
MorphLanguageEnum  langua 
)
bool isnspace ( BYTE  x  ) 

Referenced by CGraLine::ReadWord().

Here is the caller graph for this function:

BYTE etoupper ( BYTE  ch  ) 

References Ouml, and ouml.

Referenced by EngMakeUpper(), EngRusMakeUpper(), GerEngRusMakeUpperTemplate(), gtoupper(), and ReverseChar().

Here is the caller graph for this function:

BYTE etolower ( BYTE  ch  ) 

References ouml, and Ouml.

Referenced by EngRusMakeLower(), gtolower(), and ReverseChar().

Here is the caller graph for this function:

BYTE rtoupper ( BYTE  ch  ) 

References Apostrophe, is_russian_lower(), LowerJO, and UpperJO.

Referenced by EngRusMakeUpper(), GerEngRusMakeUpperTemplate(), ReverseChar(), and RusMakeUpper().

Here is the call graph for this function:

Here is the caller graph for this function:

BYTE rtolower ( BYTE  ch  ) 

References Apostrophe, is_russian_upper(), LowerJO, and UpperJO.

Referenced by EngRusMakeLower(), IsSuperEqualChar(), ReverseChar(), and RusMakeLower().

Here is the call graph for this function:

Here is the caller graph for this function:

BYTE gtoupper ( BYTE  ch  ) 

References Auml, auml, etoupper(), is_english_lower(), Ouml, ouml, Uuml, and uuml.

Referenced by GerEngRusMakeUpperTemplate(), and GerMakeUpper().

Here is the call graph for this function:

Here is the caller graph for this function:

BYTE gtolower ( BYTE  ch  ) 

References auml, Auml, etolower(), is_english_upper(), ouml, Ouml, uuml, and Uuml.

Here is the call graph for this function:

BYTE ReverseChar ( BYTE  ch,
MorphLanguageEnum  langua 
)
char* RusMakeUpper ( char *  word  ) 

References is_russian_lower(), RegisterConverter(), and rtoupper().

Here is the call graph for this function:

char* EngMakeUpper ( char *  word  ) 

References etoupper(), is_english_lower(), and RegisterConverter().

Referenced by CConcHolder::GetResultFormatByString().

Here is the call graph for this function:

Here is the caller graph for this function:

string& EngMakeUpper ( string &  word  ) 

References RegisterConverter().

Here is the call graph for this function:

string& EngMakeLower ( string &  word  ) 

References RegisterConverter().

Referenced by IsHtmlFile(), IsJsonFile(), and IsTableFile().

Here is the call graph for this function:

Here is the caller graph for this function:

char* GerMakeUpper ( char *  word  ) 

References gtoupper(), is_german_lower(), and RegisterConverter().

Referenced by CHomonym::SetLemma().

Here is the call graph for this function:

Here is the caller graph for this function:

string& GerMakeUpper ( string &  word  ) 

References RegisterConverter().

Here is the call graph for this function:

char* RusMakeLower ( char *  word  ) 

References is_russian_upper(), RegisterConverter(), and rtolower().

Here is the call graph for this function:

string& EngRusMakeLower ( string &  word  ) 

References etolower(), is_russian_upper(), and rtolower().

Referenced by CXmlMorphAnnot::BuildRusCorpAnnot(), and RmlMakeLower().

Here is the call graph for this function:

Here is the caller graph for this function:

char* EngRusMakeLower ( char *  word  ) 

References etolower(), is_russian_upper(), and rtolower().

Here is the call graph for this function:

char* RmlMakeUpper ( char *  word,
MorphLanguageEnum  langua 
)
string& RmlMakeUpper ( string &  word,
MorphLanguageEnum  langua 
)

References GerEngRusMakeUpperTemplate().

Here is the call graph for this function:

string& RmlMakeLower ( string &  word,
MorphLanguageEnum  langua 
)
string& EngRusMakeUpper ( string &  word  ) 

References etoupper(), is_russian_lower(), and rtoupper().

Referenced by CBigrams::GetBigrams(), GetLanguageByString(), CGraphanDicts::ReadExtensions(), and CPlmLine::SetWord().

Here is the call graph for this function:

Here is the caller graph for this function:

char* EngRusMakeUpper ( char *  word  ) 

References etoupper(), is_english_lower(), is_russian_lower(), and rtoupper().

Here is the call graph for this function:

bool IsRussian ( const char *  word  ) 

References CheckLanguage(), and morphRussian.

Referenced by TRoss::ReadFromStrWithOneSignatura().

Here is the call graph for this function:

Here is the caller graph for this function:

bool IsRussian ( const string &  word  ) 

References CheckLanguage().

Here is the call graph for this function:

bool IsEnglish ( const char *  word  ) 

References CheckLanguage(), and morphEnglish.

Here is the call graph for this function:

bool IsEnglish ( const string &  word  ) 

References CheckLanguage().

Here is the call graph for this function:

bool IsGerman ( const char *  word  ) 

References CheckLanguage(), and morphGerman.

Here is the call graph for this function:

bool IsGerman ( const string &  word  ) 

References CheckLanguage().

Here is the call graph for this function:

bool CheckLanguage ( const char *  word,
MorphLanguageEnum  langua 
)

References CheckLanguage().

Here is the call graph for this function:

bool CheckLanguage ( const string &  word,
MorphLanguageEnum  langua 
)

References CheckLanguage().

Here is the call graph for this function:

void ConvertJO2Je ( string &  src  ) 

References ConvertJO2JeTemplate().

Here is the call graph for this function:

void ConvertJO2Je ( char *  src  ) 

References ConvertJO2JeTemplate().

Here is the call graph for this function:

void ConvertJO2Je ( char *  src,
size_t  Length 
)

References ConvertJO2JeTemplate().

Referenced by CRusCorpXmlFile::CreateGraTable(), CLemmatizerRussian::FilterSrc(), CGraphmatFile::GraphmatMain(), and MorphoWizard::prepare_for_RML().

Here is the call graph for this function:

Here is the caller graph for this function:

string ConvertASCIIToHtmlSymbols ( const string &  txt  ) 

Referenced by BuildHtmlHitStrWithHighlighting(), CConSent::GetString(), and CConcHolder::ShowBibliographyForTable().

Here is the caller graph for this function:

template<class T , class Pred , class Conv >
T& RegisterConverter ( T &  word,
size_t  Len,
Pred  P,
Conv  C 
)

Referenced by EngMakeLower(), EngMakeUpper(), GerEngRusMakeUpperTemplate(), GerMakeUpper(), RmlMakeLower(), RusMakeLower(), and RusMakeUpper().

Here is the caller graph for this function:

template<class T >
T& GerEngRusMakeUpperTemplate ( T &  word,
MorphLanguageEnum  Langua,
size_t  Len 
)

References etoupper(), gtoupper(), is_english_lower(), is_german_lower(), is_russian_lower(), morphGerman, RegisterConverter(), and rtoupper().

Referenced by CUnitHolder::BuildUnitBufferUpper(), and RmlMakeUpper().

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

const unsigned int _MAX_PATH = 512
const BYTE cHyphenChar = (BYTE) '-'
const BYTE cPeriodChar = (BYTE) '.'
const BYTE cEofChar = (BYTE) 0x1a
const BYTE cPtrChar = (BYTE) 0x13
const BYTE cSpaceChar = (BYTE) 32
const BYTE cBackChar = (BYTE) '€'
const BYTE cFullChar = (BYTE) '«'
const BYTE cNumChar = (BYTE) 'N'
const BYTE cAmpChar = (BYTE) '&'
const BYTE cParagraph = (BYTE) 21

Referenced by CGraLine::ReadWord().

const BYTE cCompanyChar = (BYTE) 176
const BYTE cIonChar = (BYTE) 183
const BYTE cNumberChar = (BYTE) 0xB9
const BYTE cPiChar = (BYTE) 182
const BYTE cEllipseChar = (BYTE) 133
const BYTE UnknownPartOfSpeech = 0xff
const int UnknownSyntaxElement = 0xffff
const BYTE Auml = 196
const BYTE auml = 228
const BYTE Uuml = 220
const BYTE uuml = 252
const BYTE Ouml = 214
const BYTE ouml = 246
const BYTE szlig = 223
const BYTE Nu = 181
const BYTE agrave = 224
const BYTE egrave = 232
const BYTE eacute = 233
const BYTE LowerJO = (BYTE)'¸'
const BYTE UpperJO = (BYTE)'¨'
const BYTE Apostrophe = 39