#include <XrdOucSiteName.hh>
|
static const char * | Set (const char *name, int maxlen=15) |
|
Definition at line 33 of file XrdOucSiteName.hh.
◆ XrdOucSiteName()
XrdOucSiteName::XrdOucSiteName |
( |
| ) |
|
|
inline |
◆ ~XrdOucSiteName()
XrdOucSiteName::~XrdOucSiteName |
( |
| ) |
|
|
inline |
◆ Set()
const char * XrdOucSiteName::Set |
( |
const char * | name, |
|
|
int | maxlen = 15 ) |
|
static |
Definition at line 37 of file XrdOucSiteName.cc.
38{
39 char *site;
40 int i, n;
41
42
43
44 if (name)
45 {site = strdup(name);
46 n = strlen(site);
47 if (n > maxlen) {site[maxlen] = 0; n = maxlen;}
48 for (i = 0; i < n; i++)
49 if (!isalnum(site[i]) && !strspn(&(site[i]), "_-:")) site[i] = '.';
50 } else site = strdup("");
51
52
53
55
56
57
58 return site;
59}
static int Export(const char *Var, const char *Val)
References XrdOucEnv::Export().
Referenced by XrdConfig::Configure(), and XrdFrmConfig::Configure().
The documentation for this class was generated from the following files: