#include <XrdOucNList.hh>
Definition at line 40 of file XrdOucNList.hh.
◆ XrdOucNList()
XrdOucNList::XrdOucNList |
( |
const char * | name = "", |
|
|
int | nvals = 0 ) |
Definition at line 37 of file XrdOucNList.cc.
38{
39 char *ast;
40
41
42
43 nameL = strdup(name);
44 next = 0;
45 flags = nval;
46
47
48
49 if ((ast = index(nameL, '*')))
50 {namelenL = ast - nameL;
51 *ast = 0;
52 nameR = ast+1;
53 namelenR = strlen(nameR);
54 } else {
55 namelenL = strlen(nameL);
56 namelenR = -1;
57 }
58}
Referenced by XrdOucNList_Anchor::Replace().
◆ ~XrdOucNList()
XrdOucNList::~XrdOucNList |
( |
| ) |
|
|
inline |
◆ Flag()
int XrdOucNList::Flag |
( |
| ) |
|
|
inline |
◆ NameKO() [1/2]
int XrdOucNList::NameKO |
( |
const char * | pd | ) |
|
|
inline |
◆ NameKO() [2/2]
int XrdOucNList::NameKO |
( |
const char * | pd, |
|
|
const int | pl ) |
Definition at line 64 of file XrdOucNList.cc.
65{
66
67
68
69 if (namelenR < 0) return !strcasecmp(pd, nameL);
70
71
72
73 if (namelenL && namelenL <= pl && strncasecmp(pd,nameL,namelenL))
74 return 0;
75
76
77
78 if (!namelenR) return 1;
79 if (namelenR > pl) return 0;
80 return !strcasecmp((pd + pl - namelenR), nameR);
81}
Referenced by XrdOfsTPCAllow::Match(), and NameKO().
◆ NameOK() [1/2]
int XrdOucNList::NameOK |
( |
const char * | pd | ) |
|
|
inline |
◆ NameOK() [2/2]
int XrdOucNList::NameOK |
( |
const char * | pd, |
|
|
const int | pl ) |
Definition at line 87 of file XrdOucNList.cc.
88{
89
90
91
92 if (namelenR < 0) return !strcmp(pd, nameL);
93
94
95
96 if (namelenL && namelenL <= pl && strncmp(pd,nameL,namelenL))
97 return 0;
98
99
100
101 if (!namelenR) return 1;
102 if (namelenR > pl) return 0;
103 return !strcmp((pd + pl - namelenR), nameR);
104}
Referenced by XrdOucNList_Anchor::Find(), and NameOK().
◆ Next()
◆ Set()
void XrdOucNList::Set |
( |
int | fval | ) |
|
|
inline |
◆ XrdOucNList_Anchor
The documentation for this class was generated from the following files: