#include "Rtypes.h"
#include "TMathBase.h"
#include "ROOT/RStringView.hxx"
#include "ROOT/TypeTraits.hxx"
#include "snprintf.h"
#include <iosfwd>
#include <cstdarg>
#include <cstdio>
#include <cstring>
#include <string>
Classes | |
struct | TString::LongStr_t |
struct | TString::RawStr_t |
struct | TString::Rep_t |
struct | TString::ShortStr_t |
class | TString |
Basic string class. More... | |
class | TSubString |
A zero length substring is legal. More... | |
union | TString::UStr_t |
Namespaces | |
namespace | llvm |
Functions | |
char * | Compress (const char *str) |
Remove all blanks from the string str. | |
int | EscChar (const char *src, char *dst, int dstlen, char *specchars, char escchar) |
Escape specchars in src with escchar and copy to dst. | |
char * | Form (const char *fmt,...) |
UInt_t | Hash (const char *s) |
Return a case-sensitive hash value (endian independent). | |
UInt_t | Hash (const TString &s) |
UInt_t | Hash (const TString *s) |
Bool_t | operator!= (const char *s1, const TString &s2) |
Bool_t | operator!= (const char *s1, const TSubString &s2) |
Bool_t | operator!= (const TString &s1, const char *s2) |
Bool_t | operator!= (const TString &s1, const TString &s2) |
Bool_t | operator!= (const TString &s1, const TSubString &s2) |
Bool_t | operator!= (const TSubString &s1, const char *s2) |
Bool_t | operator!= (const TSubString &s1, const TString &s2) |
Bool_t | operator!= (const TSubString &s1, const TSubString &s2) |
TString | operator+ (char c, const TString &s) |
Add string to char. | |
TString | operator+ (const char *cs, const TString &s) |
Use the special concatenation constructor. | |
TString | operator+ (const TString &s, char c) |
Add char to string. | |
TString | operator+ (const TString &s, const char *cs) |
Use the special concatenation constructor. | |
TString | operator+ (const TString &s1, const TString &s2) |
Use the special concatenation constructor. | |
template<class T > | |
std::enable_if< ROOT::TypeTraits::IsFloatNumeral< T >::value, TString >::type | operator+ (T f, const TString &s) |
template<class T > | |
std::enable_if< ROOT::TypeTraits::IsSignedNumeral< T >::value, TString >::type | operator+ (T i, const TString &s) |
template<class T > | |
std::enable_if< ROOT::TypeTraits::IsUnsignedNumeral< T >::value, TString >::type | operator+ (T u, const TString &s) |
template<class T > | |
std::enable_if< ROOT::TypeTraits::IsFloatNumeral< T >::value, TString >::type | operator+ (TString s, T f) |
template<class T > | |
std::enable_if< ROOT::TypeTraits::IsSignedNumeral< T >::value, TString >::type | operator+ (TString s, T i) |
template<class T > | |
std::enable_if< ROOT::TypeTraits::IsUnsignedNumeral< T >::value, TString >::type | operator+ (TString s, T u) |
std::string & | operator+= (std::string &left, const TString &right) |
Bool_t | operator< (const char *s1, const TString &s2) |
Bool_t | operator< (const TString &s1, const char *s2) |
Bool_t | operator< (const TString &s1, const TString &s2) |
std::ostream & | operator<< (std::ostream &str, const TString &s) |
Write string to stream. | |
TBuffer & | operator<< (TBuffer &buf, const TString *sp) |
Write TString or derived to TBuffer. | |
Bool_t | operator<= (const char *s1, const TString &s2) |
Bool_t | operator<= (const TString &s1, const char *s2) |
Bool_t | operator<= (const TString &s1, const TString &s2) |
Bool_t | operator== (const char *s1, const std::string_view &s2) |
Bool_t | operator== (const char *s1, const TString &s2) |
Bool_t | operator== (const char *s1, const TSubString &s2) |
Bool_t | operator== (const std::string_view &s1, const char *s2) |
Bool_t | operator== (const TString &s1, const char *s2) |
Compare TString with a char *. | |
Bool_t | operator== (const TString &s1, const TString &s2) |
Bool_t | operator== (const TString &s1, const TSubString &s2) |
Bool_t | operator== (const TSubString &s1, const char *s2) |
Compare sub-string to char *. | |
Bool_t | operator== (const TSubString &s1, const TString &s2) |
Compare sub-string to string. | |
Bool_t | operator== (const TSubString &s1, const TSubString &s2) |
Compare two sub-strings. | |
Bool_t | operator> (const char *s1, const TString &s2) |
Bool_t | operator> (const TString &s1, const char *s2) |
Bool_t | operator> (const TString &s1, const TString &s2) |
Bool_t | operator>= (const char *s1, const TString &s2) |
Bool_t | operator>= (const TString &s1, const char *s2) |
Bool_t | operator>= (const TString &s1, const TString &s2) |
std::istream & | operator>> (std::istream &str, TString &s) |
Read string from stream. | |
TBuffer & | operator>> (TBuffer &buf, TString *&sp) |
Read string from TBuffer. Function declared in ClassDef. | |
void | Printf (const char *fmt,...) |
char * | StrDup (const char *str) |
Duplicate the string str. | |
char * | Strip (const char *str, char c=' ') |
Strip leading and trailing c (blanks by default) from a string. | |
TString | ToLower (const TString &s) |
Return a lower-case version of str. | |
TString | ToUpper (const TString &s) |
Return an upper-case version of str. | |
int | UnEscChar (const char *src, char *dst, int dstlen, char *specchars, char escchar) |
Un-escape specchars in src from escchar and copy to dst. | |
char * Compress | ( | const char * | str | ) |
Remove all blanks from the string str.
The returned string has to be deleted by the user.
Definition at line 2524 of file TString.cxx.
Escape specchars in src with escchar and copy to dst.
Definition at line 2545 of file TString.cxx.
char * Form | ( | const char * | fmt, |
... | |||
) |
UInt_t Hash | ( | const char * | s | ) |
Return a case-sensitive hash value (endian independent).
Definition at line 557 of file TString.cxx.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Add string to char.
Definition at line 1510 of file TString.cxx.
Use the special concatenation constructor.
Definition at line 1486 of file TString.cxx.
Add char to string.
Definition at line 1502 of file TString.cxx.
Use the special concatenation constructor.
Definition at line 1478 of file TString.cxx.
Use the special concatenation constructor.
Definition at line 1494 of file TString.cxx.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
std::ostream & operator<< | ( | std::ostream & | str, |
const TString & | s | ||
) |
Write string to stream.
Definition at line 171 of file Stringio.cxx.
Write TString or derived to TBuffer.
Definition at line 1423 of file TString.cxx.
|
inline |
|
inline |
|
inline |
Compare TString with a char *.
Definition at line 1435 of file TString.cxx.
|
inline |
Bool_t operator== | ( | const TSubString & | s1, |
const char * | s2 | ||
) |
Compare sub-string to char *.
Definition at line 1660 of file TString.cxx.
Bool_t operator== | ( | const TSubString & | s1, |
const TString & | s2 | ||
) |
Compare sub-string to string.
Definition at line 1674 of file TString.cxx.
Bool_t operator== | ( | const TSubString & | s1, |
const TSubString & | s2 | ||
) |
Compare two sub-strings.
Definition at line 1684 of file TString.cxx.
std::istream & operator>> | ( | std::istream & | str, |
TString & | s | ||
) |
Read string from stream.
Definition at line 163 of file Stringio.cxx.
Read string from TBuffer. Function declared in ClassDef.
Definition at line 1414 of file TString.cxx.
void Printf | ( | const char * | fmt, |
... | |||
) |
char * StrDup | ( | const char * | str | ) |
Duplicate the string str.
The returned string has to be deleted by the user.
Definition at line 2510 of file TString.cxx.
char * Strip | ( | const char * | s, |
char | c | ||
) |
Strip leading and trailing c (blanks by default) from a string.
The returned string has to be deleted by the user.
Definition at line 2474 of file TString.cxx.
Return a lower-case version of str.
Definition at line 1450 of file TString.cxx.
Return an upper-case version of str.
Definition at line 1464 of file TString.cxx.
Un-escape specchars in src from escchar and copy to dst.
Definition at line 2569 of file TString.cxx.