|
| TGHotString (const char *s) |
| Create a hot string.
|
|
void | Draw (Drawable_t id, GContext_t gc, Int_t x, Int_t y) override |
| Draw a hot string and underline the hot character.
|
|
void | DrawWrapped (Drawable_t id, GContext_t gc, Int_t x, Int_t y, UInt_t w, FontStruct_t font) override |
| Draw a hot string in a column with width w.
|
|
Int_t | GetHotChar () const |
|
Int_t | GetHotPos () const |
|
TClass * | IsA () const override |
|
void | Streamer (TBuffer &) override |
| Stream a string object.
|
|
void | StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b) |
|
| TGString () |
|
| TGString (const char *s) |
|
| TGString (const TGString *s) |
| constructor
|
|
| TGString (Int_t number) |
|
| ~TGString () override |
|
Int_t | GetLength () const |
|
virtual Int_t | GetLines (FontStruct_t font, UInt_t w) |
| Get number of lines of width w the string would take using a certain font.
|
|
const char * | GetString () const |
|
TClass * | IsA () const override |
|
virtual void | SetString (const char *s) |
|
void | Streamer (TBuffer &) override |
| Stream a string object.
|
|
void | StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b) |
|
| TString () |
| TString default ctor.
|
|
| TString (char c) |
| Initialize a string with a single character.
|
|
| TString (char c, Ssiz_t s) |
| Initialize the first n locations of a TString with character c.
|
|
| TString (const char *s) |
| Create TString and initialize it with string cs.
|
|
| TString (const char *s, Ssiz_t n) |
| Create TString and initialize it with the first n characters of cs.
|
|
| TString (const std::string &s) |
| Create TString and initialize it with string cs.
|
|
| TString (const std::string_view &sub) |
| Copy a std::string_view in a TString.
|
|
| TString (const TString &s) |
| Copy constructor.
|
|
| TString (const TSubString &sub) |
| Copy a TSubString in a TString.
|
|
| TString (Ssiz_t ic) |
| Create TString able to contain ic characters.
|
|
| TString (TString &&s) noexcept |
| Move constructor.
|
|
virtual | ~TString () |
| Delete a TString.
|
|
TString & | Append (char c, Ssiz_t rep=1) |
| Append character c rep times to string.
|
|
TString & | Append (const char *cs) |
|
TString & | Append (const char *cs, Ssiz_t n) |
|
TString & | Append (const TString &s) |
|
TString & | Append (const TString &s, Ssiz_t n) |
|
Double_t | Atof () const |
| Return floating-point value contained in string.
|
|
Int_t | Atoi () const |
| Return integer value of string.
|
|
Long64_t | Atoll () const |
| Return long long value of string.
|
|
Bool_t | BeginsWith (const char *s, ECaseCompare cmp=kExact) const |
|
Bool_t | BeginsWith (const TString &pat, ECaseCompare cmp=kExact) const |
|
Ssiz_t | Capacity () const |
|
Ssiz_t | Capacity (Ssiz_t n) |
| Return string capacity.
|
|
TString & | Chop () |
|
void | Clear () |
| Clear string without changing its capacity.
|
|
int | CompareTo (const char *cs, ECaseCompare cmp=kExact) const |
| Compare a string to char *cs2.
|
|
int | CompareTo (const TString &st, ECaseCompare cmp=kExact) const |
| Compare a string to another string.
|
|
Bool_t | Contains (const char *pat, ECaseCompare cmp=kExact) const |
|
Bool_t | Contains (const TRegexp &pat) const |
|
Bool_t | Contains (const TString &pat, ECaseCompare cmp=kExact) const |
|
Bool_t | Contains (TPRegexp &pat) const |
|
TString | Copy () const |
| Copy a string.
|
|
Int_t | CountChar (Int_t c) const |
| Return number of times character c occurs in the string.
|
|
const char * | Data () const |
|
Bool_t | EndsWith (const char *pat, ECaseCompare cmp=kExact) const |
| Return true if string ends with the specified string.
|
|
Bool_t | EqualTo (const char *cs, ECaseCompare cmp=kExact) const |
|
Bool_t | EqualTo (const TString &st, ECaseCompare cmp=kExact) const |
|
virtual void | FillBuffer (char *&buffer) const |
| Copy string into I/O buffer.
|
|
Ssiz_t | First (char c) const |
| Find first occurrence of a character c.
|
|
Ssiz_t | First (const char *cs) const |
| Find first occurrence of a character in cs.
|
|
void | Form (const char *fmt,...) |
| Formats a string using a printf style format descriptor.
|
|
Bool_t | Gets (FILE *fp, Bool_t chop=kTRUE) |
| Read one line from the stream, including the \n , or until EOF.
|
|
UInt_t | Hash (ECaseCompare cmp=kExact) const |
| Return hash value.
|
|
Ssiz_t | Index (const char *pat, Ssiz_t i=0, ECaseCompare cmp=kExact) const |
|
Ssiz_t | Index (const char *pat, Ssiz_t patlen, Ssiz_t i, ECaseCompare cmp) const |
| Search for a string in the TString.
|
|
Ssiz_t | Index (const TRegexp &pat, Ssiz_t *ext, Ssiz_t i=0) const |
| Find the first occurrence of the regexp in string and return the position, or -1 if there is no match.
|
|
Ssiz_t | Index (const TRegexp &pat, Ssiz_t i=0) const |
| Find the first occurrence of the regexp in string and return the position, or -1 if there is no match.
|
|
Ssiz_t | Index (const TString &s, Ssiz_t i=0, ECaseCompare cmp=kExact) const |
|
Ssiz_t | Index (const TString &s, Ssiz_t patlen, Ssiz_t i, ECaseCompare cmp) const |
|
Ssiz_t | Index (TPRegexp &pat, Ssiz_t *ext, Ssiz_t i=0) const |
| Find the first occurrence of the regexp in string and return the position.
|
|
Ssiz_t | Index (TPRegexp &pat, Ssiz_t i=0) const |
| Find the first occurrence of the regexp in string and return the position.
|
|
TString & | Insert (Ssiz_t pos, const char *s) |
|
TString & | Insert (Ssiz_t pos, const char *s, Ssiz_t extent) |
|
TString & | Insert (Ssiz_t pos, const TString &s) |
|
TString & | Insert (Ssiz_t pos, const TString &s, Ssiz_t extent) |
|
Bool_t | IsAlnum () const |
| Returns true if all characters in string are alphanumeric.
|
|
Bool_t | IsAlpha () const |
| Returns true if all characters in string are alphabetic.
|
|
Bool_t | IsAscii () const |
| Returns true if all characters in string are ascii.
|
|
Bool_t | IsBin () const |
| Returns true if all characters in string are binary digits (0,1).
|
|
Bool_t | IsDec () const |
| Returns true if all characters in string are decimal digits (0-9).
|
|
Bool_t | IsDigit () const |
| Returns true if all characters in string are digits (0-9) or white spaces, i.e.
|
|
Bool_t | IsFloat () const |
| Returns kTRUE if string contains a floating point or integer number.
|
|
Bool_t | IsHex () const |
| Returns true if all characters in string are hexadecimal digits (0-9,a-f,A-F).
|
|
Bool_t | IsInBaseN (Int_t base) const |
| Returns true if all characters in string are expressed in the base specified (range=2-36), i.e.
|
|
Bool_t | IsNull () const |
|
Bool_t | IsOct () const |
| Returns true if all characters in string are octal digits (0-7).
|
|
Bool_t | IsWhitespace () const |
|
Ssiz_t | Last (char c) const |
| Find last occurrence of a character c.
|
|
Ssiz_t | Length () const |
|
Bool_t | MaybeRegexp () const |
| Returns true if string contains one of the regexp characters "^$.[]*+?".
|
|
Bool_t | MaybeWildcard () const |
| Returns true if string contains one of the wildcard characters "[]*?".
|
|
TString | MD5 () const |
| Return the MD5 digest for this string, in a string representation.
|
|
| operator const char * () const |
|
| operator ROOT::Internal::TStringView () const |
|
TSubString | operator() (const TRegexp &re) const |
| Return the substring found by applying the regexp.
|
|
TSubString | operator() (const TRegexp &re, Ssiz_t start) const |
| Return the substring found by applying the regexp starting at start.
|
|
char & | operator() (Ssiz_t i) |
|
char | operator() (Ssiz_t i) const |
|
TSubString | operator() (Ssiz_t start, Ssiz_t len) const |
| Return sub-string of string starting at start with length len.
|
|
TSubString | operator() (TPRegexp &re) const |
| Return the substring found by applying the regexp.
|
|
TSubString | operator() (TPRegexp &re, Ssiz_t start) const |
| Return the substring found by applying the regexp starting at start.
|
|
TString & | operator+= (char c) |
|
TString & | operator+= (const char *s) |
|
TString & | operator+= (const TString &s) |
|
template<class T > |
std::enable_if< ROOT::TypeTraits::IsFloatNumeral< T >::value, TString >::type & | operator+= (T f) |
|
template<class T > |
std::enable_if< ROOT::TypeTraits::IsSignedNumeral< T >::value, TString >::type & | operator+= (T i) |
|
template<class T > |
std::enable_if< ROOT::TypeTraits::IsUnsignedNumeral< T >::value, TString >::type & | operator+= (T u) |
|
TString & | operator= (char s) |
| Assign character c to TString.
|
|
TString & | operator= (const char *s) |
| Assign string cs to TString.
|
|
TString & | operator= (const std::string &s) |
| Assign std::string s to TString.
|
|
TString & | operator= (const std::string_view &s) |
| Assign std::string s to TString.
|
|
TString & | operator= (const TString &s) |
| Assignment operator.
|
|
TString & | operator= (const TSubString &s) |
| Assign a TSubString substr to TString.
|
|
TString & | operator= (TString &&s) noexcept |
| Move-Assignment operator.
|
|
char & | operator[] (Ssiz_t i) |
|
char | operator[] (Ssiz_t i) const |
|
TString & | Prepend (char c, Ssiz_t rep=1) |
| Prepend character c rep times to string.
|
|
TString & | Prepend (const char *cs) |
|
TString & | Prepend (const char *cs, Ssiz_t n) |
|
TString & | Prepend (const TString &s) |
|
TString & | Prepend (const TString &s, Ssiz_t n) |
|
void | Puts (FILE *fp) |
| Write string to the stream.
|
|
virtual void | ReadBuffer (char *&buffer) |
| Read string from I/O buffer.
|
|
std::istream & | ReadFile (std::istream &str) |
| Replace string with the contents of strm, stopping at an EOF.
|
|
std::istream & | ReadLine (std::istream &str, Bool_t skipWhite=kTRUE) |
| Read a line from stream upto newline skipping any whitespace.
|
|
std::istream & | ReadString (std::istream &str) |
| Read a line from stream upto \0, including any newline.
|
|
std::istream & | ReadToDelim (std::istream &str, char delim='\n') |
| Read up to an EOF, or a delimiting character, whichever comes first.
|
|
std::istream & | ReadToken (std::istream &str) |
| Read a token, delimited by whitespace, from the input stream.
|
|
TString & | Remove (EStripType s, char c) |
| Remove char c at begin and/or end of string (like Strip()) but modifies directly the string.
|
|
TString & | Remove (Ssiz_t pos) |
|
TString & | Remove (Ssiz_t pos, Ssiz_t n) |
|
TString & | Replace (Ssiz_t pos, Ssiz_t n, const char *s) |
|
TString & | Replace (Ssiz_t pos, Ssiz_t n, const char *s, Ssiz_t ns) |
| Remove at most n1 characters from self beginning at pos, and replace them with the first n2 characters of cs.
|
|
TString & | Replace (Ssiz_t pos, Ssiz_t n, const TString &s) |
|
TString & | Replace (Ssiz_t pos, Ssiz_t n1, const TString &s, Ssiz_t n2) |
|
TString & | ReplaceAll (const char *s1, const char *s2) |
|
TString & | ReplaceAll (const char *s1, const TString &s2) |
|
TString & | ReplaceAll (const char *s1, Ssiz_t ls1, const char *s2, Ssiz_t ls2) |
| Find & Replace ls1 symbols of s1 with ls2 symbols of s2 if any.
|
|
TString & | ReplaceAll (const TString &s1, const char *s2) |
|
TString & | ReplaceAll (const TString &s1, const TString &s2) |
|
TString & | ReplaceSpecialCppChars () |
| Find special characters which are typically used in printf() calls and replace them by appropriate escape sequences.
|
|
void | Resize (Ssiz_t n) |
| Resize the string. Truncate or add blanks as necessary.
|
|
virtual Int_t | Sizeof () const |
| Returns size string will occupy on I/O buffer.
|
|
void | StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b) |
|
TSubString | Strip (EStripType s=kTrailing, char c=' ') const |
| Return a substring of self stripped at beginning and/or end.
|
|
TSubString | SubString (const char *pat, Ssiz_t start=0, ECaseCompare cmp=kExact) const |
| Returns a substring matching "pattern", or the null substring if there is no such match.
|
|
TString & | Swap (TString &other) |
|
TObjArray * | Tokenize (const TString &delim) const |
| This function is used to isolate sequential tokens in a TString.
|
|
Bool_t | Tokenize (TString &tok, Ssiz_t &from, const char *delim=" ") const |
| Search for tokens delimited by regular expression 'delim' (default " ") in this string; search starts at 'from' and the token is returned in 'tok'.
|
|
void | ToLower () |
| Change string to lower-case.
|
|
void | ToUpper () |
| Change string to upper case.
|
|
std::string_view | View () const |
|