![]() |
XRootD
|
#include <XrdOucString.hh>
Public Member Functions | |
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) | |
XrdOucString (int lmx=0) | |
virtual | ~XrdOucString () |
void | append (const char *s) |
void | append (const char c) |
void | append (const int i) |
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) |
long | atoi (int from=0, int to=-1) |
bool | beginswith (char c) |
bool | beginswith (const char *s) |
bool | beginswith (XrdOucString s) |
const char * | c_str () const |
int | capacity () const |
bool | endswith (char c) |
bool | endswith (const char *s) |
bool | endswith (XrdOucString s) |
int | erase (const char *s, int from=0, int to=-1) |
int | erase (int start=0, int size=0) |
int | erase (XrdOucString s, int from=0, int to=-1) |
int | erasefromend (int sz=0) |
int | erasefromstart (int sz=0) |
int | find (const char *s, int start=0) |
int | find (const char c, int start=0, bool forward=1) |
int | find (XrdOucString s, int start=0) |
int | form (const char *fmt,...) |
void | hardreset () |
void | insert (const char *s, int start=-1, int lmx=0) |
void | insert (const char c, int start=-1) |
void | insert (const int i, int start=-1) |
void | insert (const XrdOucString s, int start=-1) |
bool | isdigit (int from=0, int to=-1) |
int | keep (int start=0, int size=0) |
int | length () const |
void | lower (int pos, int size=0) |
int | matches (const char *s, char wch=' *') |
int | operator!= (const char *s) |
int | operator!= (const char c) |
int | operator!= (const int i) |
int | operator!= (const XrdOucString s) |
XrdOucString & | operator+= (const char *s) |
XrdOucString & | operator+= (const char c) |
XrdOucString & | operator+= (const int i) |
XrdOucString & | operator+= (const XrdOucString s) |
XrdOucString & | operator= (const char *s) |
XrdOucString & | operator= (const char c) |
XrdOucString & | operator= (const int i) |
XrdOucString & | operator= (const XrdOucString s) |
int | operator== (const char *s) |
int | operator== (const char c) |
int | operator== (const int i) |
int | operator== (const XrdOucString s) |
char & | operator[] (int j) |
int | replace (const char *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 | replace (const XrdOucString s1, const char *s2, int from=0, int to=-1) |
int | replace (const XrdOucString s1, const XrdOucString s2, int from=0, int to=-1) |
void | reset (const char c, int j=0, int k=-1) |
void | resize (int lmx=0) |
int | rfind (const char *s, int start=STR_NPOS) |
int | rfind (const char c, int start=STR_NPOS) |
int | rfind (XrdOucString s, int start=STR_NPOS) |
void | setbuffer (char *buf) |
int | tokenize (XrdOucString &tok, int from, char del=':') |
void | upper (int pos, int size=0) |
Static Public Member Functions | |
static int | form (XrdOucString &str, const char *fmt,...) |
static int | getblksize () |
static void | setblksize (const int bs) |
Friends | |
XrdOucString | operator+ (const XrdOucString &s1, const char *s) |
XrdOucString | operator+ (const XrdOucString &s1, const char c) |
XrdOucString | operator+ (const XrdOucString &s1, const int i) |
XrdOucString | operator+ (const XrdOucString &s1, const XrdOucString &s) |
Definition at line 252 of file XrdOucString.hh.
|
inline |
Definition at line 270 of file XrdOucString.hh.
XrdOucString::XrdOucString | ( | const char * | s, |
int | lmx = 0 |
||
) |
Definition at line 153 of file XrdOucString.cc.
References assign().
XrdOucString::XrdOucString | ( | const char | c, |
int | lmx = 0 |
||
) |
Definition at line 132 of file XrdOucString.cc.
XrdOucString::XrdOucString | ( | const XrdOucString & | s | ) |
Definition at line 173 of file XrdOucString.cc.
References assign(), and c_str().
XrdOucString::XrdOucString | ( | const XrdOucString & | s, |
int | j, | ||
int | k = -1 , |
||
int | lmx = 0 |
||
) |
Definition at line 182 of file XrdOucString.cc.
References assign(), c_str(), and length().
|
virtual |
Definition at line 201 of file XrdOucString.cc.
void XrdOucString::append | ( | const char * | s | ) |
Definition at line 598 of file XrdOucString.cc.
References insert().
void XrdOucString::append | ( | const char | c | ) |
Definition at line 616 of file XrdOucString.cc.
References insert().
void XrdOucString::append | ( | const int | i | ) |
Definition at line 625 of file XrdOucString.cc.
References insert().
Referenced by XrdOucStream::Capture(), XrdXrootdProtocol::Configure(), operator+=(), XrdOfsConfigCP::Parse(), XrdHttpReq::ProcessHTTPReq(), and XrdSutMkdir().
void XrdOucString::append | ( | const XrdOucString | s | ) |
Definition at line 607 of file XrdOucString.cc.
References insert().
void XrdOucString::assign | ( | const char * | s, |
int | j, | ||
int | k = -1 |
||
) |
Definition at line 511 of file XrdOucString.cc.
Referenced by XrdOucString(), assign(), ExpPuk(), operator=(), SavePasswd(), XrdSutPFile::SearchEntries(), tokenize(), XrdVomsFun::VOMSInit(), XrdSutExpand(), and XrdSutParseTime().
void XrdOucString::assign | ( | const XrdOucString | s, |
int | j, | ||
int | k = -1 |
||
) |
long XrdOucString::atoi | ( | int | from = 0 , |
int | to = -1 |
||
) |
Definition at line 1297 of file XrdOucString.cc.
References isdigit(), and XrdZip::to().
Referenced by XrdOucGMap::XrdOucGMap(), and XrdVomsFun::VOMSInit().
|
inline |
Definition at line 289 of file XrdOucString.hh.
References find().
Referenced by XrdCryptosslX509Crl::XrdCryptosslX509Crl(), XrdOucGMap::XrdOucGMap(), XrdSecProtocolpwd::Authenticate(), FindMatchingCondition(), and XrdHttpReq::ProcessHTTPReq().
|
inline |
Definition at line 290 of file XrdOucString.hh.
References find().
|
inline |
Definition at line 291 of file XrdOucString.hh.
References find().
|
inline |
Definition at line 278 of file XrdOucString.hh.
Referenced by XrdCryptosslX509Crl::XrdCryptosslX509Crl(), XrdHttpExtReq::XrdHttpExtReq(), XrdOucGatherConf::XrdOucGatherConf(), XrdOucGMap::XrdOucGMap(), XrdOucString(), XrdSecProtocolgsi::XrdSecProtocolgsi(), XrdSecProtocolpwd::XrdSecProtocolpwd(), XrdSutBucket::XrdSutBucket(), XrdXrootdPgwFob::~XrdXrootdPgwFob(), AddPassword(), AskConfirm(), assign(), XrdSecProtocolgsi::Authenticate(), XrdSecProtocolpwd::Authenticate(), XrdCryptoX509Chain::CAhash(), XrdCryptoX509Chain::CAname(), cfOut(), XrdXrootdProtocol::Configure(), XrdConfig::Configure(), XrdOucGMap::dn2user(), XrdHttpProtocol::doChksum(), XrdSutBuffer::Dump(), XrdOucGatherConf::EchoLine(), XrdCryptoX509Chain::EEChash(), XrdCryptoX509Chain::EECname(), endswith(), erase(), ExpPuk(), find(), FindMatchingCondition(), XrdOucUtils::findPgm(), XrdSutPFCache::Flush(), XrdOucGatherConf::Gather(), XrdSecProtocolgsi::getCredentials(), XrdSecProtocolpwd::getCredentials(), GetEntry(), XrdSutBuffer::GetOptions(), XrdSutBuffer::GetProtocol(), XrdSecProtocolgsi::Init(), XrdSecProtocolpwd::Init(), insert(), XrdCryptosslX509::Issuer(), XrdCryptosslX509Crl::Issuer(), XrdCryptosslX509Crl::IssuerHash(), XrdCryptosslX509::IssuerHash(), XrdCryptoX509Chain::LastError(), XrdSutPFile::LastErrStr(), XrdOucGatherConf::LastLine(), LocateFactoryIndex(), main(), XrdCryptoX509::MatchHostnames(), XrdSutPFile::Open(), operator<<(), operator=(), operator==(), XrdCryptosslX509::ParentFile(), XrdCryptosslX509Crl::ParentFile(), XrdOfsConfigCP::Parse(), ParseArguments(), XrdHttpProtocol::Process(), XrdHttpReq::ProcessHTTPReq(), ReadPasswd(), ReadPuk(), XrdHttpReq::Redir(), XrdSutPFCache::Refresh(), replace(), rfind(), SavePasswd(), SavePuk(), XrdSutBuffer::Serialized(), XrdCryptosslX509::Subject(), XrdCryptosslX509Req::Subject(), XrdCryptosslX509Req::SubjectHash(), XrdCryptosslX509::SubjectHash(), XrdSutBucket::Update(), XrdSutBuffer::UpdateBucket(), XrdCryptoX509Chain::Verify(), XrdVomsFun::VOMSFun(), XrdVomsFun::VOMSInit(), XrdAccAuthorizeObject(), XrdOfsgetPrepare(), XrdSecgsiGMAPFun(), XrdSecgsiGMAPInit(), XrdSecProtocolgsiInit(), XrdSecProtocolpwdInit(), XrdSecProtocolztnInit(), XrdSutAskConfirm(), XrdSutExpand(), XrdSutHome(), XrdSutMkdir(), XrdSutParseTime(), XrdOssSys::xspace(), and XrdOssSys::xspaceBuild().
|
inline |
Definition at line 280 of file XrdOucString.hh.
Referenced by XrdOucGatherConf::LastLine().
bool XrdOucString::endswith | ( | char | c | ) |
Definition at line 406 of file XrdOucString.cc.
References rfind().
Referenced by XrdOucGatherConf::XrdOucGatherConf(), FindMatchingCondition(), XrdSecProtocolgsi::Init(), XrdSecProtocolpwd::Init(), main(), XrdXrootdProtocol::Process2(), XrdHttpReq::ProcessHTTPReq(), and XrdOssSys::xspace().
bool XrdOucString::endswith | ( | const char * | s | ) |
Definition at line 414 of file XrdOucString.cc.
References rfind().
|
inline |
Definition at line 294 of file XrdOucString.hh.
References c_str(), and endswith().
Referenced by endswith().
int XrdOucString::erase | ( | const char * | s, |
int | from = 0 , |
||
int | to = -1 |
||
) |
Definition at line 866 of file XrdOucString.cc.
References replace(), and XrdZip::to().
int XrdOucString::erase | ( | int | start = 0 , |
int | size = 0 |
||
) |
Definition at line 827 of file XrdOucString.cc.
Referenced by XrdSecProtocolgsi::Authenticate(), erasefromend(), erasefromstart(), XrdSecProtocolgsi::Init(), XrdSecProtocolpwd::Init(), LocateFactoryIndex(), main(), ParseArguments(), XrdSutExpand(), and XrdSutParseTime().
int XrdOucString::erase | ( | XrdOucString | s, |
int | from = 0 , |
||
int | to = -1 |
||
) |
Definition at line 876 of file XrdOucString.cc.
References c_str(), replace(), and XrdZip::to().
|
inline |
Definition at line 329 of file XrdOucString.hh.
References erase().
Referenced by XrdHttpReq::ProcessHTTPReq(), and XrdOssSys::xspaceBuild().
|
inline |
Definition at line 328 of file XrdOucString.hh.
References erase().
Referenced by XrdOucGMap::XrdOucGMap(), XrdCryptoX509::MatchHostnames(), and XrdAccAuthorizeObject().
int XrdOucString::find | ( | const char * | s, |
int | start = 0 |
||
) |
Definition at line 306 of file XrdOucString.cc.
References find(), and STR_NPOS.
int XrdOucString::find | ( | const char | c, |
int | start = 0 , |
||
bool | forward = 1 |
||
) |
Definition at line 260 of file XrdOucString.cc.
References STR_NPOS.
Referenced by AddPassword(), XrdSecProtocolgsi::Authenticate(), beginswith(), find(), FindMatchingCondition(), replace(), rfind(), tokenize(), XrdVomsFun::VOMSInit(), XrdSutExpand(), XrdSutMkdir(), XrdSutParseTime(), and XrdSutResolve().
int XrdOucString::find | ( | XrdOucString | s, |
int | start = 0 |
||
) |
Definition at line 296 of file XrdOucString.cc.
References c_str(), and find().
int XrdOucString::form | ( | const char * | fmt, |
... | |||
) |
Definition at line 225 of file XrdOucString.cc.
References XOSINTFORM.
Referenced by XrdSecProtocolgsi::Authenticate(), and XrdSecProtocolgsi::getCredentials().
|
static |
Definition at line 243 of file XrdOucString.cc.
References setbuffer(), and XOSINTFORM.
|
static |
Definition at line 1206 of file XrdOucString.cc.
void XrdOucString::hardreset | ( | ) |
Definition at line 952 of file XrdOucString.cc.
Referenced by AddPassword().
void XrdOucString::insert | ( | const char * | s, |
int | start = -1 , |
||
int | lmx = 0 |
||
) |
Definition at line 633 of file XrdOucString.cc.
void XrdOucString::insert | ( | const char | c, |
int | start = -1 |
||
) |
Definition at line 680 of file XrdOucString.cc.
References insert().
void XrdOucString::insert | ( | const int | i, |
int | start = -1 |
||
) |
Definition at line 691 of file XrdOucString.cc.
References kMAXINT64LEN.
Referenced by XrdSecProtocolgsi::XrdSecProtocolgsi(), XrdSecProtocolpwd::XrdSecProtocolpwd(), AddPassword(), append(), AskConfirm(), CheckOption(), XrdSecProtocolgsi::Init(), XrdSecProtocolpwd::Init(), insert(), main(), operator+(), ParseArguments(), XrdCryptosslNameOneLine(), XrdSutAskConfirm(), and XrdSutExpand().
void XrdOucString::insert | ( | const XrdOucString | s, |
int | start = -1 |
||
) |
bool XrdOucString::isdigit | ( | int | from = 0 , |
int | to = -1 |
||
) |
Definition at line 1272 of file XrdOucString.cc.
References XrdZip::to().
Referenced by XrdOucGMap::XrdOucGMap(), atoi(), and XrdVomsFun::VOMSInit().
int XrdOucString::keep | ( | int | start = 0 , |
int | size = 0 |
||
) |
Definition at line 554 of file XrdOucString.cc.
|
inline |
Definition at line 279 of file XrdOucString.hh.
Referenced by XrdOucGatherConf::XrdOucGatherConf(), XrdOucGMap::XrdOucGMap(), XrdOucString(), XrdSecProtocolgsi::XrdSecProtocolgsi(), XrdSecProtocolpwd::XrdSecProtocolpwd(), XrdSutBucket::XrdSutBucket(), AddPassword(), AskConfirm(), XrdSecProtocolgsi::Authenticate(), XrdSecProtocolpwd::Authenticate(), XrdCryptoX509Chain::CAhash(), XrdCryptoX509Chain::CAname(), cfOut(), XrdNetPMarkCfg::Config(), Display(), XrdOucGMap::dn2user(), XrdHttpProtocol::doChksum(), XrdSutBuffer::Dump(), XrdOucGatherConf::EchoLine(), XrdCryptoX509Chain::EEChash(), XrdCryptoX509Chain::EECname(), ExpPuk(), XrdSutPFCache::Flush(), XrdOucGatherConf::Gather(), XrdSecProtocolgsi::getCredentials(), XrdSecProtocolpwd::getCredentials(), XrdSecProtocolgsi::Init(), XrdSecProtocolpwd::Init(), XrdCryptosslX509::Issuer(), XrdCryptosslX509Crl::Issuer(), XrdCryptosslX509Crl::IssuerHash(), XrdCryptosslX509::IssuerHash(), main(), XrdCryptoX509::MatchHostnames(), operator+(), operator+=(), operator==(), ParseArguments(), XrdHttpProtocol::Process(), XrdHttpReq::ProcessHTTPReq(), ReadPasswd(), ReadPuk(), XrdSutPFCache::Refresh(), XrdCryptoX509Chain::Reorder(), SavePasswd(), SavePuk(), XrdSutBuffer::Serialized(), XrdCryptosslX509::Subject(), XrdCryptosslX509Req::Subject(), XrdCryptosslX509Req::SubjectHash(), XrdCryptosslX509::SubjectHash(), tokenize(), XrdSutBucket::Update(), XrdSutBuffer::UpdateBucket(), XrdVomsFun::VOMSFun(), XrdVomsFun::VOMSInit(), XrdAccAuthorizeObject(), XrdOfsgetPrepare(), XrdSecgsiGMAPFun(), XrdSecgsiGMAPInit(), XrdSecProtocolgsiInit(), XrdSecProtocolpwdInit(), XrdSutAskConfirm(), XrdSutExpand(), XrdSutGetLine(), XrdSutHome(), XrdSutMkdir(), XrdSutParseTime(), and XrdSutResolve().
void XrdOucString::lower | ( | int | pos, |
int | size = 0 |
||
) |
Definition at line 886 of file XrdOucString.cc.
Referenced by AskConfirm(), XrdCryptoX509::MatchHostnames(), and XrdSutAskConfirm().
int XrdOucString::matches | ( | const char * | s, |
char | wch = '*' |
||
) |
Definition at line 426 of file XrdOucString.cc.
Referenced by FindMatchingCondition(), XrdCryptoX509::MatchHostnames(), XrdSutPFile::ReadEntry(), and XrdSutPFile::SearchEntries().
|
inline |
Definition at line 361 of file XrdOucString.hh.
|
inline |
Definition at line 360 of file XrdOucString.hh.
|
inline |
Definition at line 359 of file XrdOucString.hh.
|
inline |
Definition at line 362 of file XrdOucString.hh.
XrdOucString & XrdOucString::operator+= | ( | const char * | s | ) |
Definition at line 1082 of file XrdOucString.cc.
References append().
XrdOucString & XrdOucString::operator+= | ( | const char | c | ) |
Definition at line 1102 of file XrdOucString.cc.
References append().
XrdOucString & XrdOucString::operator+= | ( | const int | i | ) |
Definition at line 1111 of file XrdOucString.cc.
References append().
XrdOucString & XrdOucString::operator+= | ( | const XrdOucString | s | ) |
XrdOucString & XrdOucString::operator= | ( | const char * | s | ) |
Definition at line 1004 of file XrdOucString.cc.
References assign().
XrdOucString & XrdOucString::operator= | ( | const char | c | ) |
Definition at line 994 of file XrdOucString.cc.
References assign().
XrdOucString & XrdOucString::operator= | ( | const int | i | ) |
Definition at line 983 of file XrdOucString.cc.
References assign(), and kMAXINT64LEN.
XrdOucString & XrdOucString::operator= | ( | const XrdOucString | s | ) |
int XrdOucString::operator== | ( | const char * | s | ) |
Definition at line 1121 of file XrdOucString.cc.
int XrdOucString::operator== | ( | const char | c | ) |
Definition at line 1143 of file XrdOucString.cc.
int XrdOucString::operator== | ( | const int | i | ) |
int XrdOucString::operator== | ( | const XrdOucString | s | ) |
Definition at line 1132 of file XrdOucString.cc.
References c_str(), and length().
char & XrdOucString::operator[] | ( | int | j | ) |
Definition at line 1023 of file XrdOucString.cc.
int XrdOucString::replace | ( | const char * | s1, |
const char * | s2, | ||
int | from = 0 , |
||
int | to = -1 |
||
) |
Definition at line 733 of file XrdOucString.cc.
References find(), rfind(), and XrdZip::to().
Referenced by XrdCryptosslX509Crl::XrdCryptosslX509Crl(), erase(), replace(), XrdCryptosslNameOneLine(), XrdSutResolve(), and XrdOssSys::xspace().
int XrdOucString::replace | ( | const char * | s1, |
const XrdOucString | s2, | ||
int | from = 0 , |
||
int | to = -1 |
||
) |
Definition at line 712 of file XrdOucString.cc.
References c_str(), replace(), and XrdZip::to().
int XrdOucString::replace | ( | const XrdOucString | s1, |
const char * | s2, | ||
int | from = 0 , |
||
int | to = -1 |
||
) |
Definition at line 702 of file XrdOucString.cc.
References c_str(), replace(), and XrdZip::to().
int XrdOucString::replace | ( | const XrdOucString | s1, |
const XrdOucString | s2, | ||
int | from = 0 , |
||
int | to = -1 |
||
) |
Definition at line 722 of file XrdOucString.cc.
References c_str(), replace(), and XrdZip::to().
void XrdOucString::reset | ( | const char | c, |
int | j = 0 , |
||
int | k = -1 |
||
) |
Definition at line 965 of file XrdOucString.cc.
|
inline |
Definition at line 301 of file XrdOucString.hh.
Referenced by XrdSecProtocolpwd::XrdSecProtocolpwd(), and XrdOucGatherConf::Gather().
int XrdOucString::rfind | ( | const char * | s, |
int | start = STR_NPOS |
||
) |
Definition at line 357 of file XrdOucString.cc.
References find(), and STR_NPOS.
|
inline |
Definition at line 285 of file XrdOucString.hh.
References find().
Referenced by endswith(), XrdSecProtocolpwd::Init(), LocateFactoryIndex(), replace(), and rfind().
int XrdOucString::rfind | ( | XrdOucString | s, |
int | start = STR_NPOS |
||
) |
Definition at line 346 of file XrdOucString.cc.
References c_str(), and rfind().
|
static |
Definition at line 1214 of file XrdOucString.cc.
void XrdOucString::setbuffer | ( | char * | buf | ) |
Definition at line 209 of file XrdOucString.cc.
Referenced by form().
int XrdOucString::tokenize | ( | XrdOucString & | tok, |
int | from, | ||
char | del = ':' |
||
) |
Definition at line 1222 of file XrdOucString.cc.
References assign(), find(), and length().
Referenced by XrdCryptosslX509Crl::XrdCryptosslX509Crl(), XrdVomsMapfile::Apply(), XrdSecProtocolgsi::Authenticate(), Display(), XrdOucUtils::findPgm(), XrdSecProtocolgsi::Init(), XrdSecProtocolpwd::Init(), XrdCryptoX509::MatchHostnames(), ParseCrypto(), XrdVomsFun::VOMSInit(), XrdAccAuthorizeObject(), and XrdOfsgetPrepare().
void XrdOucString::upper | ( | int | pos, |
int | size = 0 |
||
) |
Definition at line 919 of file XrdOucString.cc.
|
friend |
Definition at line 1038 of file XrdOucString.cc.
|
friend |
Definition at line 1060 of file XrdOucString.cc.
|
friend |
Definition at line 1071 of file XrdOucString.cc.
|
friend |
Definition at line 1049 of file XrdOucString.cc.