17#define KV__TOBJSTRING_TO_INT(arr,index,var) \
20 KVString _temp_string_ = ((TObjString *) arr->At(index))->String(); \
21 if(_temp_string_.IsDigit()) var = _temp_string_.Atoi(); else var = 0; \
77 mutable std::unique_ptr<TObjArray>
kObjArr;
97 virtual ~ KVString() {}
99#ifdef __WITHOUT_TSTRING_TOKENIZE
102#ifdef __WITH_KVSTRING_ISDIGIT
105#ifdef __WITH_KVSTRING_ISFLOAT
108#ifdef __WITH_KVSTRING_ATOI
111#ifdef __WITH_KVSTRING_ATOF
114#ifdef __WITH_KVSTRING_REMOVE
118 return (
KVString&)(TString::Remove(pos));
141#ifdef __WITH_KVSTRING_ISWHITESPACE
144#ifdef __WITH_KVSTRING_ITOA
172 Form(
"%s", s.Data());
179 Form(
"%s", s.Data());
#define ClassDef(name, id)
Extension of ROOT TString class which allows backwards compatibility with ROOT v3....
void Begin(TString delim) const
std::unique_ptr< TObjArray > kObjArr
used by Next() to iterate over list
void RBegin(TString delim) const
void RemoveAllExtraWhiteSpace()
KVString Next(Bool_t strip_whitespace=kFALSE) const
virtual Int_t Sscanf(const Char_t *fmt,...)
static KVString ULLtoa(ULong64_t value, Int_t base)
static KVString LLtoa(Long64_t value, Int_t base)
Bool_t fEndList
used by Next() & End() to iterate over list
void RandomLetterSequence(Int_t length)
KVString & operator=(const KVString &s)
std::vector< KVString > Vectorize(TString delim, Bool_t strip_whitespace=kFALSE)
virtual KVString & Substitute(const Char_t c1, const Char_t c2)
Replace every occurence of 'c1' with 'c2'.
KVString & FindCommonCharacters(const TCollection *, const char bug=' *')
static KVString BaseConvert(const KVString &s_in, Int_t base_in, Int_t base_out)
static KVString UItoa(UInt_t value, Int_t base)
virtual Bool_t Match(TString pattern)
Int_t GetNValues(TString delim) const
static KVString Itoa(Int_t value, Int_t base)
KVString(const KVString &s)
KVString(const Char_t *s)
KVString RNext(Bool_t strip_whitespace=kFALSE) const
Int_t fIterIndex
used by Next() to iterate over list
KVString & FindCommonTitleCharacters(const TCollection *, const char bug=' *')
KVString StripAllExtraWhiteSpace() const
void Capitalize()
Change first character of string from lower to upper case.
KVString(const TString &s)
TObjArray * Tokenize(const TString &delim) const
Bool_t IsInBaseN(Int_t base) const
Bool_t IsWhitespace() const
void Form(const char *fmt,...)
TString & Remove(EStripType s, char c)
unsigned long long ULong64_t