ROOT 6.16/01 Reference Guide |
A zero length substring is legal.
It can start at any character. It is considered to be "pointing" to just before the character.
A "null" substring is a zero length substring that starts with the nonsense index kNPOS. It can be detected with the member function IsNull().
Public Member Functions | |
TSubString (const TSubString &s) | |
const char * | Data () const |
Bool_t | IsNull () const |
Ssiz_t | Length () const |
operator std::string () const | |
operator std::string_view () const | |
int | operator! () const |
char & | operator() (Ssiz_t i) |
Return character at pos i from sub-string. No check on i. More... | |
char | operator() (Ssiz_t i) const |
TSubString & | operator= (const char *s) |
Assign char* to sub-string. More... | |
TSubString & | operator= (const TString &s) |
Assign string to sub-string. More... | |
TSubString & | operator= (const TSubString &s) |
char & | operator[] (Ssiz_t i) |
Return character at pos i from sub-string. Check validity of i. More... | |
char | operator[] (Ssiz_t i) const |
Ssiz_t | Start () const |
TString & | String () |
void | ToLower () |
Convert sub-string to lower-case. More... | |
void | ToUpper () |
Convert sub-string to upper-case. More... | |
Protected Member Functions | |
void | AssertElement (Ssiz_t i) const |
Check to make sure a sub-string index is in range. More... | |
void | SubStringError (Ssiz_t, Ssiz_t, Ssiz_t) const |
Output error message. More... | |
Private Member Functions | |
TSubString (const TString &s, Ssiz_t start, Ssiz_t len) | |
Private constructor. More... | |
Private Attributes | |
Ssiz_t | fBegin |
Ssiz_t | fExtent |
TString & | fStr |
Friends | |
Bool_t | operator== (const TSubString &s1, const char *s2) |
Compare sub-string to char *. More... | |
Bool_t | operator== (const TSubString &s1, const TString &s2) |
Compare sub-string to string. More... | |
Bool_t | operator== (const TSubString &s1, const TSubString &s2) |
Compare two sub-strings. More... | |
class | TString |
class | TStringLong |
#include <TString.h>
Private constructor.
Definition at line 1539 of file TString.cxx.
|
inline |
Check to make sure a sub-string index is in range.
Definition at line 1683 of file TString.cxx.
|
inline |
char & TSubString::operator() | ( | Ssiz_t | i | ) |
Return character at pos i from sub-string. No check on i.
Definition at line 1585 of file TString.cxx.
TSubString & TSubString::operator= | ( | const char * | s | ) |
Assign char* to sub-string.
Definition at line 1604 of file TString.cxx.
TSubString & TSubString::operator= | ( | const TString & | s | ) |
Assign string to sub-string.
Definition at line 1593 of file TString.cxx.
|
inline |
char & TSubString::operator[] | ( | Ssiz_t | i | ) |
Return character at pos i from sub-string. Check validity of i.
Definition at line 1576 of file TString.cxx.
Output error message.
Definition at line 1674 of file TString.cxx.
void TSubString::ToLower | ( | ) |
Convert sub-string to lower-case.
Definition at line 1650 of file TString.cxx.
void TSubString::ToUpper | ( | ) |
Convert sub-string to upper-case.
Definition at line 1662 of file TString.cxx.
|
friend |
Compare sub-string to char *.
Definition at line 1615 of file TString.cxx.
|
friend |
Compare sub-string to string.
Definition at line 1629 of file TString.cxx.
|
friend |
Compare two sub-strings.
Definition at line 1639 of file TString.cxx.
|
friend |