xrootd
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | Friends | List of all members
XrdOucString Class Reference

#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)
 
XrdOucStringoperator= (const int i)
 
XrdOucStringoperator= (const char c)
 
XrdOucStringoperator= (const char *s)
 
XrdOucStringoperator= (const XrdOucString s)
 
XrdOucStringoperator+= (const int i)
 
XrdOucStringoperator+= (const char c)
 
XrdOucStringoperator+= (const char *s)
 
XrdOucStringoperator+= (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)
 

Constructor & Destructor Documentation

◆ XrdOucString() [1/5]

XrdOucString::XrdOucString ( int  lmx = 0)
inline

References bufalloc(), init(), and str.

◆ XrdOucString() [2/5]

XrdOucString::XrdOucString ( const char *  s,
int  lmx = 0 
)

◆ XrdOucString() [3/5]

XrdOucString::XrdOucString ( const char  c,
int  lmx = 0 
)

◆ XrdOucString() [4/5]

XrdOucString::XrdOucString ( const XrdOucString s)

◆ XrdOucString() [5/5]

XrdOucString::XrdOucString ( const XrdOucString s,
int  j,
int  k = -1,
int  lmx = 0 
)

◆ ~XrdOucString()

virtual XrdOucString::~XrdOucString ( )
virtual

Member Function Documentation

◆ adjust()

int XrdOucString::adjust ( int  ls,
int &  j,
int &  k,
int  nmx = 0 
)
private

◆ append() [1/4]

void XrdOucString::append ( const char *  s)

◆ append() [2/4]

void XrdOucString::append ( const char  c)

◆ append() [3/4]

void XrdOucString::append ( const int  i)

◆ append() [4/4]

void XrdOucString::append ( const XrdOucString  s)

◆ assign() [1/2]

void XrdOucString::assign ( const char *  s,
int  j,
int  k = -1 
)

◆ assign() [2/2]

void XrdOucString::assign ( const XrdOucString  s,
int  j,
int  k = -1 
)

◆ atoi()

long XrdOucString::atoi ( int  from = 0,
int  to = -1 
)

◆ beginswith() [1/3]

bool XrdOucString::beginswith ( char  c)
inline

References find().

◆ beginswith() [2/3]

bool XrdOucString::beginswith ( const char *  s)
inline

References find().

◆ beginswith() [3/3]

bool XrdOucString::beginswith ( XrdOucString  s)
inline

References find().

◆ bufalloc()

char * XrdOucString::bufalloc ( int  nsz)
private

Referenced by resize(), and XrdOucString().

◆ c_str()

const char * XrdOucString::c_str ( ) const
inline

◆ capacity()

int XrdOucString::capacity ( ) const
inline

References siz.

◆ endswith() [1/3]

bool XrdOucString::endswith ( char  c)

◆ endswith() [2/3]

bool XrdOucString::endswith ( const char *  s)

◆ endswith() [3/3]

bool XrdOucString::endswith ( XrdOucString  s)
inline

References c_str(), and endswith().

Referenced by endswith().

◆ erase() [1/3]

int XrdOucString::erase ( const char *  s,
int  from = 0,
int  to = -1 
)

◆ erase() [2/3]

int XrdOucString::erase ( int  start = 0,
int  size = 0 
)

Referenced by erasefromend(), and erasefromstart().

◆ erase() [3/3]

int XrdOucString::erase ( XrdOucString  s,
int  from = 0,
int  to = -1 
)

◆ erasefromend()

int XrdOucString::erasefromend ( int  sz = 0)
inline

References erase(), and len.

◆ erasefromstart()

int XrdOucString::erasefromstart ( int  sz = 0)
inline

References erase().

◆ find() [1/3]

int XrdOucString::find ( const char *  s,
int  start = 0 
)

◆ find() [2/3]

int XrdOucString::find ( const char  c,
int  start = 0,
bool  forward = 1 
)

◆ find() [3/3]

int XrdOucString::find ( XrdOucString  s,
int  start = 0 
)

◆ form() [1/2]

int XrdOucString::form ( const char *  fmt,
  ... 
)

◆ form() [2/2]

static int XrdOucString::form ( XrdOucString str,
const char *  fmt,
  ... 
)
static

◆ getblksize()

static int XrdOucString::getblksize ( )
static

◆ hardreset()

void XrdOucString::hardreset ( )

◆ init()

void XrdOucString::init ( )
inlineprivate

References len, siz, and str.

Referenced by XrdOucString().

◆ insert() [1/4]

void XrdOucString::insert ( const char *  s,
int  start = -1,
int  lmx = 0 
)

◆ insert() [2/4]

void XrdOucString::insert ( const char  c,
int  start = -1 
)

◆ insert() [3/4]

void XrdOucString::insert ( const int  i,
int  start = -1 
)

◆ insert() [4/4]

void XrdOucString::insert ( const XrdOucString  s,
int  start = -1 
)

◆ isdigit()

bool XrdOucString::isdigit ( int  from = 0,
int  to = -1 
)

◆ keep()

int XrdOucString::keep ( int  start = 0,
int  size = 0 
)

◆ length()

int XrdOucString::length ( ) const
inline

References len.

◆ lower()

void XrdOucString::lower ( int  pos,
int  size = 0 
)

◆ matches()

int XrdOucString::matches ( const char *  s,
char  wch = ' *' 
)

◆ operator!=() [1/4]

int XrdOucString::operator!= ( const char *  s)
inline

◆ operator!=() [2/4]

int XrdOucString::operator!= ( const char  c)
inline

◆ operator!=() [3/4]

int XrdOucString::operator!= ( const int  i)
inline

◆ operator!=() [4/4]

int XrdOucString::operator!= ( const XrdOucString  s)
inline

◆ operator+=() [1/4]

XrdOucString & XrdOucString::operator+= ( const char *  s)

◆ operator+=() [2/4]

XrdOucString & XrdOucString::operator+= ( const char  c)

◆ operator+=() [3/4]

XrdOucString & XrdOucString::operator+= ( const int  i)

◆ operator+=() [4/4]

XrdOucString & XrdOucString::operator+= ( const XrdOucString  s)

◆ operator=() [1/4]

XrdOucString & XrdOucString::operator= ( const char *  s)

◆ operator=() [2/4]

XrdOucString & XrdOucString::operator= ( const char  c)

◆ operator=() [3/4]

XrdOucString & XrdOucString::operator= ( const int  i)

◆ operator=() [4/4]

XrdOucString & XrdOucString::operator= ( const XrdOucString  s)

◆ operator==() [1/4]

int XrdOucString::operator== ( const char *  s)

◆ operator==() [2/4]

int XrdOucString::operator== ( const char  c)

◆ operator==() [3/4]

int XrdOucString::operator== ( const int  i)

◆ operator==() [4/4]

int XrdOucString::operator== ( const XrdOucString  s)

◆ operator[]()

char & XrdOucString::operator[] ( int  j)

◆ replace() [1/4]

int XrdOucString::replace ( const char *  s1,
const char *  s2,
int  from = 0,
int  to = -1 
)

◆ replace() [2/4]

int XrdOucString::replace ( const char *  s1,
const XrdOucString  s2,
int  from = 0,
int  to = -1 
)

◆ replace() [3/4]

int XrdOucString::replace ( const XrdOucString  s1,
const char *  s2,
int  from = 0,
int  to = -1 
)

◆ replace() [4/4]

int XrdOucString::replace ( const XrdOucString  s1,
const XrdOucString  s2,
int  from = 0,
int  to = -1 
)

◆ reset()

void XrdOucString::reset ( const char  c,
int  j = 0,
int  k = -1 
)

◆ resize()

void XrdOucString::resize ( int  lmx = 0)
inline

References bufalloc(), and str.

◆ rfind() [1/3]

int XrdOucString::rfind ( const char *  s,
int  start = STR_NPOS 
)

◆ rfind() [2/3]

int XrdOucString::rfind ( const char  c,
int  start = STR_NPOS 
)
inline

References find().

◆ rfind() [3/3]

int XrdOucString::rfind ( XrdOucString  s,
int  start = STR_NPOS 
)

◆ setblksize()

static void XrdOucString::setblksize ( const int  bs)
static

◆ setbuffer()

void XrdOucString::setbuffer ( char *  buf)

◆ tokenize()

int XrdOucString::tokenize ( XrdOucString tok,
int  from,
char  del = ':' 
)

◆ upper()

void XrdOucString::upper ( int  pos,
int  size = 0 
)

Friends And Related Symbol Documentation

◆ operator+ [1/4]

XrdOucString operator+ ( const XrdOucString s1,
const char *  s 
)
friend

◆ operator+ [2/4]

XrdOucString operator+ ( const XrdOucString s1,
const char  c 
)
friend

◆ operator+ [3/4]

XrdOucString operator+ ( const XrdOucString s1,
const int  i 
)
friend

◆ operator+ [4/4]

XrdOucString operator+ ( const XrdOucString s1,
const XrdOucString s 
)
friend

Member Data Documentation

◆ blksize

int XrdOucString::blksize
staticprivate

◆ len

int XrdOucString::len
private

Referenced by erasefromend(), init(), and length().

◆ siz

int XrdOucString::siz
private

Referenced by capacity(), and init().

◆ str

char* XrdOucString::str
private

Referenced by c_str(), init(), resize(), and XrdOucString().


The documentation for this class was generated from the following file: