Classes | Typedefs | Functions | Variables

utilit.cpp File Reference

#include "utilit.h"
#include "util_classes.h"
#include "../common/bserialize.h"
#include <time.h>
#include <errno.h>
#include <sys/stat.h>
Include dependency graph for utilit.cpp:

Classes

Typedefs

Functions

Variables


Typedef Documentation

typedef bool(* SymbolCheckerFunc)(BYTE)

Function Documentation

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:

string CreateTempFileName (  ) 
void rml_TRACE ( const char *  format,
  ... 
)
bool IsEmptyLine ( const char *  t  ) 

Referenced by TRoss::ReadFromStrWithOneSignatura().

Here is the caller 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 
)
void strrev ( char *  s  ) 
string FileExtension ( const string &  FileName  ) 

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

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:

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

References _MAX_PATH.

Referenced by CConcXml::UniteBibliography().

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:

static string GetStringInnerFromTheFile ( string  RegistryPath,
string  MainPath,
string  RmlPath 
) [static]

References Trim().

Referenced by GetRegistryString(), and GetRegistryStringFromLocalIniFile().

Here is the call graph for this function:

Here is the caller 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 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:

struct tm RmlGetCurrentTime (  )  [read]

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

Here is the caller graph for this function:

bool CheckEvaluationTime (  ) 

References ErrorMessage(), and RmlGetCurrentTime().

Here is the call graph for this function:

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  ) 
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_spc_fill ( BYTE  x  ) 

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

Here is the caller graph for this function:

bool is_generic_upper ( BYTE  x  ) 

References ASCII, and EngUpper.

Referenced by is_upper_alpha().

Here is the caller graph for this function:

bool is_generic_lower ( BYTE  x  ) 

References ASCII, and EngLower.

Referenced by is_lower_alpha().

Here is the caller graph for this function:

bool is_generic_alpha ( BYTE  x  ) 

References is_english_alpha().

Referenced by is_alpha().

Here is the call graph for this function:

Here is the caller graph for this function:

bool is_URL_alpha ( BYTE  x  ) 

References ASCII, and URL_CHAR.

Referenced by is_alpha().

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_upper_vowel ( BYTE  x  ) 

References ASCII, EngUpper, and LatinVowel.

Referenced by is_upper_vowel().

Here is the caller graph for this function:

bool is_english_lower ( BYTE  x  ) 
bool is_english_lower_vowel ( BYTE  x  ) 

References ASCII, EngLower, and LatinVowel.

Referenced by is_lower_vowel().

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:

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:

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_german_lower_vowel ( BYTE  x  ) 

References ASCII, GerLower, and LatinVowel.

Referenced by is_lower_vowel().

Here is the caller graph for this function:

bool is_german_upper_vowel ( BYTE  x  ) 

References ASCII, GerUpper, and LatinVowel.

Referenced by is_upper_vowel().

Here is the caller graph for this function:

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:

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:

bool is_russian_upper ( BYTE  x  ) 
bool is_russian_lower ( BYTE  x  ) 
bool is_russian_lower_vowel ( BYTE  x  ) 

References ASCII, RusLower, and RussianVowel.

Referenced by is_lower_vowel(), and is_russian_lower_consonant().

Here is the caller graph for this function:

bool is_russian_upper_vowel ( BYTE  x  ) 

References ASCII, RussianVowel, and RusUpper.

Referenced by is_russian_upper_consonant(), and is_upper_vowel().

Here is the caller graph for this function:

bool is_russian_lower_consonant ( BYTE  x  ) 

References is_russian_lower(), and is_russian_lower_vowel().

Referenced by is_russian_consonant().

Here is the call graph for this function:

Here is the caller graph for this function:

bool is_russian_upper_consonant ( BYTE  x  ) 

References is_russian_upper(), and is_russian_upper_vowel().

Referenced by is_russian_consonant().

Here is the call graph for this function:

Here is the caller graph for this function:

bool is_russian_consonant ( BYTE  x  ) 

References is_russian_lower_consonant(), and is_russian_upper_consonant().

Here is the call graph for this function:

bool is_russian_alpha ( BYTE  x  ) 
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:

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_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_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 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:

bool is_arab_digit ( BYTE  c  ) 
template<class T >
bool CheckLanguage ( const T &  src,
size_t  Length,
MorphLanguageEnum  langua 
)
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:

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:

template<class T >
void ConvertJO2JeTemplate ( T &  src,
size_t  Length 
)

References LowerJO, and UpperJO.

Referenced by ConvertJO2Je().

Here is the caller 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:

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:

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:

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:

void QPEncodeString ( string &  s  ) 

References Format().

Here is the call graph for this function:

void QPDecodeString ( string &  s  ) 
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  ) 
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 ReadTimeOutFromRegistry ( bool  bReadFromLocalFile,
int &  TimeOut 
)

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

Here is the call graph for this function:

char wtk ( char  c  ) 

Referenced by WinToKOI8().

Here is the caller graph for this function:

char ktw ( char  c  ) 

Referenced by KOI8ToWin().

Here is the caller graph for this function:

void WinToKOI8 ( string &  s  ) 

References wtk().

Here is the call graph for this function:

void KOI8ToWin ( string &  s  ) 

References ktw().

Here is the call graph for this function:

DWORD StringCrc32 ( const char *  szString  ) 
string ConvertASCIIToHtmlSymbols ( const string &  txt  ) 

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

Here is the caller graph for this function:

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:

size_t HashValue ( const char *  pc  ) 
bool RmlCopyFile ( const char *  oldpath,
const char *  newpath 
)

Referenced by RmlMoveFile().

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:

string BuildRMLPath ( const char *  s  ) 

References GetRmlVariable().

Here is the call graph for this function:


Variable Documentation

const WORD fWordDelim = 1
const WORD RusUpper = 2
const WORD RusLower = 4
const WORD GerUpper = 8
const WORD GerLower = 16
const WORD EngUpper = 32
const WORD EngLower = 64
const WORD OpnBrck = 128
const WORD ClsBrck = 256
const WORD UpRomDigits = 512
const WORD LwRomDigits = 1024
const WORD LatinVowel = 2048
const WORD RussianVowel = 4096
const WORD URL_CHAR = 8192

Referenced by is_URL_alpha().

const WORD ASCII[256]
void(* GlobalErrorMessage)(const string &)=0

Referenced by ErrorMessage().

const char RML_REGISTRY_FILENAME[] = "rml.ini"
const int predict_poses_size = 4
Initial value:
{
        "Ñ",
        "ÈÍÔÈÍÈÒÈÂ",
        "Ï",
        "Í",
}
Initial value:
{
        "NOUN",
        "VERB",
        "ADJECTIVE",
        "ADVERB",
}
Initial value:
{
        "SUB",
        "VER",
        "ADJ",
        "ADV",
}
const BYTE Ccedille = 199
const BYTE Egravis = 200
const BYTE Ezirkun = 202
const BYTE Azirkun = 194
const BYTE Ozirkun = 212
const BYTE Ntilda = 209
const BYTE Eakut = 201
const BYTE Uzirkun = 219
const BYTE ccedille = 231
const BYTE egravis = 232
const BYTE ezirkun = 234
const BYTE azirkun = 226
const BYTE ozirkun = 244
const BYTE ntilda = 241
const BYTE eakut = 233
const BYTE uzirkun = 251
const string open_brackets = "{[(<"
const string close_brackets = "}])>"
BYTE kw[]
Initial value:
 {128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,
144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,
160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,
176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,
254,224,225,246,228,229,244,227,245,232,233,234,235,236,237,238,
239,255,240,241,242,243,230,226,252,251,231,248,253,249,247,250,
222,192,193,214,196,197,212,195,213,200,201,202,203,204,205,206,
207,223,208,209,210,211,198,194,220,219,199,216,221,217,215,218}
BYTE wk[]
Initial value:
 {128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,
144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,
160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,
176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,
225,226,247,231,228,229,246,250,233,234,235,236,237,238,239,240,
242,243,244,245,230,232,227,254,251,253,255,249,248,252,224,241,
193,194,215,199,196,197,214,218,201,202,203,204,205,206,207,208,
210,211,212,213,198,200,195,222,219,221,223,217,216,220,192,209}
const DWORD arrdwCrc32Table[256] [static]