#include <XrdPssUtils.hh>
|
static const char * | getDomain (const char *hName) |
|
static bool | is4Xrootd (const char *pname) |
|
static const char * | valProt (const char *pname, int &plen, int adj=0) |
|
static bool | Vectorize (char *str, std::vector< char * > &vec, char sep) |
|
Definition at line 35 of file XrdPssUtils.hh.
◆ XrdPssUtils()
XrdPssUtils::XrdPssUtils |
( |
| ) |
|
|
inline |
◆ ~XrdPssUtils()
XrdPssUtils::~XrdPssUtils |
( |
| ) |
|
|
inline |
◆ getDomain()
const char * XrdPssUtils::getDomain |
( |
const char * |
hName | ) |
|
|
static |
Definition at line 56 of file XrdPssUtils.cc.
58 const char *dot = index(hName,
'.');
60 if (dot)
return dot+1;
◆ is4Xrootd()
bool XrdPssUtils::is4Xrootd |
( |
const char * |
pname | ) |
|
|
static |
Definition at line 68 of file XrdPssUtils.cc.
72 if (*pname ==
'x' || *pname ==
'r')
73 for (
int i = xrBeg; i < pTNum; i++)
74 if (!strncmp(pname, pTab[i].pname, pTab[i].pnlen))
return true;
Referenced by XrdPssUrlInfo::addCGI().
◆ valProt()
const char * XrdPssUtils::valProt |
( |
const char * |
pname, |
|
|
int & |
plen, |
|
|
int |
adj = 0 |
|
) |
| |
|
static |
Definition at line 82 of file XrdPssUtils.cc.
88 for (i = 0; i < pTNum; i++)
89 {
if (!strncmp(pname, pTab[i].pname, pTab[i].pnlen-adj))
break;}
90 if (i >= pTNum)
return 0;
91 plen = pTab[i].pnlen-adj;
Referenced by XrdPssSys::P2OUT().
◆ Vectorize()
bool XrdPssUtils::Vectorize |
( |
char * |
str, |
|
|
std::vector< char * > & |
vec, |
|
|
char |
sep |
|
) |
| |
|
static |
Definition at line 99 of file XrdPssUtils.cc.
105 do {seppos = index(str, sep);
107 {
if (!(*(seppos+1)))
return false;
110 if (!strlen(str))
return false;
113 }
while(seppos && *str);
The documentation for this class was generated from the following files: