SNAP Library, User Reference  2012-10-02 12:56:23
SNAP, a general purpose network analysis and graph mining library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
TStr Class Reference

Inherited by TTypeNm< Type >.

List of all members.

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
TStr & operator= (const TStr &Str)
TStr & operator= (const TChA &ChA)
TStr & operator= (const char *CStr)
TStr & operator= (const char &Ch)
TStr & operator+= (const TStr &Str)
TStr & operator+= (const char *CStr)
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
TStr & ToUc ()
TStr GetUc () const
int CmpI (const TStr &Str) const
bool EqI (const TStr &Str) const
bool IsLc () const
TStr & ToLc ()
TStr GetLc () const
TStr & ToCap ()
TStr GetCap () const
TStr & ToTrunc ()
TStr GetTrunc () const
TStr & ConvUsFromYuAscii ()
TStr GetUsFromYuAscii () const
TStr & ToHex ()
TStr GetHex () const
TStr & FromHex ()
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 TStr & GetChStr (const char &Ch)
static TStr & GetDChStr (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 ()

Friends

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

Constructor & Destructor Documentation

TStr::TStr ( ) [inline]
TStr::TStr ( const TStr &  Str) [inline]
TStr::TStr ( const TChA &  ChA) [inline]
TStr::TStr ( const TSStr &  SStr) [inline]
TStr::TStr ( const char *  CStr) [inline]
TStr::TStr ( const char &  Ch) [inline, explicit]
TStr::TStr ( const TMem &  Mem) [inline]
TStr::TStr ( const PSIn &  SIn) [inline, explicit]
TStr::~TStr ( ) [inline]
TStr::TStr ( TSIn &  SIn,
const bool &  IsSmall = false 
) [inline, explicit]

Member Function Documentation

TStr TStr::AddToFMid ( const TStr &  FNm,
const TStr &  ExtFMid 
) [static]
int TStr::ChangeCh ( const char &  SrcCh,
const char &  DstCh,
const int &  BChN = 0 
)
int TStr::ChangeChAll ( const char &  SrcCh,
const char &  DstCh 
)
int TStr::ChangeStr ( const TStr &  SrcStr,
const TStr &  DstStr,
const int &  BChN = 0 
)
int TStr::ChangeStrAll ( const TStr &  SrcStr,
const TStr &  DstStr,
const bool &  FromStartP = false 
)
void TStr::Clr ( ) [inline]
int TStr::CmpI ( const TStr &  Str) const [inline]
int TStr::CountCh ( const char &  Ch,
const int &  BChN = 0 
) const
char* TStr::CStr ( ) [inline]
const char* TStr::CStr ( ) const [inline]
void TStr::DelChAll ( const char &  Ch)
bool TStr::DelStr ( const TStr &  Str)
void TStr::DelSubStr ( const int &  BChN,
const int &  EChN 
)
bool TStr::Empty ( ) const [inline]
bool TStr::EqI ( const TStr &  Str) const [inline]
TStr TStr::Fmt ( const char *  FmtStr,
  ... 
) [static]
TStr TStr::GetCap ( ) const [inline]
char TStr::GetCh ( const int &  ChN) const [inline]
TStr & TStr::GetChStr ( const char &  Ch) [static]
char* TStr::GetCStr ( ) const [inline]
TStr & TStr::GetDChStr ( const char &  Ch1,
const char &  Ch2 
) [static]
TStr TStr::GetFBase ( ) const
TStr TStr::GetFExt ( ) const
double TStr::GetFlt ( ) const [inline]
double TStr::GetFlt ( const double &  DfVal) const [inline]
TStr TStr::GetFMid ( ) const
TStr TStr::GetFNmStr ( const TStr &  Str,
const bool &  AlNumOnlyP = true 
) [static]
TStr TStr::GetFPath ( ) const
TStr TStr::GetFromHex ( ) const [inline]
TStr TStr::GetHex ( ) const [inline]
int TStr::GetHexInt ( ) const [inline]
int TStr::GetHexInt ( const int &  DfVal) const [inline]
int64 TStr::GetHexInt64 ( ) const [inline]
int64 TStr::GetHexInt64 ( const int64 &  DfVal) const [inline]
int TStr::GetInt ( ) const [inline]
int TStr::GetInt ( const int &  DfVal) const [inline]
int64 TStr::GetInt64 ( ) const [inline]
int64 TStr::GetInt64 ( const int64 &  DfVal) const [inline]
TStr TStr::GetLc ( ) const [inline]
int TStr::GetMemUsed ( ) const [inline]
TStr TStr::GetNrAbsFPath ( const TStr &  FPath,
const TStr &  BaseFPath = TStr() 
) [static]
TStr TStr::GetNrFExt ( const TStr &  FExt) [static]
TStr TStr::GetNrFMid ( const TStr &  FMid) [static]
TStr TStr::GetNrFNm ( const TStr &  FNm) [static]
TStr TStr::GetNrFPath ( const TStr &  FPath) [static]
TStr TStr::GetNrNumFExt ( const int &  FExtN) [static]
TStr TStr::GetNullStr ( ) [static]
TStr TStr::GetNumFNm ( const TStr &  FNm,
const int &  Num 
) [static]
int TStr::GetPrimHashCd ( ) const [inline]
int TStr::GetSecHashCd ( ) const [inline]
TStr TStr::GetSpaceStr ( const int &  Spaces) [static]
TStr TStr::GetStr ( ) const [inline]
TStr TStr::GetStr ( const TStr &  Str,
const char *  FmtStr 
) [static]
static TStr TStr::GetStr ( const TStr &  Str,
const TStr &  FmtStr 
) [inline, static]
TStr TStr::GetStr ( const TStrV &  StrV,
const TStr &  DelimiterStr 
) [static]
TStr TStr::GetSubStr ( const int &  BChN,
const int &  EChN 
) const
TStr TStr::GetSubStr ( const int &  BChN) const [inline]
TStr TStr::GetTrunc ( ) const [inline]
TStr TStr::GetUc ( ) const [inline]
uint TStr::GetUInt ( ) const [inline]
uint TStr::GetUInt ( const uint &  DfVal) const [inline]
uint64 TStr::GetUInt64 ( ) const [inline]
uint64 TStr::GetUInt64 ( const uint64 &  DfVal) const [inline]
TStr TStr::GetUsFromYuAscii ( ) const [inline]
TStr TStr::GetWcMatch ( const TStr &  WcStr,
const int &  StarStrN = 0 
) const
void TStr::InsStr ( const int &  BChN,
const TStr &  Str 
)
bool TStr::IsAbsFPath ( const TStr &  FPath) [static]
bool TStr::IsBool ( bool &  Val) const
bool TStr::IsChIn ( const char &  Ch) const [inline]
bool TStr::IsFlt ( const bool &  Check,
const double &  MnVal,
const double &  MxVal,
double &  Val,
const char &  DecDelimCh = '.' 
) const
bool TStr::IsFlt ( double &  Val) const [inline]
bool TStr::IsFlt ( ) const [inline]
bool TStr::IsHexInt ( const bool &  Check,
const int &  MnVal,
const int &  MxVal,
int &  Val 
) const
bool TStr::IsHexInt ( int &  Val) const [inline]
bool TStr::IsHexInt ( ) const [inline]
bool TStr::IsHexInt64 ( const bool &  Check,
const int64 &  MnVal,
const int64 &  MxVal,
int64 &  Val 
) const
bool TStr::IsHexInt64 ( int64 &  Val) const [inline]
bool TStr::IsHexInt64 ( ) const [inline]
bool TStr::IsInt ( const bool &  Check,
const int &  MnVal,
const int &  MxVal,
int &  Val 
) const
bool TStr::IsInt ( int &  Val) const [inline]
bool TStr::IsInt ( ) const [inline]
bool TStr::IsInt64 ( const bool &  Check,
const int64 &  MnVal,
const int64 &  MxVal,
int64 &  Val 
) const
bool TStr::IsInt64 ( int64 &  Val) const [inline]
bool TStr::IsInt64 ( ) const [inline]
bool TStr::IsLc ( ) const [inline]
bool TStr::IsPrefix ( const char *  Str) const
bool TStr::IsPrefix ( const TStr &  Str) const [inline]
bool TStr::IsStrIn ( const TStr &  Str) const [inline]
bool TStr::IsSuffix ( const char *  Str) const
bool TStr::IsSuffix ( const TStr &  Str) const [inline]
bool TStr::IsUc ( ) const [inline]
bool TStr::IsUInt ( const bool &  Check,
const uint &  MnVal,
const uint &  MxVal,
uint &  Val 
) const
bool TStr::IsUInt ( uint &  Val) const [inline]
bool TStr::IsUInt ( ) const [inline]
bool TStr::IsUInt64 ( const bool &  Check,
const uint64 &  MnVal,
const uint64 &  MxVal,
uint64 &  Val 
) const
bool TStr::IsUInt64 ( uint64 &  Val) const [inline]
bool TStr::IsUInt64 ( ) const [inline]
bool TStr::IsWcMatch ( const int &  StrBChN,
const TStr &  WcStr,
const int &  WcStrBChN,
TStrV &  StarStrV,
const char &  StarCh = '*',
const char &  QuestCh = '?' 
) const
bool TStr::IsWcMatch ( const TStr &  WcStr,
TStrV &  StarStrV,
const char &  StarCh = '*',
const char &  QuestCh = '?' 
) const
bool TStr::IsWcMatch ( const TStr &  WcStr,
const char &  StarCh,
const char &  QuestCh 
) const
bool TStr::IsWcMatch ( const TStr &  WcStr,
const int &  StarStrN,
TStr &  StarStr 
) const
bool TStr::IsWcMatch ( const TStr &  WcStr) const
bool TStr::IsWord ( const bool &  WsPrefixP = true,
const bool &  FirstUcAllowedP = true 
) const
bool TStr::IsWs ( ) const
char TStr::LastCh ( ) const [inline]
TStr TStr::Left ( const int &  EChN) const [inline]
TStr TStr::LeftOf ( const char &  SplitCh) const
TStr TStr::LeftOfLast ( const char &  SplitCh) const
int TStr::Len ( ) const [inline]
void TStr::Load ( TSIn &  SIn,
const bool &  IsSmall = false 
) [inline]
static TStr TStr::LoadTxt ( const PSIn &  SIn) [inline, static]
static TStr TStr::LoadTxt ( const TStr &  FNm) [inline, static]
void TStr::LoadXml ( const PXmlTok &  XmlTok,
const TStr &  Nm 
)
TStr TStr::Mid ( const int &  BChN,
const int &  Chs 
) const [inline]
TStr TStr::Mid ( const int &  BChN) const [inline]
static TStr TStr::MkClone ( const TStr &  Str) [inline, static]
bool TStr::operator!= ( const char *  CStr) const [inline]
char* TStr::operator() ( ) [inline]
const char* TStr::operator() ( ) const [inline]
TStr TStr::operator() ( const int &  BChN,
const int &  EChNP1 
) const [inline]
TStr& TStr::operator+= ( const TStr &  Str) [inline]
TStr& TStr::operator+= ( const char *  CStr) [inline]
bool TStr::operator< ( const TStr &  Str) const [inline]
TStr& TStr::operator= ( const TStr &  Str) [inline]
TStr& TStr::operator= ( const TChA &  ChA) [inline]
TStr& TStr::operator= ( const char *  CStr) [inline]
TStr& TStr::operator= ( const char &  Ch) [inline]
bool TStr::operator== ( const TStr &  Str) const [inline]
bool TStr::operator== ( const char *  CStr) const [inline]
char TStr::operator[] ( const int &  ChN) const [inline]
void TStr::PutCh ( const int &  ChN,
const char &  Ch 
) [inline]
TStr TStr::PutFBase ( const TStr &  FNm,
const TStr &  FBase 
) [static]
TStr TStr::PutFBaseIfEmpty ( const TStr &  FNm,
const TStr &  FBase 
) [static]
TStr TStr::PutFExt ( const TStr &  FNm,
const TStr &  FExt 
) [static]
TStr TStr::PutFExtIfEmpty ( const TStr &  FNm,
const TStr &  FExt 
) [static]
TStr TStr::Reverse ( ) const [inline]
TStr TStr::Right ( const int &  BChN) const [inline]
TStr TStr::RightOf ( const char &  SplitCh) const
TStr TStr::RightOfLast ( const char &  SplitCh) const
void TStr::Save ( TSOut &  SOut,
const bool &  IsSmall = false 
) const [inline]
void TStr::SaveTxt ( const PSOut &  SOut) const [inline]
void TStr::SaveTxt ( const TStr &  FNm) const [inline]
void TStr::SaveXml ( TSOut &  SOut,
const TStr &  Nm 
) const
int TStr::SearchCh ( const char &  Ch,
const int &  BChN = 0 
) const
int TStr::SearchChBack ( const char &  Ch,
int  BChN = -1 
) const
int TStr::SearchStr ( const TStr &  Str,
const int &  BChN = 0 
) const
TStr TStr::Slice ( int  BChN,
int  EChNP1 
) const [inline]
void TStr::SplitOnAllAnyCh ( const TStr &  SplitChStr,
TStrV &  StrV,
const bool &  SkipEmpty = true 
) const
void TStr::SplitOnAllCh ( const char &  SplitCh,
TStrV &  StrV,
const bool &  SkipEmpty = true 
) const
void TStr::SplitOnCh ( TStr &  LStr,
const char &  SplitCh,
TStr &  RStr 
) const
void TStr::SplitOnLastCh ( TStr &  LStr,
const char &  SplitCh,
TStr &  RStr 
) const
void TStr::SplitOnNonAlNum ( TStrV &  StrV) const
void TStr::SplitOnStr ( const TStr &  SplitStr,
TStrV &  StrV 
) const
void TStr::SplitOnStr ( TStr &  LeftStr,
const TStr &  MidStr,
TStr &  RightStr 
) const
void TStr::SplitOnWs ( TStrV &  StrV) const

Friends And Related Function Documentation

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

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