SNAP Library 6.0, Developer Reference  2020-12-09 16:24:20
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
TStr Class Reference

#include <dt.h>

Inheritance diagram for TStr:
Collaboration diagram for TStr:

Public Member Functions

 TStr ()
 
 TStr (const TStr &Str)
 
 TStr (const TChA &ChA)
 
 TStr (const TSStr &SStr)
 
 TStr (const char *CStr)
 
 TStr (const char &Ch)
 
 TStr (const TMem &Mem)
 
 TStr (const PSIn &SIn)
 
 ~TStr ()
 
 TStr (TSIn &SIn, const bool &IsSmall=false)
 
void Load (TSIn &SIn, const bool &IsSmall=false)
 
void Save (TSOut &SOut, const bool &IsSmall=false) const
 
void LoadXml (const PXmlTok &XmlTok, const TStr &Nm)
 
void SaveXml (TSOut &SOut, const TStr &Nm) const
 
TStroperator= (const TStr &Str)
 
TStroperator= (const TChA &ChA)
 
TStroperator= (const char *CStr)
 
TStroperator= (const char &Ch)
 
TStroperator+= (const TStr &Str)
 
TStroperator+= (const char *CStr)
 
TStroperator/ (const int &N)
 
bool operator== (const TStr &Str) const
 
bool operator== (const char *CStr) const
 
bool operator!= (const char *CStr) const
 
bool operator< (const TStr &Str) const
 
char operator[] (const int &ChN) const
 
int GetMemUsed () const
 
char * operator() ()
 
const char * operator() () const
 
char * CStr ()
 
const char * CStr () const
 
void PutCh (const int &ChN, const char &Ch)
 
char GetCh (const int &ChN) const
 
char LastCh () const
 
void Clr ()
 
int Len () const
 
bool Empty () const
 
bool IsUc () const
 
TStrToUc ()
 
TStr GetUc () const
 
int CmpI (const TStr &Str) const
 
bool EqI (const TStr &Str) const
 
bool IsLc () const
 
TStrToLc ()
 
TStr GetLc () const
 
TStrToCap ()
 
TStr GetCap () const
 
TStrToTrunc ()
 
TStr GetTrunc () const
 
TStrConvUsFromYuAscii ()
 
TStr GetUsFromYuAscii () const
 
TStrToHex ()
 
TStr GetHex () const
 
TStrFromHex ()
 
TStr GetFromHex () const
 
TStr GetSubStr (const int &BChN, const int &EChN) const
 
TStr GetSubStr (const int &BChN) const
 
void InsStr (const int &BChN, const TStr &Str)
 
void DelChAll (const char &Ch)
 
void DelSubStr (const int &BChN, const int &EChN)
 
bool DelStr (const TStr &Str)
 
TStr LeftOf (const char &SplitCh) const
 
TStr LeftOfLast (const char &SplitCh) const
 
TStr RightOf (const char &SplitCh) const
 
TStr RightOfLast (const char &SplitCh) const
 
void SplitOnCh (TStr &LStr, const char &SplitCh, TStr &RStr) const
 
void SplitOnLastCh (TStr &LStr, const char &SplitCh, TStr &RStr) const
 
void SplitOnAllCh (const char &SplitCh, TStrV &StrV, const bool &SkipEmpty=true) const
 
void SplitOnAllAnyCh (const TStr &SplitChStr, TStrV &StrV, const bool &SkipEmpty=true) const
 
void SplitOnWs (TStrV &StrV) const
 
void SplitOnNonAlNum (TStrV &StrV) const
 
void SplitOnStr (const TStr &SplitStr, TStrV &StrV) const
 
void SplitOnStr (TStr &LeftStr, const TStr &MidStr, TStr &RightStr) const
 
TStr Mid (const int &BChN, const int &Chs) const
 
TStr Mid (const int &BChN) const
 
TStr Left (const int &EChN) const
 
TStr Right (const int &BChN) const
 
TStr Slice (int BChN, int EChNP1) const
 
TStr operator() (const int &BChN, const int &EChNP1) const
 
int CountCh (const char &Ch, const int &BChN=0) const
 
int SearchCh (const char &Ch, const int &BChN=0) const
 
int SearchChBack (const char &Ch, int BChN=-1) const
 
int SearchStr (const TStr &Str, const int &BChN=0) const
 
bool IsChIn (const char &Ch) const
 
bool IsStrIn (const TStr &Str) const
 
bool IsPrefix (const char *Str) const
 
bool IsPrefix (const TStr &Str) const
 
bool IsSuffix (const char *Str) const
 
bool IsSuffix (const TStr &Str) const
 
int ChangeCh (const char &SrcCh, const char &DstCh, const int &BChN=0)
 
int ChangeChAll (const char &SrcCh, const char &DstCh)
 
int ChangeStr (const TStr &SrcStr, const TStr &DstStr, const int &BChN=0)
 
int ChangeStrAll (const TStr &SrcStr, const TStr &DstStr, const bool &FromStartP=false)
 
TStr Reverse () const
 
int GetPrimHashCd () const
 
int GetSecHashCd () const
 
bool IsBool (bool &Val) const
 
bool IsInt (const bool &Check, const int &MnVal, const int &MxVal, int &Val) const
 
bool IsInt (int &Val) const
 
bool IsInt () const
 
int GetInt () const
 
int GetInt (const int &DfVal) const
 
bool IsUInt (const bool &Check, const uint &MnVal, const uint &MxVal, uint &Val) const
 
bool IsUInt (uint &Val) const
 
bool IsUInt () const
 
uint GetUInt () const
 
uint GetUInt (const uint &DfVal) const
 
bool IsInt64 (const bool &Check, const int64 &MnVal, const int64 &MxVal, int64 &Val) const
 
bool IsInt64 (int64 &Val) const
 
bool IsInt64 () const
 
int64 GetInt64 () const
 
int64 GetInt64 (const int64 &DfVal) const
 
bool IsUInt64 (const bool &Check, const uint64 &MnVal, const uint64 &MxVal, uint64 &Val) const
 
bool IsUInt64 (uint64 &Val) const
 
bool IsUInt64 () const
 
uint64 GetUInt64 () const
 
uint64 GetUInt64 (const uint64 &DfVal) const
 
bool IsHexInt (const bool &Check, const int &MnVal, const int &MxVal, int &Val) const
 
bool IsHexInt (int &Val) const
 
bool IsHexInt () const
 
int GetHexInt () const
 
int GetHexInt (const int &DfVal) const
 
bool IsHexInt64 (const bool &Check, const int64 &MnVal, const int64 &MxVal, int64 &Val) const
 
bool IsHexInt64 (int64 &Val) const
 
bool IsHexInt64 () const
 
int64 GetHexInt64 () const
 
int64 GetHexInt64 (const int64 &DfVal) const
 
bool IsFlt (const bool &Check, const double &MnVal, const double &MxVal, double &Val, const char &DecDelimCh='.') const
 
bool IsFlt (double &Val) const
 
bool IsFlt () const
 
double GetFlt () const
 
double GetFlt (const double &DfVal) const
 
bool IsWord (const bool &WsPrefixP=true, const bool &FirstUcAllowedP=true) const
 
bool IsWs () const
 
bool IsWcMatch (const int &StrBChN, const TStr &WcStr, const int &WcStrBChN, TStrV &StarStrV, const char &StarCh='*', const char &QuestCh='?') const
 
bool IsWcMatch (const TStr &WcStr, TStrV &StarStrV, const char &StarCh='*', const char &QuestCh='?') const
 
bool IsWcMatch (const TStr &WcStr, const char &StarCh, const char &QuestCh) const
 
bool IsWcMatch (const TStr &WcStr, const int &StarStrN, TStr &StarStr) const
 
bool IsWcMatch (const TStr &WcStr) const
 
TStr GetWcMatch (const TStr &WcStr, const int &StarStrN=0) const
 
TStr GetFPath () const
 
TStr GetFBase () const
 
TStr GetFMid () const
 
TStr GetFExt () const
 
void SaveTxt (const PSOut &SOut) const
 
void SaveTxt (const TStr &FNm) const
 
TStr GetStr () const
 
char * GetCStr () const
 

Static Public Member Functions

static TStr GetNrFPath (const TStr &FPath)
 
static TStr GetNrFMid (const TStr &FMid)
 
static TStr GetNrFExt (const TStr &FExt)
 
static TStr GetNrNumFExt (const int &FExtN)
 
static TStr GetNrFNm (const TStr &FNm)
 
static TStr GetNrAbsFPath (const TStr &FPath, const TStr &BaseFPath=TStr())
 
static bool IsAbsFPath (const TStr &FPath)
 
static TStr PutFExt (const TStr &FNm, const TStr &FExt)
 
static TStr PutFExtIfEmpty (const TStr &FNm, const TStr &FExt)
 
static TStr PutFBase (const TStr &FNm, const TStr &FBase)
 
static TStr PutFBaseIfEmpty (const TStr &FNm, const TStr &FBase)
 
static TStr AddToFMid (const TStr &FNm, const TStr &ExtFMid)
 
static TStr GetNumFNm (const TStr &FNm, const int &Num)
 
static TStr GetFNmStr (const TStr &Str, const bool &AlNumOnlyP=true)
 
static TStr LoadTxt (const PSIn &SIn)
 
static TStr LoadTxt (const TStr &FNm)
 
static TStrGetChStr (const char &Ch)
 
static TStrGetDChStr (const char &Ch1, const char &Ch2)
 
static TStr GetStr (const TStr &Str, const char *FmtStr)
 
static TStr GetStr (const TStr &Str, const TStr &FmtStr)
 
static TStr GetStr (const TStrV &StrV, const TStr &DelimiterStr)
 
static TStr Fmt (const char *FmtStr,...)
 
static TStr GetSpaceStr (const int &Spaces)
 
static TStr MkClone (const TStr &Str)
 
static TStr GetNullStr ()
 

Private Member Functions

 TStr (const char &Ch, bool)
 
 TStr (const char &Ch1, const char &Ch2, bool)
 
void Optimize ()
 

Static Private Member Functions

static TRStrGetRStr (const char *CStr)
 

Private Attributes

TRStrRStr
 

Friends

TStr operator+ (const TStr &LStr, const TStr &RStr)
 
TStr operator+ (const TStr &LStr, const char *RCStr)
 

Detailed Description

Definition at line 412 of file dt.h.

Constructor & Destructor Documentation

TStr::TStr ( const char &  Ch,
bool   
)
inlineprivate

Definition at line 416 of file dt.h.

References TRStr::MkRef().

416  {
417  RStr=new TRStr(Ch); RStr->MkRef();}
TRStr * RStr
Definition: dt.h:414
void MkRef()
Definition: dt.h:378
Definition: dt.h:346

Here is the call graph for this function:

TStr::TStr ( const char &  Ch1,
const char &  Ch2,
bool   
)
inlineprivate

Definition at line 418 of file dt.h.

References TRStr::MkRef().

418  {
419  RStr=new TRStr(Ch1, Ch2); RStr->MkRef();}
TRStr * RStr
Definition: dt.h:414
void MkRef()
Definition: dt.h:378
Definition: dt.h:346

Here is the call graph for this function:

TStr::TStr ( )
inline

Definition at line 423 of file dt.h.

References TRStr::GetNullRStr(), and TRStr::MkRef().

Referenced by Fmt(), GetCap(), GetChStr(), GetDChStr(), GetFExt(), GetFromHex(), GetHex(), GetLc(), GetNrFExt(), GetNrNumFExt(), GetStr(), GetSubStr(), GetTrunc(), GetUc(), GetUsFromYuAscii(), Load(), LoadTxt(), MkClone(), SplitOnAllAnyCh(), SplitOnAllCh(), SplitOnNonAlNum(), and SplitOnWs().

TRStr * RStr
Definition: dt.h:414
void MkRef()
Definition: dt.h:378
static TRStr * GetNullRStr()
Definition: dt.h:402

Here is the call graph for this function:

Here is the caller graph for this function:

TStr::TStr ( const TStr Str)
inline

Definition at line 424 of file dt.h.

References TRStr::MkRef(), and RStr.

424 {RStr=Str.RStr; RStr->MkRef();}
TRStr * RStr
Definition: dt.h:414
void MkRef()
Definition: dt.h:378

Here is the call graph for this function:

TStr::TStr ( const TChA ChA)
inline

Definition at line 425 of file dt.h.

References TChA::CStr(), GetRStr(), and TRStr::MkRef().

425 {RStr=GetRStr(ChA.CStr()); RStr->MkRef();}
TRStr * RStr
Definition: dt.h:414
char * CStr()
Definition: dt.h:255
void MkRef()
Definition: dt.h:378
static TRStr * GetRStr(const char *CStr)
Definition: dt.cpp:719

Here is the call graph for this function:

TStr::TStr ( const TSStr SStr)
inline

Definition at line 426 of file dt.h.

References TSStr::CStr(), GetRStr(), and TRStr::MkRef().

426 {RStr=GetRStr(SStr.CStr()); RStr->MkRef();}
TRStr * RStr
Definition: dt.h:414
char * CStr()
Definition: bd.h:531
void MkRef()
Definition: dt.h:378
static TRStr * GetRStr(const char *CStr)
Definition: dt.cpp:719

Here is the call graph for this function:

TStr::TStr ( const char *  CStr)
inline

Definition at line 427 of file dt.h.

References GetRStr(), and TRStr::MkRef().

427 {RStr=GetRStr(CStr); RStr->MkRef();}
TRStr * RStr
Definition: dt.h:414
void MkRef()
Definition: dt.h:378
static TRStr * GetRStr(const char *CStr)
Definition: dt.cpp:719
char * CStr()
Definition: dt.h:479

Here is the call graph for this function:

TStr::TStr ( const char &  Ch)
inlineexplicit

Definition at line 428 of file dt.h.

References GetChStr(), TRStr::MkRef(), and RStr.

428 {RStr=GetChStr(Ch).RStr; RStr->MkRef();}
TRStr * RStr
Definition: dt.h:414
void MkRef()
Definition: dt.h:378
static TStr & GetChStr(const char &Ch)
Definition: dt.cpp:1551

Here is the call graph for this function:

TStr::TStr ( const TMem Mem)
inline

Definition at line 429 of file dt.h.

References CStr(), TMem::Len(), TRStr::MkRef(), and Optimize().

429  {
430  RStr=new TRStr(Mem.Len()); RStr->MkRef();
431  memcpy(CStr(), Mem(), Mem.Len()); Optimize();}
TRStr * RStr
Definition: dt.h:414
int Len() const
Definition: dt.h:134
void Optimize()
Definition: dt.cpp:729
void MkRef()
Definition: dt.h:378
char * CStr()
Definition: dt.h:479
Definition: dt.h:346

Here is the call graph for this function:

TStr::TStr ( const PSIn SIn)
inlineexplicit

Definition at line 432 of file dt.h.

References CStr(), TSIn::GetBf(), TSIn::Len(), TRStr::MkRef(), and Optimize().

432  {
433  int SInLen=SIn->Len(); RStr=new TRStr(SInLen); RStr->MkRef();
434  SIn->GetBf(CStr(), SInLen); Optimize();}
TRStr * RStr
Definition: dt.h:414
virtual int Len() const =0
virtual int GetBf(const void *Bf, const TSize &BfL)=0
void Optimize()
Definition: dt.cpp:729
void MkRef()
Definition: dt.h:378
char * CStr()
Definition: dt.h:479
Definition: dt.h:346

Here is the call graph for this function:

TStr::~TStr ( )
inline

Definition at line 435 of file dt.h.

References TRStr::UnRef().

435 {RStr->UnRef();}
TRStr * RStr
Definition: dt.h:414
void UnRef()
Definition: dt.h:379

Here is the call graph for this function:

TStr::TStr ( TSIn SIn,
const bool &  IsSmall = false 
)
inlineexplicit

Definition at line 436 of file dt.h.

References TRStr::MkRef(), and Optimize().

436  :
437  RStr(new TRStr(SIn, IsSmall)){RStr->MkRef(); Optimize();}
TRStr * RStr
Definition: dt.h:414
void Optimize()
Definition: dt.cpp:729
void MkRef()
Definition: dt.h:378
Definition: dt.h:346

Here is the call graph for this function:

Member Function Documentation

TStr TStr::AddToFMid ( const TStr FNm,
const TStr ExtFMid 
)
static

Definition at line 1523 of file dt.cpp.

References GetFExt(), GetFMid(), and GetFPath().

1523  {
1524  return FNm.GetFPath()+FNm.GetFMid()+ExtFMid+FNm.GetFExt();
1525 }
TStr GetFMid() const
Definition: dt.cpp:1403
TStr GetFPath() const
Definition: dt.cpp:1389
TStr GetFExt() const
Definition: dt.cpp:1421

Here is the call graph for this function:

int TStr::ChangeCh ( const char &  SrcCh,
const char &  DstCh,
const int &  BChN = 0 
)

Definition at line 1107 of file dt.cpp.

References PutCh(), and SearchCh().

Referenced by GetNrFPath().

1107  {
1108  int ChN=SearchCh(SrcCh, BChN);
1109  if (ChN!=-1){PutCh(ChN, DstCh);}
1110  return ChN;
1111 }
int SearchCh(const char &Ch, const int &BChN=0) const
Definition: dt.cpp:1043
void PutCh(const int &ChN, const char &Ch)
Definition: dt.h:482

Here is the call graph for this function:

Here is the caller graph for this function:

int TStr::ChangeChAll ( const char &  SrcCh,
const char &  DstCh 
)

Definition at line 1113 of file dt.cpp.

References TRStr::CStr(), CStr(), Len(), TRStr::MkRef(), Optimize(), RStr, SearchCh(), and TRStr::UnRef().

Referenced by TCodaAnalyzer::Draw2ModeCommunity(), TMAGAffMtx::GetMtx(), and TKronMtx::GetMtx().

1113  {
1114  int FirstChN=SearchCh(SrcCh);
1115  if (FirstChN==-1){
1116  return 0;
1117  } else {
1118  TRStr* NewRStr=new TRStr(RStr->CStr());
1119  RStr->UnRef(); RStr=NewRStr; RStr->MkRef();
1120  char* ThisBf=CStr(); int StrLen=Len(); int Changes=0;
1121  for (int ChN=FirstChN; ChN<StrLen; ChN++){
1122  // slow: if (GetCh(ChN)==SrcCh){RStr->PutCh(ChN, DstCh); Changes++;}
1123  if (ThisBf[ChN]==SrcCh){ThisBf[ChN]=DstCh; Changes++;}
1124  }
1125  Optimize();
1126  return Changes;
1127  }
1128 }
int SearchCh(const char &Ch, const int &BChN=0) const
Definition: dt.cpp:1043
TRStr * RStr
Definition: dt.h:414
int Len() const
Definition: dt.h:490
const char * CStr() const
Definition: dt.h:381
void UnRef()
Definition: dt.h:379
void Optimize()
Definition: dt.cpp:729
void MkRef()
Definition: dt.h:378
char * CStr()
Definition: dt.h:479
Definition: dt.h:346

Here is the call graph for this function:

Here is the caller graph for this function:

int TStr::ChangeStr ( const TStr SrcStr,
const TStr DstStr,
const int &  BChN = 0 
)

Definition at line 1130 of file dt.cpp.

References DelSubStr(), InsStr(), Len(), and SearchStr().

Referenced by ChangeStrAll(), and TFile::GetUniqueFNm().

1130  {
1131  int ChN=SearchStr(SrcStr, BChN);
1132  if (ChN==-1){
1133  return -1;
1134  } else {
1135  DelSubStr(ChN, ChN+SrcStr.Len()-1);
1136  InsStr(ChN, DstStr);
1137  return ChN;
1138  }
1139 }
int Len() const
Definition: dt.h:490
int SearchStr(const TStr &Str, const int &BChN=0) const
Definition: dt.cpp:1065
void DelSubStr(const int &BChN, const int &EChN)
Definition: dt.cpp:850
void InsStr(const int &BChN, const TStr &Str)
Definition: dt.cpp:825

Here is the call graph for this function:

Here is the caller graph for this function:

int TStr::ChangeStrAll ( const TStr SrcStr,
const TStr DstStr,
const bool &  FromStartP = false 
)

Definition at line 1141 of file dt.cpp.

References ChangeStr(), and Len().

Referenced by TGnuPlot::AddPlot(), TGnuPlot::CreatePlotFile(), TXmlLx::GetChRefFromYuEntRef(), GetNrAbsFPath(), TXmlLx::GetUsAsciiStrFromXmlStr(), TUnicode::NormalizeCodecName(), and TUrl::TUrl().

1141  {
1142  const int DstStrLen=DstStr.Len();
1143  int Changes=0-1; int BChN=0-DstStrLen;
1144  do {
1145  Changes++;
1146  if (FromStartP){BChN=0-DstStrLen;}
1147  BChN+=DstStrLen;
1148  BChN=ChangeStr(SrcStr, DstStr, BChN);
1149  } while (BChN!=-1);
1150  return Changes;
1151 }
int Len() const
Definition: dt.h:490
int ChangeStr(const TStr &SrcStr, const TStr &DstStr, const int &BChN=0)
Definition: dt.cpp:1130

Here is the call graph for this function:

Here is the caller graph for this function:

void TStr::Clr ( )
inline

Definition at line 489 of file dt.h.

References TRStr::GetNullRStr(), TRStr::MkRef(), and TRStr::UnRef().

Referenced by DelSubStr(), TUrl::GetAbs(), THttpResp::ParseHttpResp(), and TUrl::ToLcPath().

TRStr * RStr
Definition: dt.h:414
void UnRef()
Definition: dt.h:379
void MkRef()
Definition: dt.h:378
static TRStr * GetNullRStr()
Definition: dt.h:402

Here is the call graph for this function:

Here is the caller graph for this function:

int TStr::CmpI ( const TStr Str) const
inline

Definition at line 497 of file dt.h.

References TRStr::CmpI(), and CStr().

497 {return TRStr::CmpI(CStr(), Str.CStr());}
static int CmpI(const char *CStr1, const char *CStr2)
Definition: dt.cpp:699
char * CStr()
Definition: dt.h:479

Here is the call graph for this function:

TStr & TStr::ConvUsFromYuAscii ( )

Definition at line 779 of file dt.cpp.

References TRStr::ConvUsFromYuAscii(), TRStr::CStr(), TRStr::MkRef(), Optimize(), RStr, and TRStr::UnRef().

779  {
780  TRStr* NewRStr=new TRStr(RStr->CStr()); NewRStr->ConvUsFromYuAscii();
781  RStr->UnRef(); RStr=NewRStr; RStr->MkRef();
782  Optimize(); return *this;
783 }
TRStr * RStr
Definition: dt.h:414
const char * CStr() const
Definition: dt.h:381
void UnRef()
Definition: dt.h:379
void Optimize()
Definition: dt.cpp:729
void MkRef()
Definition: dt.h:378
void ConvUsFromYuAscii()
Definition: dt.cpp:693
Definition: dt.h:346

Here is the call graph for this function:

int TStr::CountCh ( const char &  Ch,
const int &  BChN = 0 
) const

Definition at line 1033 of file dt.cpp.

References CStr(), TInt::GetMx(), and Len().

1033  {
1034  const int ThisLen=Len();
1035  const char* ThisBf=CStr();
1036  int Chs=0;
1037  for (int ChN=TInt::GetMx(BChN, 0); ChN<ThisLen; ChN++){
1038  if (ThisBf[ChN]==Ch){Chs++;}
1039  }
1040  return Chs;
1041 }
int Len() const
Definition: dt.h:490
static int GetMx(const int &Int1, const int &Int2)
Definition: dt.h:1185
char * CStr()
Definition: dt.h:479

Here is the call graph for this function:

char* TStr::CStr ( )
inline

Definition at line 479 of file dt.h.

References TRStr::CStr().

Referenced by TStrHash< TInt, TBigStrPool >::AddDat(), TStrHash< TInt, TBigStrPool >::AddDatId(), TGnuPlot::AddErrBar(), TNEANet::AddFltVAttrDatE(), TNEANet::AddFltVAttrDatN(), TGnuPlot::AddFunc(), TNEANet::AddIntVAttrDatE(), TNEANet::AddIntVAttrDatN(), TStrHash< TInt, TBigStrPool >::AddKey(), TGnuPlot::AddPlot(), TBigStrPool::AddStr(), TStrPool::AddStr(), TStrPool64::AddStr(), TNEANet::AppendFltVAttrDatE(), TNEANet::AppendFltVAttrDatN(), TNEANet::AppendIntVAttrDatE(), TNEANet::AppendIntVAttrDatN(), anonymous_namespace{unicode.cpp}::AssertEq(), TKroneckerLL::ChainGelmapRubinPlot(), ChangeChAll(), CmpI(), TTable::CompareRows(), CountCh(), TGnuPlot::CreatePlotFile(), TZipIn::CreateZipProcess(), TZipOut::CreateZipProcess(), TFile::Del(), TMMNet::DelCrossNet(), TDir::DelDir(), TMMNet::DelModeNet(), DelSubStr(), TCodaAnalyzer::Draw2ModeCommunity(), TGHash< TDat >::DrawGViz(), TLocClust::DrawWhiskers(), TMAGAffMtx::Dump(), TKronMtx::Dump(), TCnCom::Dump(), TBigNet< TNodeData, IsDir >::Dump(), TSimpleGraph::Dump(), TCodaAnalyzer::Dump2ModeCommunities(), TAGMUtil::DumpCmtyVV(), TCoda::DumpMemberships(), TCesnaUtil::DumpNIDAttrHToMetis(), TCesnaUtil::DumpNIDAttrHToNIDK(), TTimeNENet::DumpTimeStat(), EqI(), ErrNotify(), TDir::Exists(), FPrintMatrix(), FPrintNodeMappings(), FPrintRoles(), TDir::GenDir(), TZipIn::GetCmd(), TZipOut::GetCmd(), GetCStr(), TBigStrPool::GetCStr(), TStrPool::GetCStr(), TBigStrPool::GetCStrFromOffset(), TExeTm::GetCurTm(), TStrHash< TInt, TBigStrPool >::GetDat(), TSecTm::GetDtStr(), GetFBase(), GetFExt(), TZipIn::GetFLen(), GetFMid(), GetFPath(), TEnv::GetIfArgPrefixBool(), TEnv::GetIfArgPrefixFlt(), TEnv::GetIfArgPrefixInt(), TEnv::GetIfArgPrefixStr(), TEnv::GetIfArgPrefixStrV(), TStrHash< TInt, TBigStrPool >::GetKeyId(), TKronMtx::GetMtxFromNm(), TStrHashF_OldGLib::GetPrimHashCd(), TStrHashF_DJB::GetPrimHashCd(), TILx::GetQStr(), TStrHashF_OldGLib::GetSecHashCd(), TStrHashF_DJB::GetSecHashCd(), TSecTm::GetStr(), TMom::GetStr(), GetStr(), TInt::GetStr(), TUInt::GetStr(), TFlt::GetStr(), TLFlt::GetStr(), GetSubStr(), TSecTm::GetTmSec(), THtmlDoc::GetTxtLnDoc(), TUInt::GetUIntFromIpStr(), TEnv::GetVarVal(), TStrUtil::GetXmlTagVal(), TKroneckerLL::GradDescentConvergence(), TAGMUtil::GVizComGraph(), TSnap::TSnapDetail::GVizDoLayout(), TGStatVec::ImposeDistr(), TLocClustStat::ImposeNCP(), InfoNotify(), TUniChDb::InitDerivedCoreProperties(), TUniChDb::InitPropList(), TUniChDb::InitScripts(), TUniChDb::InitWordAndSentenceBoundaryFlags(), TSnap::Intersect(), TSnap::Intersect1(), TBigNet< TNodeData, IsDir >::InvertFromSources(), TEnv::IsArgStr(), IsFlt(), TStrHash< TInt, TBigStrPool >::IsKey(), TStrHash< TInt, TBigStrPool >::IsKeyGetDat(), TNGraphMP::IsOk(), TNodeNet< TNodeData >::IsOk(), TUNGraph::IsOk(), TNEANetMP::IsOk(), TNGraph::IsOk(), TNodeEDatNet< TNodeData, TEdgeData >::IsOk(), TNEGraph::IsOk(), TBPGraph::IsOk(), TNodeEdgeNet< TNodeData, TEdgeData >::IsOk(), TNEANet::IsOk(), TUndirNet::IsOk(), TDirNet::IsOk(), TChA::IsPrefix(), IsPrefix(), TChA::IsSuffix(), IsSuffix(), TTable::Join(), LeftOf(), LeftOfLast(), TTimeNet::LoadAmazon(), TTimeNet::LoadArxiv(), TTimeNet::LoadBipartite(), TKeyDatFl< TKey, TDat, THashFunc >::LoadDatV(), TTimeNENet::LoadEdgeTm(), TTimeNENet::LoadFlickr(), TKeyDatFl< TKey, TDat, THashFunc >::LoadHash(), TKeyDatFl< TKey, TDat, THashFunc >::LoadKeyV(), TCesnaUtil::LoadNIDAttrHFromNIDKH(), TTimeNet::LoadPatents(), TMAGNodeSimple::LoadTxt(), TMAGNodeBern::LoadTxt(), TMAGNodeBeta::LoadTxt(), TMAGParam< TNodeAttr >::LoadTxt(), TUniCaseFolding::LoadTxt(), TUniChDb::LoadTxt(), MkClone(), TCesna::MLEGradAscentParallel(), TNumericalStuff::nrerror(), TNativeCallbackNotify::OnNotify(), TStdNotify::OnNotify(), TStdErrNotify::OnNotify(), TNativeCallbackNotify::OnStatus(), TStdNotify::OnStatus(), TStdErrNotify::OnStatus(), TLogNotify::OnStatus(), TUniChDb::TUcdFileReader::Open(), operator!=(), TGStat::TCmpByVal::operator()(), TWChA::operator+=(), TMem::operator+=(), TChA::operator+=(), operator+=(), TWChA::operator=(), TChA::operator=(), TVecPool< TVal, TSizeTy >::operator=(), operator==(), Optimize(), TGStat::Plot(), TGStatVec::Plot(), PlotAutoCorrelation(), TLocClustStat::PlotBestClustDens(), TLocClustStat::PlotBoltzmanCurve(), TTimeNet::PlotCCfOverTm(), TSnap::PlotClustCf(), TKronMtx::PlotCmpGraphs(), TLocClust::PlotCutDistr(), TTimeNet::PlotEffDiam(), TTimeNENet::PlotEffDiam(), TSnap::PlotEigValDistr(), TSnap::PlotEigValRank(), TForestFire::PlotFire(), TFfGGen::PlotFireSize(), PlotGrad(), TSnap::PlotHops(), TSnap::PlotInDegDistr(), TSnap::PlotInvParticipRat(), TSnap::PlotKCoreEdges(), TSnap::PlotKCoreNodes(), TTimeNet::PlotMedianDegOverTm(), TTimeNet::PlotMissingPast(), TTimeNENet::PlotMissingPast(), TLocClustStat::PlotNCP(), TLocClustStat::PlotNCPModul(), TLocClustStat::PlotNCPScatter(), TLocClustStat::PlotNcpTop10(), TSnap::PlotOutDegDistr(), TLocClust::PlotPhiDistr(), TLocClustStat::PlotPhiDistr(), TLocClustStat::PlotPhiInOut(), PlotRoles(), TSnap::PlotSccDistr(), TSnap::PlotShortPathDistr(), TSnap::PlotSngValDistr(), TSnap::PlotSngValRank(), TSnap::PlotSngVec(), PlotTrueAndEst(), TGnuPlot::PlotValOverTm(), TGnuPlot::PlotValV(), TLocClust::PlotVolDistr(), TSnap::PlotWccDistr(), TEnv::PrepArgs(), TUniChDb::PrintCharNames(), TSnap::PrintInfo(), TTmProfiler::PrintReport(), TLAMisc::PrintTFltV(), TLAMisc::PrintTFltVV(), TLAMisc::PrintTIntV(), TSOut::PutStr(), TFRnd::PutStr(), TEnv::PutVarVal(), TFile::Rename(), TVec< TVal, TSizeTy >::Resize(), TVecPool< TVal, TSizeTy >::Resize(), RightOf(), RightOfLast(), TGnuPlot::RunGnuPlot(), TAGMUtil::SaveBipartiteGephi(), TGHash< TDat >::SaveDetailTxt(), TNetInfBs::SaveEdgeInfo(), TSnap::SaveEdgeList(), TSnap::SaveEdgeListNet(), TTimeNENet::SaveEdgeTm(), TGnuPlot::SaveEps(), TAGMUtil::SaveGephi(), TSnap::SaveGViz(), TGraphKey::SaveGViz(), THtmlDoc::SaveHtmlToXml(), TSnap::SaveMatlabSparseMtx(), TSnap::SavePajek(), TLocClust::SavePajek(), TNetInfBs::SavePajek(), TNetInfBs::SavePlaneTextNet(), TGnuPlot::SavePng(), TTable::SaveSS(), TGnuPlot::SaveTs(), TKronMtx::SaveTxt(), TCnCom::SaveTxt(), TMAGParam< TNodeAttr >::SaveTxt(), TGStatVec::SaveTxt(), TNcpGraphsBase::SaveTxt(), TGHash< TDat >::SaveTxt(), SaveTxt(), TLocClustStat::SaveTxtInfo(), TNcpGraphsBase::SaveTxtNcpMin(), SearchCh(), SearchChBack(), TChA::SearchStr(), SearchStr(), SplitOnAllAnyCh(), SplitOnAllCh(), SplitOnCh(), SplitOnLastCh(), SplitOnNonAlNum(), SplitOnWs(), StatNotify(), TGStat::TakeStat(), TChA::TChA(), TUniCodec::TestDecodeUtf16(), TUniCodec::TestDecodeUtf8(), TUniChDb::TestFindNextWordOrSentenceBoundary(), TKroneckerLL::TestGradDescent(), TKroneckerLL::TestSamplePerm(), TUniCodec::TestUtf16(), TUniCodec::TestUtf8(), TUniChDb::TestWbFindNonIgnored(), TFIn::TFIn(), TFInOut::TFInOut(), TFOut::TFOut(), TTable::ThresholdJoinInputCorrectness(), TTimeNENet::TimeGrowth(), TMem::TMem(), TMIn::TMIn(), TNcpGraphsBase::TNcpGraphsBase(), ToTrunc(), TShMIn::TShMIn(), TSparseRowMatrix::TSparseRowMatrix(), TStr(), TVecPool< TVal, TSizeTy >::TVecPool(), TWChA::TWChA(), TZipIn::TZipIn(), TFPathNotify::UpdateSOut(), WarnNotify(), TSnap::WriteEdgeSchemaToFile(), TSnap::WriteEdgesToFile(), TSnap::WriteNodeSchemaToFile(), TSnap::WriteNodesToFile(), and TUniChDb::TSubcatHelper::~TSubcatHelper().

479 {return RStr->CStr();}
TRStr * RStr
Definition: dt.h:414
const char * CStr() const
Definition: dt.h:381

Here is the call graph for this function:

Here is the caller graph for this function:

const char* TStr::CStr ( ) const
inline

Definition at line 480 of file dt.h.

References TRStr::CStr().

480 {return RStr->CStr();}
TRStr * RStr
Definition: dt.h:414
const char * CStr() const
Definition: dt.h:381

Here is the call graph for this function:

void TStr::DelChAll ( const char &  Ch)

Definition at line 840 of file dt.cpp.

References TChA::Del(), and TChA::SearchCh().

840  {
841  TChA ChA(*this);
842  int ChN=ChA.SearchCh(Ch);
843  while (ChN!=-1){
844  ChA.Del(ChN);
845  ChN=ChA.SearchCh(Ch);
846  }
847  *this=ChA;
848 }
Definition: dt.h:201

Here is the call graph for this function:

bool TStr::DelStr ( const TStr Str)

Definition at line 863 of file dt.cpp.

References DelSubStr(), Len(), and SearchStr().

Referenced by TUrl::GetAbsFromBase().

863  {
864  int ChN=SearchStr(Str);
865  if (ChN==-1){
866  return false;
867  } else {
868  DelSubStr(ChN, ChN+Str.Len()-1);
869  return true;
870  }
871 }
int Len() const
Definition: dt.h:490
int SearchStr(const TStr &Str, const int &BChN=0) const
Definition: dt.cpp:1065
void DelSubStr(const int &BChN, const int &EChN)
Definition: dt.cpp:850

Here is the call graph for this function:

Here is the caller graph for this function:

void TStr::DelSubStr ( const int &  BChN,
const int &  EChN 
)

Definition at line 850 of file dt.cpp.

References Clr(), CStr(), TInt::GetMn(), TInt::GetMx(), and Len().

Referenced by ChangeStr(), DelStr(), TUrl::GetAbsFromBase(), and TEnv::GetIfArgPrefixBool().

850  {
851  int BChN=TInt::GetMx(_BChN, 0);
852  int EChN=TInt::GetMn(_EChN, Len()-1);
853  int Chs=Len()-(EChN-BChN+1);
854  if (Chs==0){Clr();}
855  else if (Chs<Len()){
856  char* Bf=new char[Chs+1]; strncpy(Bf, CStr(), BChN);
857  strncpy(Bf+BChN, CStr()+EChN+1, Len()-EChN-1); Bf[Chs]=0;
858  TStr Str(Bf); delete[] Bf;
859  *this=Str;
860  }
861 }
int Len() const
Definition: dt.h:490
static int GetMx(const int &Int1, const int &Int2)
Definition: dt.h:1185
void Clr()
Definition: dt.h:489
static int GetMn(const int &Int1, const int &Int2)
Definition: dt.h:1183
Definition: dt.h:412
char * CStr()
Definition: dt.h:479

Here is the call graph for this function:

Here is the caller graph for this function:

bool TStr::Empty ( ) const
inline

Definition at line 491 of file dt.h.

References TRStr::Empty().

Referenced by TGnuPlot::AddExpFit(), TGnuPlot::AddFunc(), TGnuPlot::AddLinFit(), TGnuPlot::AddLogFit(), TGnuPlot::AddPwrFit1(), TGnuPlot::AddPwrFit2(), TGnuPlot::AddPwrFit3(), TXmlObjSer::AssertXmlHd(), TGnuPlot::CreatePlotFile(), TUrl::DefFinalUrl(), TMAGAffMtx::Dump(), TKronMtx::Dump(), TCnCom::Dump(), TBigNet< TNodeData, IsDir >::Dump(), TSimpleGraph::Dump(), TDbStr::Empty(), TFile::Exists(), TDbStr::Filled(), TCesna::FindComs(), TAGMFast::FindComsByCV(), TCoda::FindComsByCV(), TUrl::GetAbs(), TUrl::GetAbsFromBase(), THttpResp::GetCookieKeyValDmPathQuV(), TSs::GetFldX(), TSs::GetFldY(), GetNrAbsFPath(), TGBlobBs::GetNrBlobBsFNm(), GetNrFExt(), TXmlLx::GetPEReference(), TXmlLx::GetReference(), TGnuPlot::GetSeriesPlotStr(), THttpLx::GetSpec(), TXmlObjSer::GetTagNm(), TXmlTok::GetTagTok(), TXmlDoc::GetTagTok(), THttpLx::GetToken(), TKroneckerLL::GradDescentConvergence(), TGStatVec::ImposeDistr(), TLocClustStat::ImposeNCP(), TUniChDb::InitSpecialCasing(), TEnv::IsEndOfRun(), TTable::IsNextK(), TUrl::IsSite(), THtmlTok::IsUrlTok(), TUniChDb::LoadTxt(), TUniChDb::LoadTxt_ProcessDecomposition(), TAGMFast::MLEGradAscent(), TCoda::MLEGradAscent(), TCesna::MLEGradAscent(), TAGMFit::MLEGradAscentGivenCAG(), TAGMFast::MLEGradAscentParallel(), TCoda::MLEGradAscentParallel(), TCesna::MLEGradAscentParallel(), TLogRegFit::MLEGradient(), TAGMFast::MLENewton(), TLogRegFit::MLENewton(), TStdNotify::OnStatus(), TStdErrNotify::OnStatus(), operator+(), TTable::Order(), TGStat::Plot(), TGStatVec::Plot(), TLocClustStat::PlotBestClustDens(), TTimeNet::PlotCCfOverTm(), TSnap::PlotClustCf(), TLocClust::PlotCutDistr(), TSnap::PlotEigValDistr(), TSnap::PlotEigValRank(), TSnap::PlotHops(), TSnap::PlotInDegDistr(), TSnap::PlotInvParticipRat(), TSnap::PlotKCoreEdges(), TSnap::PlotKCoreNodes(), TLocClustStat::PlotNCP(), TLocClustStat::PlotNCPModul(), TLocClustStat::PlotNCPScatter(), TLocClustStat::PlotNcpTop10(), TSnap::PlotOutDegDistr(), TLocClust::PlotPhiDistr(), TSnap::PlotSccDistr(), TSnap::PlotShortPathDistr(), TSnap::PlotSngValDistr(), TSnap::PlotSngValRank(), TSnap::PlotSngVec(), TLocClust::PlotVolDistr(), TSnap::PlotWccDistr(), TEnv::PrepArgs(), TSnap::PrintInfo(), PutFBaseIfEmpty(), PutFExtIfEmpty(), TGnuPlot::RunGnuPlot(), TSnap::SaveEdgeList(), TSnap::SaveEdgeListNet(), TGnuPlot::SaveEps(), TSnap::SaveGViz(), TGraphKey::SaveGViz(), THtmlDoc::SaveHtmlToXml(), TGnuPlot::SavePng(), TGnuPlot::SaveTs(), TCnCom::SaveTxt(), SaveXml(), TFFile::TFFile(), TFIn::TFIn(), TGnuPlot::TGnuPlot(), THttpResp::THttpResp(), THttpRq::THttpRq(), TMIn::TMIn(), TUrl::ToLcPath(), TPreproc::TPreproc(), TShMIn::TShMIn(), TXmlObjSerTagNm::TXmlObjSerTagNm(), TZipIn::TZipIn(), TZipOut::TZipOut(), and TXmlObjSerTagNm::~TXmlObjSerTagNm().

491 {return RStr->Empty();}
TRStr * RStr
Definition: dt.h:414
bool Empty() const
Definition: dt.h:383

Here is the call graph for this function:

Here is the caller graph for this function:

bool TStr::EqI ( const TStr Str) const
inline

Definition at line 498 of file dt.h.

References TRStr::CmpI(), and CStr().

498 {return TRStr::CmpI(CStr(), Str.CStr())==0;}
static int CmpI(const char *CStr1, const char *CStr2)
Definition: dt.cpp:699
char * CStr()
Definition: dt.h:479

Here is the call graph for this function:

TStr TStr::Fmt ( const char *  FmtStr,
  ... 
)
static

Definition at line 1599 of file dt.cpp.

References GetNullStr(), and TStr().

Referenced by TNGraphMP::AddEdge(), TNodeNet< TNodeData >::AddEdge(), TUNGraph::AddEdge(), TNEANetMP::AddEdge(), TNGraph::AddEdge(), TNodeEDatNet< TNodeData, TEdgeData >::AddEdge(), TNEGraph::AddEdge(), TBPGraph::AddEdge(), TNodeEdgeNet< TNodeData, TEdgeData >::AddEdge(), TNEANet::AddEdge(), TUndirNet::AddEdge(), TDirNet::AddEdge(), TJsonVal::AddEscapeChAFromStr(), TGnuPlot::AddExpFit(), TNEANet::AddFltVAttrDatE(), TNEANet::AddFltVAttrDatN(), TGnuPlot::AddFunc(), TNEANet::AddIntVAttrDatE(), TNEANet::AddIntVAttrDatN(), TGnuPlot::AddLinFit(), TGnuPlot::AddLogFit(), TBigNet< TNodeData, IsDir >::AddNode(), TNGraphMP::AddNode(), TNodeNet< TNodeData >::AddNode(), TUNGraph::AddNode(), TNEANetMP::AddNode(), TNGraph::AddNode(), TNodeEDatNet< TNodeData, TEdgeData >::AddNode(), TNEGraph::AddNode(), TBPGraph::AddNode(), TNodeEdgeNet< TNodeData, TEdgeData >::AddNode(), TNEANet::AddNode(), TUndirNet::AddNode(), TDirNet::AddNode(), TGnuPlot::AddPwrFit1(), TGnuPlot::AddPwrFit2(), TGnuPlot::AddPwrFit3(), TBigNet< TNodeData, IsDir >::AddUndirNode(), TNEANet::AppendFltVAttrDatE(), TNEANet::AppendFltVAttrDatN(), TNEANet::AppendIntVAttrDatE(), TNEANet::AppendIntVAttrDatN(), TKroneckerLL::ChainGelmapRubinPlot(), TZipIn::CreateZipProcess(), TZipOut::CreateZipProcess(), TMMNet::DelCrossNet(), TNGraphMP::DelEdge(), TNodeNet< TNodeData >::DelEdge(), TUNGraph::DelEdge(), TNGraph::DelEdge(), TNodeEDatNet< TNodeData, TEdgeData >::DelEdge(), TBPGraph::DelEdge(), TUndirNet::DelEdge(), TDirNet::DelEdge(), TMMNet::DelModeNet(), TUNGraph::DelNode(), TBPGraph::DelNode(), TUndirNet::DelNode(), TLinAlg::DotProduct(), TGHash< TDat >::DrawGViz(), TLocClust::DrawWhiskers(), TCodaAnalyzer::Dump2ModeCommunities(), TCoda::DumpMemberships(), TCesnaUtil::DumpNIDAttrHToNIDK(), TSsParserMP::DumpStr(), TSsParser::DumpStr(), TUnicode::EncodeUtf8(), TZipIn::FillBf(), TAGMUtil::FindComsByAGM(), TFfGGen::GenFFGraphs(), TSnap::GenRndGnm(), TSnap::GenSmallWorld(), TJsonVal::GetChAFromVal(), TZipIn::GetCmd(), TZipOut::GetCmd(), TSecTm::GetDtMdyStr(), TSecTm::GetDtStr(), TSecTm::GetDtYmdStr(), TBPGraph::GetEI(), TZipIn::GetFLen(), TFlt::GetGigaStr(), TNum< int64 >::GetHexStr(), TUInt64::GetHexStr(), TBigNet< TNodeData, IsDir >::GetInNIdV(), TSsParserMP::GetInt(), TSsParser::GetInt(), TFlt::GetKiloStr(), TFlt::GetMegaStr(), TKronMtx::GetMtxFromNm(), TMAGAffMtx::GetMtxStr(), TKronMtx::GetMtxStr(), TMemIn::GetNextLnBf(), TStdIn::GetNextLnBf(), TChAIn::GetNextLnBf(), TFInOut::GetNextLnBf(), TMIn::GetNextLnBf(), TStrIn::GetNextLnBf(), TFfGGen::GetParamStr(), TSecTm::GetStr(), TTuple< TVal, NVals >::GetStr(), TNum< int64 >::GetStr(), TInt::GetStr(), TUInt64::GetStr(), TUInt::GetStrFromIpUInt(), TXmlParser::GetTag(), TXmlParser::GetTagVal(), TGnuPlot::GetTics42(), TSecTm::GetTmMinStr(), TSecTm::GetTmSec(), TSecTm::GetTmStr(), TUInt::GetUIntFromIpStr(), TFile::GetUniqueFNm(), TSecTm::GetYmdTmStr(), TSecTm::GetYmdTmStr2(), TKroneckerLL::GradDescentConvergence(), TAGMUtil::GVizComGraph(), TSnap::TSnapDetail::GVizDoLayout(), TGStatVec::ImposeDistr(), TLocClustStat::ImposeNCP(), TGraphAnf< PGraph >::InitAnfBits(), TBigNet< TNodeData, IsDir >::IsOk(), TNGraphMP::IsOk(), TNodeNet< TNodeData >::IsOk(), TUNGraph::IsOk(), TNEANetMP::IsOk(), TNGraph::IsOk(), TNodeEDatNet< TNodeData, TEdgeData >::IsOk(), TNEGraph::IsOk(), TBPGraph::IsOk(), TNodeEdgeNet< TNodeData, TEdgeData >::IsOk(), TNEANet::IsOk(), TUndirNet::IsOk(), TDirNet::IsOk(), TSparseSVD::Lanczos(), TCesnaUtil::LoadNIDAttrHFromNIDKH(), TSs::LoadTxt(), TAGMFast::MLENewton(), TLogNotify::OnStatus(), TGStat::TCmpByVal::operator()(), TStrPool::operator=(), TVecPool< TVal, TSizeTy >::operator=(), TGLib_OLD::TVecPool< TVal >::operator=(), TLocClustStat::ParamStr(), TGStat::Plot(), TGStatVec::Plot(), PlotAutoCorrelation(), TLocClustStat::PlotBestClustDens(), TLocClustStat::PlotBoltzmanCurve(), TTimeNet::PlotCCfOverTm(), TSnap::PlotClustCf(), TKronMtx::PlotCmpGraphs(), TLocClust::PlotCutDistr(), TTimeNet::PlotEffDiam(), TTimeNENet::PlotEffDiam(), TSnap::PlotEigValDistr(), TSnap::PlotEigValRank(), TForestFire::PlotFire(), TFfGGen::PlotFireSize(), PlotGrad(), TSnap::PlotHops(), TSnap::PlotInDegDistr(), TSnap::PlotInvParticipRat(), TSnap::PlotKCoreEdges(), TSnap::PlotKCoreNodes(), TTimeNet::PlotMedianDegOverTm(), TTimeNet::PlotMissingPast(), TLocClustStat::PlotNCP(), TLocClustStat::PlotNCPModul(), TLocClustStat::PlotNCPScatter(), TLocClustStat::PlotNcpTop10(), TSnap::PlotOutDegDistr(), TLocClust::PlotPhiDistr(), TLocClustStat::PlotPhiDistr(), TLocClustStat::PlotPhiInOut(), TSnap::PlotSccDistr(), TSnap::PlotShortPathDistr(), TSnap::PlotSngValDistr(), TSnap::PlotSngValRank(), TSnap::PlotSngVec(), TGnuPlot::PlotValV(), TLocClust::PlotVolDistr(), TSnap::PlotWccDistr(), TAGMFast::Prediction(), TCoda::Prediction(), TCesna::Prediction(), TEnv::PutVarVal(), TVec< TVal, TSizeTy >::Resize(), TBigStrPool::Resize(), TStrPool::Resize(), TStrPool64::Resize(), TVecPool< TVal, TSizeTy >::Resize(), TGLib_OLD::TVecPool< TVal >::Resize(), TGnuPlot::RunGnuPlot(), TAGMFit::RunMCMC(), TNetInfBs::SaveCascades(), TNIBs::SaveCascades(), TGnuPlot::SaveEps(), TNetInfBs::SaveGroundTruth(), TNIBs::SaveGroundTruth(), TNIBs::SaveGroundTruthPajek(), TNIBs::SaveInferred(), TNIBs::SaveInferredEdges(), TNIBs::SaveInferredPajek(), TLAMisc::SaveMatlabTFltIntKdV(), TSnap::SavePajek(), TLocClust::SavePajek(), TGnuPlot::SavePng(), TNIBs::SaveSites(), THist::SaveStat(), TMAGNodeSimple::SaveTxt(), TMAGNodeBern::SaveTxt(), TMAGNodeBeta::SaveTxt(), TGStatVec::SaveTxt(), TLocClustStat::SaveTxtInfo(), TNcpGraphsBase::SaveTxtNcpMin(), TNodeEDatNet< TNodeData, TEdgeData >::SetEDat(), TNodeEdgeNet< TNodeData, TEdgeData >::SetEDat(), TNodeNet< TNodeData >::SetNDat(), TNodeEDatNet< TNodeData, TEdgeData >::SetNDat(), TNodeEdgeNet< TNodeData, TEdgeData >::SetNDat(), TKroneckerLL::TestGradDescent(), TKroneckerLL::TestSamplePerm(), TFullColMatrix::TFullColMatrix(), TTimeNENet::TimeGrowth(), TNcpGraphsBase::TNcpGraphsBase(), TStrPool::TStrPool(), TVecPool< TVal, TSizeTy >::TVecPool(), TGLib_OLD::TVecPool< TVal >::TVecPool(), TZipIn::TZipIn(), TFPathNotify::UpdateSOut(), and TStrPool::~TStrPool().

1599  {
1600  char Bf[10*1024];
1601  va_list valist;
1602  va_start(valist, FmtStr);
1603  const int RetVal=vsnprintf(Bf, 10*1024-2, FmtStr, valist);
1604  va_end(valist);
1605  return RetVal!=-1 ? TStr(Bf) : TStr::GetNullStr();
1606 }
static TStr GetNullStr()
Definition: dt.cpp:1626
Definition: dt.h:412
TStr()
Definition: dt.h:423

Here is the call graph for this function:

Here is the caller graph for this function:

TStr & TStr::FromHex ( )

Definition at line 798 of file dt.cpp.

References TRStr::Bf, TCh::GetHex(), IAssert, Len(), and RStr.

798  {
799  int StrLen=Len(); IAssert(StrLen%2==0);
800  TChA ChA; int ChN=0;
801  while (ChN<StrLen){
802  char MshCh=RStr->Bf[ChN]; ChN++;
803  char LshCh=RStr->Bf[ChN]; ChN++;
804  uchar Ch=uchar(TCh::GetHex(MshCh)*16+TCh::GetHex(LshCh));
805  ChA+=Ch;
806  }
807  *this=ChA;
808  return *this;
809 }
#define IAssert(Cond)
Definition: bd.h:262
TRStr * RStr
Definition: dt.h:414
int Len() const
Definition: dt.h:490
static int GetHex(const char &Ch)
Definition: dt.h:1072
char * Bf
Definition: dt.h:348
unsigned char uchar
Definition: bd.h:10
Definition: dt.h:201

Here is the call graph for this function:

TStr TStr::GetCap ( ) const
inline

Definition at line 505 of file dt.h.

References TStr().

505 {return TStr(*this).ToCap();}
TStr()
Definition: dt.h:423

Here is the call graph for this function:

char TStr::GetCh ( const int &  ChN) const
inline

Definition at line 486 of file dt.h.

References TRStr::GetCh().

Referenced by TSnap::CmtyEvolutionFileBatch(), TTable::DenormalizeColName(), TLxChDef::GetUcStr(), TUrlLxChDef::InclStr(), TLxChDef::IsNmStr(), IsWcMatch(), LastCh(), TTable::NormalizeColName(), and TTable::RenumberColName().

486 {return RStr->GetCh(ChN);}
TRStr * RStr
Definition: dt.h:414
char GetCh(const int &ChN) const
Definition: dt.h:388

Here is the call graph for this function:

Here is the caller graph for this function:

TStr & TStr::GetChStr ( const char &  Ch)
static

Definition at line 1551 of file dt.cpp.

References TVec< TVal, TSizeTy >::Empty(), TVec< TVal, TSizeTy >::Gen(), and TStr().

Referenced by operator=(), and TStr().

1551  {
1552  static char MnCh=char(CHAR_MIN);
1553  static char MxCh=char(CHAR_MAX);
1554  static int Chs=int(MxCh)-int(MnCh)+1;
1555  static TStrV ChStrV;
1556  if (ChStrV.Empty()){
1557  ChStrV.Gen(Chs);
1558  for (int ChN=0; ChN<Chs; ChN++){
1559  ChStrV[ChN]=TStr(char(MnCh+ChN), true);}
1560  }
1561  return ChStrV[int(Ch-MnCh)];
1562 }
bool Empty() const
Tests whether the vector is empty.
Definition: ds.h:570
void Gen(const TSizeTy &_Vals)
Constructs a vector (an array) of _Vals elements.
Definition: ds.h:523
TStr()
Definition: dt.h:423

Here is the call graph for this function:

Here is the caller graph for this function:

char* TStr::GetCStr ( ) const
inline

Definition at line 688 of file dt.h.

References CStr(), and Len().

Referenced by TMAGFitBern::SaveTxt().

688  {
689  char* Bf=new char[Len()+1]; strcpy(Bf, CStr()); return Bf;}
int Len() const
Definition: dt.h:490
char * CStr()
Definition: dt.h:479

Here is the call graph for this function:

Here is the caller graph for this function:

TStr & TStr::GetDChStr ( const char &  Ch1,
const char &  Ch2 
)
static

Definition at line 1564 of file dt.cpp.

References TVVec< TVal, TSizeTy >::At(), TVVec< TVal, TSizeTy >::Empty(), Fail, TVVec< TVal, TSizeTy >::Gen(), TCh::Mn, TStr(), and TCh::Vals.

1564  {
1565  Fail; // temporary
1566  static TStrVV DChStrVV;
1567  if (DChStrVV.Empty()){
1568  DChStrVV.Gen(TCh::Vals, TCh::Vals);
1569  for (int Ch1N=0; Ch1N<TCh::Vals; Ch1N++){
1570  for (int Ch2N=0; Ch2N<TCh::Vals; Ch2N++){
1571  DChStrVV.At(Ch1N, Ch2N)=
1572  TStr(char(TCh::Mn+Ch1N), char(TCh::Mn+Ch2N), true);
1573  }
1574  }
1575  }
1576  return DChStrVV.At(int(Ch1-TCh::Mn), int(Ch2-TCh::Mn));
1577 }
#define Fail
Definition: bd.h:238
Definition: ds.h:2223
static const char Mn
Definition: dt.h:1032
static const int Vals
Definition: dt.h:1034
TStr()
Definition: dt.h:423
void Gen(const TSizeTy &_XDim, const TSizeTy &_YDim)
Definition: ds.h:2247
bool Empty() const
Definition: ds.h:2245
const TVal & At(const TSizeTy &X, const TSizeTy &Y) const
Definition: ds.h:2256

Here is the call graph for this function:

TStr TStr::GetFBase ( ) const

Definition at line 1396 of file dt.cpp.

References CStr(), GetSubStr(), and Len().

Referenced by TEnv::PrepArgs(), PutFBaseIfEmpty(), and TFFile::TFFile().

1396  {
1397  int ThisLen=Len(); const char* ThisBf=CStr();
1398  int ChN=ThisLen-1;
1399  while ((ChN>=0)&&(ThisBf[ChN]!='/')&&(ThisBf[ChN]!='\\')){ChN--;}
1400  return GetSubStr(ChN+1, ThisLen);
1401 }
int Len() const
Definition: dt.h:490
TStr GetSubStr(const int &BChN, const int &EChN) const
Definition: dt.cpp:811
char * CStr()
Definition: dt.h:479

Here is the call graph for this function:

Here is the caller graph for this function:

TStr TStr::GetFExt ( ) const

Definition at line 1421 of file dt.cpp.

References CStr(), GetSubStr(), Len(), and TStr().

Referenced by AddToFMid(), TSnap::DrawGViz(), TZipIn::GetCmd(), TZipOut::GetCmd(), TGBlobBs::GetNrBlobBsFNm(), GetNrFNm(), GetNumFNm(), TAGMUtil::GVizComGraph(), TSnap::TSnapDetail::GVizDoLayout(), TZipIn::IsZipFNm(), TZipOut::IsZipFNm(), PutFExtIfEmpty(), TSsParser::TSsParser(), and TZipIn::TZipIn().

1421  {
1422  int ThisLen=Len(); const char* ThisBf=CStr();
1423  int ChN=ThisLen-1;
1424  while ((ChN>=0)&&(ThisBf[ChN]!='/')&&(ThisBf[ChN]!='\\')&&
1425  (ThisBf[ChN]!='.')){ChN--;}
1426  if ((ChN>=0)&&(ThisBf[ChN]=='.')){return GetSubStr(ChN, Len());}
1427  else {return TStr();}
1428 }
int Len() const
Definition: dt.h:490
TStr GetSubStr(const int &BChN, const int &EChN) const
Definition: dt.cpp:811
char * CStr()
Definition: dt.h:479
TStr()
Definition: dt.h:423

Here is the call graph for this function:

Here is the caller graph for this function:

double TStr::GetFlt ( ) const
inline

Definition at line 631 of file dt.h.

References IAssert, and IsFlt().

Referenced by TEnv::GetIfArgPrefixFlt(), TMAGNodeSimple::LoadTxt(), TMAGNodeBern::LoadTxt(), TMAGNodeBeta::LoadTxt(), and TFlt::TFlt().

631  {
632  double Val; IAssert(IsFlt(false, 0, 0, Val)); return Val;}
#define IAssert(Cond)
Definition: bd.h:262
bool IsFlt() const
Definition: dt.h:630

Here is the call graph for this function:

Here is the caller graph for this function:

double TStr::GetFlt ( const double &  DfVal) const
inline

Definition at line 633 of file dt.h.

References IsFlt().

633  {
634  double Val; if (IsFlt(false, 0, 0, Val)){return Val;} else {return DfVal;}}
bool IsFlt() const
Definition: dt.h:630

Here is the call graph for this function:

TStr TStr::GetFMid ( ) const

Definition at line 1403 of file dt.cpp.

References CStr(), GetSubStr(), and Len().

Referenced by AddToFMid(), TGraphKey::DrawGViz(), TZipOut::GetCmd(), GetNrFNm(), TMBlobBs::GetNrFPathFMid(), GetNumFNm(), PutFExt(), PutFExtIfEmpty(), TGnuPlot::SaveEps(), TGnuPlot::SavePng(), and TNcpGraphsBase::TNcpGraphsBase().

1403  {
1404  int ThisLen=Len(); const char* ThisBf=CStr();
1405  int ChN=ThisLen-1;
1406  while ((ChN>=0)&&(ThisBf[ChN]!='/')&&(ThisBf[ChN]!='\\')&&(ThisBf[ChN]!='.')){
1407  ChN--;}
1408  if (ChN<0){
1409  return *this;
1410  } else {
1411  if (ThisBf[ChN]=='.'){
1412  int EChN= --ChN;
1413  while ((ChN>=0)&&(ThisBf[ChN]!='/')&&(ThisBf[ChN]!='\\')){ChN--;}
1414  return GetSubStr(ChN+1, EChN);
1415  } else {
1416  return GetSubStr(ChN+1, ThisLen);
1417  }
1418  }
1419 }
int Len() const
Definition: dt.h:490
TStr GetSubStr(const int &BChN, const int &EChN) const
Definition: dt.cpp:811
char * CStr()
Definition: dt.h:479

Here is the call graph for this function:

Here is the caller graph for this function:

TStr TStr::GetFNmStr ( const TStr Str,
const bool &  AlNumOnlyP = true 
)
static

Definition at line 1531 of file dt.cpp.

References TChA::Len(), and TChA::PutCh().

1531  {
1532  TChA FNm=Str;
1533  for (int ChN=0; ChN<FNm.Len(); ChN++){
1534  uchar Ch=FNm[ChN];
1535  if (AlNumOnlyP){
1536  if (
1537  (('0'<=Ch)&&(Ch<='9'))||
1538  (('A'<=Ch)&&(Ch<='Z'))||
1539  (('a'<=Ch)&&(Ch<='z'))||
1540  (Ch=='-')||(Ch=='_')){}
1541  else {Ch='_';}
1542  } else {
1543  if ((Ch<=' ')||(Ch=='/')||(Ch=='\\')||(Ch==':')||(Ch=='.')){
1544  Ch='_';}
1545  }
1546  FNm.PutCh(ChN, Ch);
1547  }
1548  return FNm;
1549 }
void PutCh(const int &ChN, const char &Ch)
Definition: dt.h:278
int Len() const
Definition: dt.h:259
unsigned char uchar
Definition: bd.h:10
Definition: dt.h:201

Here is the call graph for this function:

TStr TStr::GetFPath ( ) const

Definition at line 1389 of file dt.cpp.

References CStr(), GetSubStr(), and Len().

Referenced by AddToFMid(), TUnicodeDef::GetDfFNm(), TEnv::GetExeFPath(), GetNrFNm(), TMBlobBs::GetNrFPathFMid(), GetNumFNm(), PutFBase(), PutFBaseIfEmpty(), PutFExt(), PutFExtIfEmpty(), TGnuPlot::SaveEps(), TGnuPlot::SavePng(), and TFFile::TFFile().

1389  {
1390  int ThisLen=Len(); const char* ThisBf=CStr();
1391  int ChN=ThisLen-1;
1392  while ((ChN>=0)&&(ThisBf[ChN]!='/')&&(ThisBf[ChN]!='\\')){ChN--;}
1393  return GetSubStr(0, ChN);
1394 }
int Len() const
Definition: dt.h:490
TStr GetSubStr(const int &BChN, const int &EChN) const
Definition: dt.cpp:811
char * CStr()
Definition: dt.h:479

Here is the call graph for this function:

Here is the caller graph for this function:

TStr TStr::GetFromHex ( ) const
inline

Definition at line 517 of file dt.h.

References TStr().

517 {return TStr(*this).FromHex();}
TStr()
Definition: dt.h:423

Here is the call graph for this function:

TStr TStr::GetHex ( ) const
inline

Definition at line 515 of file dt.h.

References TStr().

Referenced by TXmlLx::GetSymStr().

515 {return TStr(*this).ToHex();}
TStr()
Definition: dt.h:423

Here is the call graph for this function:

Here is the caller graph for this function:

int TStr::GetHexInt ( ) const
inline

Definition at line 614 of file dt.h.

References IAssert, and IsHexInt().

614  {
615  int Val; IAssert(IsHexInt(false, 0, 0, Val)); return Val;}
#define IAssert(Cond)
Definition: bd.h:262
bool IsHexInt() const
Definition: dt.h:613

Here is the call graph for this function:

int TStr::GetHexInt ( const int &  DfVal) const
inline

Definition at line 616 of file dt.h.

References IsHexInt().

616  {
617  int Val; if (IsHexInt(false, 0, 0, Val)){return Val;} else {return DfVal;}}
bool IsHexInt() const
Definition: dt.h:613

Here is the call graph for this function:

int64 TStr::GetHexInt64 ( ) const
inline

Definition at line 622 of file dt.h.

References IAssert, and IsHexInt64().

622  {
623  int64 Val; IAssert(IsHexInt64(false, 0, 0, Val)); return Val;}
#define IAssert(Cond)
Definition: bd.h:262
bool IsHexInt64() const
Definition: dt.h:621
long long int64
Definition: bd.h:27

Here is the call graph for this function:

int64 TStr::GetHexInt64 ( const int64 DfVal) const
inline

Definition at line 624 of file dt.h.

References IsHexInt64().

624  {
625  int64 Val; if (IsHexInt64(false, 0, 0, Val)){return Val;} else {return DfVal;}}
bool IsHexInt64() const
Definition: dt.h:621
long long int64
Definition: bd.h:27

Here is the call graph for this function:

int TStr::GetInt ( ) const
inline

Definition at line 581 of file dt.h.

References IAssertR, and IsInt().

Referenced by TSecTm::GetDtTmFromDmyStr(), TSecTm::GetDtTmFromHmsStr(), TSecTm::GetDtTmFromMdyHmsPmStr(), TSecTm::GetDtTmFromMdyStr(), TSecTm::GetDtTmFromYmdHmsStr(), TUrlLx::GetHostPort(), TEnv::GetIfArgPrefixInt(), TTm::GetTmFromWebLogDateTimeStr(), TTm::GetTmFromWebLogTimeStr(), TTimeNet::LoadAmazon(), TCesnaUtil::LoadNIDAttrHFromNIDKH(), TTimeNet::LoadPatents(), and THttpRq::ParseHttpRq().

581 {int Val; IAssertR(IsInt(false, 0, 0, Val), *this); return Val;}
#define IAssertR(Cond, Reason)
Definition: bd.h:265
bool IsInt() const
Definition: dt.h:580

Here is the call graph for this function:

Here is the caller graph for this function:

int TStr::GetInt ( const int &  DfVal) const
inline

Definition at line 582 of file dt.h.

References IsInt().

582  {
583  int Val; if (IsInt(false, 0, 0, Val)){return Val;} else {return DfVal;}}
bool IsInt() const
Definition: dt.h:580

Here is the call graph for this function:

int64 TStr::GetInt64 ( ) const
inline

Definition at line 597 of file dt.h.

References IAssert, and IsInt64().

597  {
598  int64 Val; IAssert(IsInt64(false, 0, 0, Val)); return Val;}
#define IAssert(Cond)
Definition: bd.h:262
bool IsInt64() const
Definition: dt.h:596
long long int64
Definition: bd.h:27

Here is the call graph for this function:

int64 TStr::GetInt64 ( const int64 DfVal) const
inline

Definition at line 599 of file dt.h.

References IsInt64().

599  {
600  int64 Val; if (IsInt64(false, 0, 0, Val)){return Val;} else {return DfVal;}}
bool IsInt64() const
Definition: dt.h:596
long long int64
Definition: bd.h:27

Here is the call graph for this function:

TStr TStr::GetLc ( ) const
inline

Definition at line 502 of file dt.h.

References TStr().

Referenced by TUrl::DefFinalUrl(), TUrl::GetAbsFromBase(), TZipIn::GetCmd(), TZipOut::GetCmd(), TTmInfo::GetDayOfWeekN(), TTmInfo::GetMonthN(), TSs::GetSsFmtFromStr(), TXmlLx::GetSym(), TUrl::GetTopDownDocNm(), TUnicode::GetUtf8CaseFolded(), TUrl::IsAbs(), TUnicode::NormalizeCodecName(), ParseMotifType(), and MotifCluster::ParseMotifType().

502 {return TStr(*this).ToLc();}
TStr()
Definition: dt.h:423

Here is the call graph for this function:

Here is the caller graph for this function:

int TStr::GetMemUsed ( ) const
inline

Definition at line 475 of file dt.h.

References TRStr::GetMemUsed().

475 {return int(sizeof(TRStr*)+RStr->GetMemUsed());}
TRStr * RStr
Definition: dt.h:414
int GetMemUsed() const
Definition: dt.h:376
Definition: dt.h:346

Here is the call graph for this function:

TStr TStr::GetNrAbsFPath ( const TStr FPath,
const TStr BaseFPath = TStr() 
)
static

Definition at line 1471 of file dt.cpp.

References ChangeStrAll(), Empty(), TDir::GetCurDir(), GetNrFPath(), IAssert, and IsAbsFPath().

1471  {
1472  TStr NrBaseFPath;
1473  if (BaseFPath.Empty()){
1474  NrBaseFPath=GetNrFPath(TDir::GetCurDir());
1475  } else {
1476  NrBaseFPath=GetNrFPath(BaseFPath);
1477  }
1478  IAssert(IsAbsFPath(NrBaseFPath));
1479  TStr NrFPath=GetNrFPath(FPath);
1480  TStr NrAbsFPath;
1481  if (IsAbsFPath(NrFPath)){
1482  NrAbsFPath=NrFPath;
1483  } else {
1484  NrAbsFPath=GetNrFPath(NrBaseFPath+NrFPath);
1485  }
1486  NrAbsFPath.ChangeStrAll("/./", "/");
1487  NrAbsFPath.ChangeStrAll("\\.\\", "\\");
1488  return NrAbsFPath;
1489 }
#define IAssert(Cond)
Definition: bd.h:262
static TStr GetCurDir()
Definition: xfl.cpp:233
int ChangeStrAll(const TStr &SrcStr, const TStr &DstStr, const bool &FromStartP=false)
Definition: dt.cpp:1141
static TStr GetNrFPath(const TStr &FPath)
Definition: dt.cpp:1430
Definition: dt.h:412
bool Empty() const
Definition: dt.h:491
static bool IsAbsFPath(const TStr &FPath)
Definition: dt.cpp:1491

Here is the call graph for this function:

TStr TStr::GetNrFExt ( const TStr FExt)
static

Definition at line 1455 of file dt.cpp.

References Empty(), and TStr().

Referenced by GetNrFNm(), and TFFile::TFFile().

1455  {
1456  if (FExt.Empty()||(FExt[0]=='.')){return FExt;}
1457  else {return TStr(".")+FExt;}
1458 }
bool Empty() const
Definition: dt.h:491
TStr()
Definition: dt.h:423

Here is the call graph for this function:

Here is the caller graph for this function:

TStr TStr::GetNrFMid ( const TStr FMid)
static

Definition at line 1445 of file dt.cpp.

References TCh::IsAlNum(), and Len().

Referenced by TMBlobBs::GetNrFPathFMid().

1445  {
1446  TChA NrFMid;
1447  int FMidLen=FMid.Len();
1448  for (int ChN=0; ChN<FMidLen; ChN++){
1449  char Ch=FMid[ChN];
1450  if (TCh::IsAlNum(Ch)){NrFMid+=Ch;} else {NrFMid+='_';}
1451  }
1452  return NrFMid;
1453 }
int Len() const
Definition: dt.h:490
Definition: dt.h:201
static bool IsAlNum(const char &Ch)
Definition: dt.h:1068

Here is the call graph for this function:

Here is the caller graph for this function:

TStr TStr::GetNrFNm ( const TStr FNm)
static

Definition at line 1467 of file dt.cpp.

References GetFExt(), GetFMid(), GetFPath(), GetNrFExt(), and GetNrFPath().

1467  {
1468  return GetNrFPath(FNm.GetFPath())+FNm.GetFMid()+GetNrFExt(FNm.GetFExt());
1469 }
TStr GetFMid() const
Definition: dt.cpp:1403
TStr GetFPath() const
Definition: dt.cpp:1389
TStr GetFExt() const
Definition: dt.cpp:1421
static TStr GetNrFPath(const TStr &FPath)
Definition: dt.cpp:1430
static TStr GetNrFExt(const TStr &FExt)
Definition: dt.cpp:1455

Here is the call graph for this function:

TStr TStr::GetNrFPath ( const TStr FPath)
static

Definition at line 1430 of file dt.cpp.

References ChangeCh(), and Len().

Referenced by TDir::GetCurDir(), TDir::GetExeDir(), GetNrAbsFPath(), GetNrFNm(), TMBlobBs::GetNrFPathFMid(), and TFFile::TFFile().

1430  {
1431  TChA NrFPath(FPath.Len()+4); NrFPath+=FPath;
1432  NrFPath.ChangeCh('\\', '/');
1433  if (NrFPath.Empty()){NrFPath="./";}
1434  if ((NrFPath.Len()>=2)&&isalpha(NrFPath[0])&&(NrFPath[1]==':')){
1435  if (NrFPath.Len()==2){NrFPath+="./";}
1436  if ((NrFPath[2]!='.')&&(NrFPath[2]!='/')){NrFPath.Ins(2, "./");}
1437  if (NrFPath[NrFPath.Len()-1]!='/'){NrFPath+="/";}
1438  } else {
1439  if ((NrFPath[0]!='.')&&(NrFPath[0]!='/')){NrFPath.Ins(0, "./");}
1440  if (NrFPath[NrFPath.Len()-1]!='/'){NrFPath+="/";}
1441  }
1442  return NrFPath;
1443 }
int Len() const
Definition: dt.h:490
Definition: dt.h:201
int ChangeCh(const char &SrcCh, const char &DstCh, const int &BChN=0)
Definition: dt.cpp:1107

Here is the call graph for this function:

Here is the caller graph for this function:

TStr TStr::GetNrNumFExt ( const int &  FExtN)
static

Definition at line 1460 of file dt.cpp.

References TInt::GetStr(), Len(), and TStr().

Referenced by TMBlobBs::GetSegFNm().

1460  {
1461  TStr FExtNStr=TInt::GetStr(FExtN);
1462  while (FExtNStr.Len()<3){
1463  FExtNStr=TStr("0")+FExtNStr;}
1464  return FExtNStr;
1465 }
TStr GetStr() const
Definition: dt.h:1200
int Len() const
Definition: dt.h:490
Definition: dt.h:412
TStr()
Definition: dt.h:423

Here is the call graph for this function:

Here is the caller graph for this function: