Logo ROOT   6.10/00
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Classes | Namespaces | Functions
TString.h File Reference
#include "TMathBase.h"
#include "RStringView.h"
#include <iosfwd>
#include <stdarg.h>
#include <stdio.h>
#include <string>
Include dependency graph for TString.h:
This graph shows which files directly or indirectly include this file:

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

 cling
 Print a TSeq at the prompt:
 
 llvm
 

Functions

char * Compress (const char *str)
 Remove all blanks from the string str. More...
 
int EscChar (const char *src, char *dst, int dstlen, char *specchars, char escchar)
 Escape specchars in src with escchar and copy to dst. More...
 
char * Form (const char *fmt,...)
 
UInt_t Hash (const TString &s)
 
UInt_t Hash (const TString *s)
 
UInt_t Hash (const char *s)
 Return a case-sensitive hash value (endian independent). More...
 
Bool_t operator!= (const TString &s1, const TString &s2)
 
Bool_t operator!= (const TString &s1, const char *s2)
 
Bool_t operator!= (const char *s1, const TString &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)
 
Bool_t operator!= (const TString &s1, const TSubString &s2)
 
Bool_t operator!= (const char *s1, const TSubString &s2)
 
TString operator+ (const TString &s1, const TString &s2)
 Use the special concatenation constructor. More...
 
TString operator+ (const TString &s, const char *cs)
 Use the special concatenation constructor. More...
 
TString operator+ (const char *cs, const TString &s)
 Use the special concatenation constructor. More...
 
TString operator+ (const TString &s, char c)
 Add char to string. More...
 
TString operator+ (const TString &s, Long_t i)
 Add integer to string. More...
 
TString operator+ (const TString &s, ULong_t i)
 Add integer to string. More...
 
TString operator+ (const TString &s, Long64_t i)
 Add integer to string. More...
 
TString operator+ (const TString &s, ULong64_t i)
 Add integer to string. More...
 
TString operator+ (char c, const TString &s)
 Add string to integer. More...
 
TString operator+ (Long_t i, const TString &s)
 Add string to integer. More...
 
TString operator+ (ULong_t i, const TString &s)
 Add string to integer. More...
 
TString operator+ (Long64_t i, const TString &s)
 Add string to integer. More...
 
TString operator+ (ULong64_t i, const TString &s)
 Add string to integer. More...
 
std::string & operator+= (std::string &left, const TString &right)
 
Bool_t operator< (const TString &s1, const TString &s2)
 
Bool_t operator< (const TString &s1, const char *s2)
 
Bool_t operator< (const char *s1, const TString &s2)
 
std::ostream & operator<< (std::ostream &str, const TString &s)
 Write string to stream. More...
 
TBufferoperator<< (TBuffer &buf, const TString *sp)
 Write TString or derived to TBuffer. More...
 
Bool_t operator<= (const TString &s1, const TString &s2)
 
Bool_t operator<= (const TString &s1, const char *s2)
 
Bool_t operator<= (const char *s1, const TString &s2)
 
Bool_t operator== (const TString &s1, const TString &s2)
 
Bool_t operator== (const TString &s1, const char *s2)
 Compare TString with a char *. More...
 
Bool_t operator== (const TSubString &s1, const TSubString &s2)
 Compare two sub-strings. More...
 
Bool_t operator== (const TSubString &s1, const TString &s2)
 Compare sub-string to string. More...
 
Bool_t operator== (const TSubString &s1, const char *s2)
 Compare sub-string to char *. More...
 
Bool_t operator== (const char *s1, const TString &s2)
 
Bool_t operator== (const TString &s1, const TSubString &s2)
 
Bool_t operator== (const char *s1, const TSubString &s2)
 
Bool_t operator> (const TString &s1, const TString &s2)
 
Bool_t operator> (const TString &s1, const char *s2)
 
Bool_t operator> (const char *s1, const TString &s2)
 
Bool_t operator>= (const TString &s1, const TString &s2)
 
Bool_t operator>= (const TString &s1, const char *s2)
 
Bool_t operator>= (const char *s1, const TString &s2)
 
std::istream & operator>> (std::istream &str, TString &s)
 Read string from stream. More...
 
TBufferoperator>> (TBuffer &buf, TString *&sp)
 Read string from TBuffer. Function declared in ClassDef. More...
 
void Printf (const char *fmt,...)
 
std::string cling::printValue (const TString *val)
 Print a TString in the cling interpreter: More...
 
std::string cling::printValue (const TSubString *val)
 Print a TString in the cling interpreter: More...
 
std::string cling::printValue (const std::string_view *val)
 Print a TString in the cling interpreter: More...
 
char * StrDup (const char *str)
 Duplicate the string str. More...
 
char * Strip (const char *str, char c= ' ')
 Strip leading and trailing c (blanks by default) from a string. More...
 
TString ToLower (const TString &s)
 Return a lower-case version of str. More...
 
TString ToUpper (const TString &s)
 Return an upper-case version of str. More...
 
int UnEscChar (const char *src, char *dst, int dstlen, char *specchars, char escchar)
 Un-escape specchars in src from escchar and copy to dst. More...
 

Function Documentation

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 2538 of file TString.cxx.

int EscChar ( const char *  src,
char *  dst,
int  dstlen,
char *  specchars,
char  escchar 
)

Escape specchars in src with escchar and copy to dst.

Definition at line 2559 of file TString.cxx.

char* Form ( const char *  fmt,
  ... 
)
UInt_t Hash ( const TString s)
inline

Definition at line 460 of file TString.h.

UInt_t Hash ( const TString s)
inline

Definition at line 461 of file TString.h.

UInt_t Hash ( const char *  s)

Return a case-sensitive hash value (endian independent).

Definition at line 515 of file TString.cxx.

Bool_t operator!= ( const TString s1,
const TString s2 
)
inline

Definition at line 707 of file TString.h.

Bool_t operator!= ( const TString s1,
const char *  s2 
)
inline

Definition at line 723 of file TString.h.

Bool_t operator!= ( const char *  s1,
const TString s2 
)
inline

Definition at line 741 of file TString.h.

Bool_t operator!= ( const TSubString s1,
const char *  s2 
)
inline

Definition at line 766 of file TString.h.

Bool_t operator!= ( const TSubString s1,
const TString s2 
)
inline

Definition at line 769 of file TString.h.

Bool_t operator!= ( const TSubString s1,
const TSubString s2 
)
inline

Definition at line 772 of file TString.h.

Bool_t operator!= ( const TString s1,
const TSubString s2 
)
inline

Definition at line 775 of file TString.h.

Bool_t operator!= ( const char *  s1,
const TSubString s2 
)
inline

Definition at line 778 of file TString.h.

TString operator+ ( const TString s1,
const TString s2 
)

Use the special concatenation constructor.

Definition at line 1448 of file TString.cxx.

TString operator+ ( const TString s,
const char *  cs 
)

Use the special concatenation constructor.

Definition at line 1432 of file TString.cxx.

TString operator+ ( const char *  cs,
const TString s 
)

Use the special concatenation constructor.

Definition at line 1440 of file TString.cxx.

TString operator+ ( const TString s,
char  c 
)

Add char to string.

Definition at line 1456 of file TString.cxx.

TString operator+ ( const TString s,
Long_t  i 
)

Add integer to string.

Definition at line 1464 of file TString.cxx.

TString operator+ ( const TString s,
ULong_t  i 
)

Add integer to string.

Definition at line 1474 of file TString.cxx.

TString operator+ ( const TString s,
Long64_t  i 
)

Add integer to string.

Definition at line 1484 of file TString.cxx.

TString operator+ ( const TString s,
ULong64_t  i 
)

Add integer to string.

Definition at line 1494 of file TString.cxx.

TString operator+ ( char  c,
const TString s 
)

Add string to integer.

Definition at line 1504 of file TString.cxx.

TString operator+ ( Long_t  i,
const TString s 
)

Add string to integer.

Definition at line 1512 of file TString.cxx.

TString operator+ ( ULong_t  i,
const TString s 
)

Add string to integer.

Definition at line 1522 of file TString.cxx.

TString operator+ ( Long64_t  i,
const TString s 
)

Add string to integer.

Definition at line 1532 of file TString.cxx.

TString operator+ ( ULong64_t  i,
const TString s 
)

Add string to integer.

Definition at line 1542 of file TString.cxx.

std::string& operator+= ( std::string &  left,
const TString right 
)
inline

Definition at line 452 of file TString.h.

Bool_t operator< ( const TString s1,
const TString s2 
)
inline

Definition at line 710 of file TString.h.

Bool_t operator< ( const TString s1,
const char *  s2 
)
inline

Definition at line 726 of file TString.h.

Bool_t operator< ( const char *  s1,
const TString s2 
)
inline

Definition at line 744 of file TString.h.

std::ostream& operator<< ( std::ostream &  str,
const TString s 
)

Write string to stream.

Definition at line 171 of file Stringio.cxx.

TBuffer& operator<< ( TBuffer buf,
const TString sp 
)

Write TString or derived to TBuffer.

Definition at line 1377 of file TString.cxx.

Bool_t operator<= ( const TString s1,
const TString s2 
)
inline

Definition at line 716 of file TString.h.

Bool_t operator<= ( const TString s1,
const char *  s2 
)
inline

Definition at line 732 of file TString.h.

Bool_t operator<= ( const char *  s1,
const TString s2 
)
inline

Definition at line 750 of file TString.h.

Bool_t operator== ( const TString s1,
const TString s2 
)
inline

Definition at line 701 of file TString.h.

Bool_t operator== ( const TString s1,
const char *  s2 
)

Compare TString with a char *.

Definition at line 1389 of file TString.cxx.

Bool_t operator== ( const TSubString s1,
const TSubString s2 
)

Compare two sub-strings.

Definition at line 1718 of file TString.cxx.

Bool_t operator== ( const TSubString s1,
const TString s2 
)

Compare sub-string to string.

Definition at line 1708 of file TString.cxx.

Bool_t operator== ( const TSubString s1,
const char *  s2 
)

Compare sub-string to char *.

Definition at line 1694 of file TString.cxx.

Bool_t operator== ( const char *  s1,
const TString s2 
)
inline

Definition at line 738 of file TString.h.

Bool_t operator== ( const TString s1,
const TSubString s2 
)
inline

Definition at line 760 of file TString.h.

Bool_t operator== ( const char *  s1,
const TSubString s2 
)
inline

Definition at line 763 of file TString.h.

Bool_t operator> ( const TString s1,
const TString s2 
)
inline

Definition at line 713 of file TString.h.

Bool_t operator> ( const TString s1,
const char *  s2 
)
inline

Definition at line 729 of file TString.h.

Bool_t operator> ( const char *  s1,
const TString s2 
)
inline

Definition at line 747 of file TString.h.

Bool_t operator>= ( const TString s1,
const TString s2 
)
inline

Definition at line 719 of file TString.h.

Bool_t operator>= ( const TString s1,
const char *  s2 
)
inline

Definition at line 735 of file TString.h.

Bool_t operator>= ( const char *  s1,
const TString s2 
)
inline

Definition at line 753 of file TString.h.

std::istream& operator>> ( std::istream &  str,
TString s 
)

Read string from stream.

Definition at line 163 of file Stringio.cxx.

TBuffer& operator>> ( TBuffer buf,
TString *&  sp 
)

Read string from TBuffer. Function declared in ClassDef.

Definition at line 1368 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 2524 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 2488 of file TString.cxx.

TString ToLower ( const TString s)

Return a lower-case version of str.

Definition at line 1404 of file TString.cxx.

TString ToUpper ( const TString s)

Return an upper-case version of str.

Definition at line 1418 of file TString.cxx.

int UnEscChar ( const char *  src,
char *  dst,
int  dstlen,
char *  specchars,
char  escchar 
)

Un-escape specchars in src from escchar and copy to dst.

Definition at line 2583 of file TString.cxx.