#include <ROOT/RConfig.hxx>
#include <stdlib.h>
#include <ctype.h>
#include <list>
#include <algorithm>
#include "Varargs.h"
#include "strlcpy.h"
#include "TString.h"
#include "TBuffer.h"
#include "TError.h"
#include "Bytes.h"
#include "TClass.h"
#include "TMD5.h"
#include "TObjArray.h"
#include "TObjString.h"
#include "TVirtualMutex.h"
#include "ThreadLocalStorage.h"
#include <stdint.h>
Namespaces | |
namespace | ROOT |
This file contains a specialised ROOT message handler to test for diagnostic in unit tests. | |
Macros | |
#define | BIG_CONSTANT(x) (x##LLU) |
#define | ROTL64(x, y) rotl64(x,y) |
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,...) |
Formats a string in a circular formatting buffer. | |
static char * | Format (const char *format, va_list ap) |
Format a string in a circular formatting buffer (using a printf style format descriptor). | |
UInt_t | Hash (const char *str) |
Return a case-sensitive hash value (endian independent). | |
static void | Mash (UInt_t &hash, UInt_t chars) |
Utility used by Hash(). | |
static int | MemIsEqual (const char *p, const char *q, Ssiz_t n) |
Returns false if strings are not equal. | |
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. | |
TBuffer & | operator<< (TBuffer &buf, const TString *s) |
Write TString or derived to TBuffer. | |
Bool_t | operator== (const TString &s1, const char *s2) |
Compare TString with a char *. | |
Bool_t | operator== (const TSubString &s1, const TSubString &s2) |
Compare two sub-strings. | |
Bool_t | operator== (const TSubString &ss, const char *cs) |
Compare sub-string to char *. | |
Bool_t | operator== (const TSubString &ss, const TString &s) |
Compare sub-string to string. | |
TBuffer & | operator>> (TBuffer &buf, TString *&s) |
Read string from TBuffer. Function declared in ClassDef. | |
void | Printf (const char *fmt,...) |
Formats a string in a circular formatting buffer and prints the string. | |
uint64_t | rotl64 (uint64_t x, int8_t r) |
static char * | SlowFormat (const char *format, va_list ap, int hint) |
Format a string in a formatting buffer (using a printf style format descriptor). | |
char * | StrDup (const char *str) |
Duplicate the string str. | |
char * | Strip (const char *s, char c) |
Strip leading and trailing c (blanks by default) from a string. | |
static UInt_t | SwapInt (UInt_t x) |
TString | ToLower (const TString &str) |
Return a lower-case version of str. | |
TString | ToUpper (const TString &str) |
Return an upper-case version of str. | |
int | UnEscChar (const char *src, char *dst, int dstlen, char *specchars, char) |
Un-escape specchars in src from escchar and copy to dst. | |
Variables | |
const UInt_t | kHashShift = 5 |
Definition at line 719 of file TString.cxx.
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 2550 of file TString.cxx.
Escape specchars in src with escchar and copy to dst.
Definition at line 2571 of file TString.cxx.
char * Form | ( | const char * | fmt, |
... | |||
) |
Formats a string in a circular formatting buffer.
Removes the need to create and delete short lived strings. Don't pass Form() pointers from user code down to ROOT functions as the circular buffer may be overwritten downstream. Use Form() results immediately or use TString::Format() instead.
Definition at line 2467 of file TString.cxx.
|
static |
Format a string in a circular formatting buffer (using a printf style format descriptor).
Definition at line 2420 of file TString.cxx.
UInt_t Hash | ( | const char * | str | ) |
Return a case-sensitive hash value (endian independent).
Definition at line 569 of file TString.cxx.
Utility used by Hash().
Definition at line 559 of file TString.cxx.
Returns false if strings are not equal.
Definition at line 878 of file TString.cxx.
Add string to char.
Definition at line 1535 of file TString.cxx.
Use the special concatenation constructor.
Definition at line 1511 of file TString.cxx.
Add char to string.
Definition at line 1527 of file TString.cxx.
Use the special concatenation constructor.
Definition at line 1503 of file TString.cxx.
Use the special concatenation constructor.
Definition at line 1519 of file TString.cxx.
Write TString or derived to TBuffer.
Definition at line 1448 of file TString.cxx.
Compare TString with a char *.
Definition at line 1460 of file TString.cxx.
Bool_t operator== | ( | const TSubString & | s1, |
const TSubString & | s2 | ||
) |
Compare two sub-strings.
Definition at line 1709 of file TString.cxx.
Bool_t operator== | ( | const TSubString & | ss, |
const char * | cs | ||
) |
Compare sub-string to char *.
Definition at line 1685 of file TString.cxx.
Bool_t operator== | ( | const TSubString & | ss, |
const TString & | s | ||
) |
Compare sub-string to string.
Definition at line 1699 of file TString.cxx.
Read string from TBuffer. Function declared in ClassDef.
Definition at line 1439 of file TString.cxx.
void Printf | ( | const char * | fmt, |
... | |||
) |
Formats a string in a circular formatting buffer and prints the string.
Appends a newline. If gPrintViaErrorHandler is true it will print via the currently active ROOT error handler.
Definition at line 2481 of file TString.cxx.
|
inline |
Definition at line 713 of file TString.cxx.
|
static |
Format a string in a formatting buffer (using a printf style format descriptor).
Definition at line 2372 of file TString.cxx.
char * StrDup | ( | const char * | str | ) |
Duplicate the string str.
The returned string has to be deleted by the user.
Definition at line 2535 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 2499 of file TString.cxx.
Definition at line 549 of file TString.cxx.
Return a lower-case version of str.
Definition at line 1475 of file TString.cxx.
Return an upper-case version of str.
Definition at line 1489 of file TString.cxx.
Un-escape specchars in src from escchar and copy to dst.
Definition at line 2595 of file TString.cxx.
const UInt_t kHashShift = 5 |
Definition at line 68 of file TString.cxx.