#include <XrdOucString.hh>
Public Member Functions | |
XrdOucString (int lmx=0) | |
XrdOucString (const char *s, int lmx=0) | |
XrdOucString (const char c, int lmx=0) | |
XrdOucString (const XrdOucString &s) | |
XrdOucString (const XrdOucString &s, int j, int k=-1, int lmx=0) | |
virtual | ~XrdOucString () |
const char * | c_str () const |
int | length () const |
int | capacity () const |
char & | operator[] (int j) |
int | find (const char c, int start=0, bool forward=1) |
int | find (const char *s, int start=0) |
int | find (XrdOucString s, int start=0) |
int | rfind (const char c, int start=STR_NPOS) |
int | rfind (const char *s, int start=STR_NPOS) |
int | rfind (XrdOucString s, int start=STR_NPOS) |
bool | beginswith (char c) |
bool | beginswith (const char *s) |
bool | beginswith (XrdOucString s) |
bool | endswith (char c) |
bool | endswith (const char *s) |
bool | endswith (XrdOucString s) |
int | matches (const char *s, char wch= '*') |
int | tokenize (XrdOucString &tok, int from, char del= ':') |
void | resize (int lmx=0) |
void | append (const int i) |
void | append (const char c) |
void | append (const char *s) |
void | append (const XrdOucString s) |
void | assign (const char *s, int j, int k=-1) |
void | assign (const XrdOucString s, int j, int k=-1) |
int | form (const char *fmt,...) |
int | keep (int start=0, int size=0) |
void | insert (const int i, int start=-1) |
void | insert (const char c, int start=-1) |
void | insert (const char *s, int start=-1, int lmx=0) |
void | insert (const XrdOucString s, int start=-1) |
int | replace (const char *s1, const char *s2, int from=0, int to=-1) |
int | replace (const XrdOucString s1, const XrdOucString s2, int from=0, int to=-1) |
int | replace (const XrdOucString s1, const char *s2, int from=0, int to=-1) |
int | replace (const char *s1, const XrdOucString s2, int from=0, int to=-1) |
int | erase (int start=0, int size=0) |
int | erase (const char *s, int from=0, int to=-1) |
int | erase (XrdOucString s, int from=0, int to=-1) |
int | erasefromstart (int sz=0) |
int | erasefromend (int sz=0) |
void | lower (int pos, int size=0) |
void | upper (int pos, int size=0) |
void | reset (const char c, int j=0, int k=-1) |
void | hardreset () |
void | setbuffer (char *buf) |
XrdOucString & | operator= (const int i) |
XrdOucString & | operator= (const char c) |
XrdOucString & | operator= (const char *s) |
XrdOucString & | operator= (const XrdOucString s) |
XrdOucString & | operator+= (const int i) |
XrdOucString & | operator+= (const char c) |
XrdOucString & | operator+= (const char *s) |
XrdOucString & | operator+= (const XrdOucString s) |
int | operator== (const int i) |
int | operator== (const char c) |
int | operator== (const char *s) |
int | operator== (const XrdOucString s) |
int | operator!= (const int i) |
int | operator!= (const char c) |
int | operator!= (const char *s) |
int | operator!= (const XrdOucString s) |
bool | isdigit (int from=0, int to=-1) |
long | atoi (int from=0, int to=-1) |
Static Public Member Functions | |
static int | getblksize () |
static void | setblksize (const int bs) |
static int | form (XrdOucString &str, const char *fmt,...) |
Private Member Functions | |
int | adjust (int ls, int &j, int &k, int nmx=0) |
char * | bufalloc (int nsz) |
void | init () |
Private Attributes | |
char * | str |
int | len |
int | siz |
Static Private Attributes | |
static int | blksize |
Friends | |
XrdOucString | operator+ (const XrdOucString &s1, const int i) |
XrdOucString | operator+ (const XrdOucString &s1, const char c) |
XrdOucString | operator+ (const XrdOucString &s1, const char *s) |
XrdOucString | operator+ (const XrdOucString &s1, const XrdOucString &s) |
XrdOucString::XrdOucString | ( | int | lmx = 0 |
) | [inline] |
References bufalloc(), init(), and str.
XrdOucString::XrdOucString | ( | const char * | s, | |
int | lmx = 0 | |||
) |
XrdOucString::XrdOucString | ( | const char | c, | |
int | lmx = 0 | |||
) |
XrdOucString::XrdOucString | ( | const XrdOucString & | s | ) |
XrdOucString::XrdOucString | ( | const XrdOucString & | s, | |
int | j, | |||
int | k = -1 , |
|||
int | lmx = 0 | |||
) |
virtual XrdOucString::~XrdOucString | ( | ) | [virtual] |
int XrdOucString::adjust | ( | int | ls, | |
int & | j, | |||
int & | k, | |||
int | nmx = 0 | |||
) | [private] |
void XrdOucString::append | ( | const XrdOucString | s | ) |
void XrdOucString::append | ( | const char * | s | ) |
void XrdOucString::append | ( | const char | c | ) |
void XrdOucString::append | ( | const int | i | ) |
void XrdOucString::assign | ( | const XrdOucString | s, | |
int | j, | |||
int | k = -1 | |||
) |
void XrdOucString::assign | ( | const char * | s, | |
int | j, | |||
int | k = -1 | |||
) |
long XrdOucString::atoi | ( | int | from = 0 , |
|
int | to = -1 | |||
) |
bool XrdOucString::beginswith | ( | XrdOucString | s | ) | [inline] |
References find().
bool XrdOucString::beginswith | ( | const char * | s | ) | [inline] |
References find().
bool XrdOucString::beginswith | ( | char | c | ) | [inline] |
References find().
char* XrdOucString::bufalloc | ( | int | nsz | ) | [private] |
Referenced by resize(), and XrdOucString().
const char* XrdOucString::c_str | ( | ) | const [inline] |
int XrdOucString::capacity | ( | ) | const [inline] |
References siz.
bool XrdOucString::endswith | ( | XrdOucString | s | ) | [inline] |
References c_str(), and endswith().
Referenced by endswith().
bool XrdOucString::endswith | ( | const char * | s | ) |
bool XrdOucString::endswith | ( | char | c | ) |
int XrdOucString::erase | ( | XrdOucString | s, | |
int | from = 0 , |
|||
int | to = -1 | |||
) |
int XrdOucString::erase | ( | const char * | s, | |
int | from = 0 , |
|||
int | to = -1 | |||
) |
int XrdOucString::erase | ( | int | start = 0 , |
|
int | size = 0 | |||
) |
Referenced by erasefromend(), and erasefromstart().
int XrdOucString::erasefromstart | ( | int | sz = 0 |
) | [inline] |
References erase().
int XrdOucString::find | ( | XrdOucString | s, | |
int | start = 0 | |||
) |
int XrdOucString::find | ( | const char * | s, | |
int | start = 0 | |||
) |
int XrdOucString::find | ( | const char | c, | |
int | start = 0 , |
|||
bool | forward = 1 | |||
) |
Referenced by beginswith(), and rfind().
static int XrdOucString::form | ( | XrdOucString & | str, | |
const char * | fmt, | |||
... | ||||
) | [static] |
int XrdOucString::form | ( | const char * | fmt, | |
... | ||||
) |
static int XrdOucString::getblksize | ( | ) | [static] |
void XrdOucString::hardreset | ( | ) |
void XrdOucString::init | ( | ) | [inline, private] |
Referenced by XrdOucString().
void XrdOucString::insert | ( | const XrdOucString | s, | |
int | start = -1 | |||
) |
void XrdOucString::insert | ( | const char * | s, | |
int | start = -1 , |
|||
int | lmx = 0 | |||
) |
void XrdOucString::insert | ( | const char | c, | |
int | start = -1 | |||
) |
void XrdOucString::insert | ( | const int | i, | |
int | start = -1 | |||
) |
bool XrdOucString::isdigit | ( | int | from = 0 , |
|
int | to = -1 | |||
) |
int XrdOucString::keep | ( | int | start = 0 , |
|
int | size = 0 | |||
) |
int XrdOucString::length | ( | ) | const [inline] |
References len.
void XrdOucString::lower | ( | int | pos, | |
int | size = 0 | |||
) |
int XrdOucString::matches | ( | const char * | s, | |
char | wch = '*' | |||
) |
int XrdOucString::operator!= | ( | const XrdOucString | s | ) | [inline] |
int XrdOucString::operator!= | ( | const char * | s | ) | [inline] |
int XrdOucString::operator!= | ( | const char | c | ) | [inline] |
int XrdOucString::operator!= | ( | const int | i | ) | [inline] |
XrdOucString& XrdOucString::operator+= | ( | const XrdOucString | s | ) |
XrdOucString& XrdOucString::operator+= | ( | const char * | s | ) |
XrdOucString& XrdOucString::operator+= | ( | const char | c | ) |
XrdOucString& XrdOucString::operator+= | ( | const int | i | ) |
XrdOucString& XrdOucString::operator= | ( | const XrdOucString | s | ) |
XrdOucString& XrdOucString::operator= | ( | const char * | s | ) |
XrdOucString& XrdOucString::operator= | ( | const char | c | ) |
XrdOucString& XrdOucString::operator= | ( | const int | i | ) |
int XrdOucString::operator== | ( | const XrdOucString | s | ) |
int XrdOucString::operator== | ( | const char * | s | ) |
int XrdOucString::operator== | ( | const char | c | ) |
int XrdOucString::operator== | ( | const int | i | ) |
char& XrdOucString::operator[] | ( | int | j | ) |
int XrdOucString::replace | ( | const char * | s1, | |
const XrdOucString | s2, | |||
int | from = 0 , |
|||
int | to = -1 | |||
) |
int XrdOucString::replace | ( | const XrdOucString | s1, | |
const char * | s2, | |||
int | from = 0 , |
|||
int | to = -1 | |||
) |
int XrdOucString::replace | ( | const XrdOucString | s1, | |
const XrdOucString | s2, | |||
int | from = 0 , |
|||
int | to = -1 | |||
) |
int XrdOucString::replace | ( | const char * | s1, | |
const char * | s2, | |||
int | from = 0 , |
|||
int | to = -1 | |||
) |
void XrdOucString::reset | ( | const char | c, | |
int | j = 0 , |
|||
int | k = -1 | |||
) |
void XrdOucString::resize | ( | int | lmx = 0 |
) | [inline] |
References bufalloc(), and str.
int XrdOucString::rfind | ( | XrdOucString | s, | |
int | start = STR_NPOS | |||
) |
int XrdOucString::rfind | ( | const char * | s, | |
int | start = STR_NPOS | |||
) |
int XrdOucString::rfind | ( | const char | c, | |
int | start = STR_NPOS | |||
) | [inline] |
References find().
static void XrdOucString::setblksize | ( | const int | bs | ) | [static] |
void XrdOucString::setbuffer | ( | char * | buf | ) |
int XrdOucString::tokenize | ( | XrdOucString & | tok, | |
int | from, | |||
char | del = ':' | |||
) |
void XrdOucString::upper | ( | int | pos, | |
int | size = 0 | |||
) |
XrdOucString operator+ | ( | const XrdOucString & | s1, | |
const XrdOucString & | s | |||
) | [friend] |
XrdOucString operator+ | ( | const XrdOucString & | s1, | |
const char * | s | |||
) | [friend] |
XrdOucString operator+ | ( | const XrdOucString & | s1, | |
const char | c | |||
) | [friend] |
XrdOucString operator+ | ( | const XrdOucString & | s1, | |
const int | i | |||
) | [friend] |
int XrdOucString::blksize [static, private] |
int XrdOucString::len [private] |
Referenced by erasefromend(), init(), and length().
int XrdOucString::siz [private] |
Referenced by capacity(), and init().
char* XrdOucString::str [private] |
Referenced by c_str(), init(), resize(), and XrdOucString().