XRootD
Loading...
Searching...
No Matches
XrdOucString.hh File Reference
#include "XrdSys/XrdSysHeaders.hh"
#include <cstdio>
#include <cstdlib>
#include <cstdarg>
+ Include dependency graph for XrdOucString.hh:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  XrdOucString
 

Macros

#define STR_NPOS   -1
 

Functions

XrdOucString const operator+ (const char *s1, const XrdOucString s2)
 
XrdOucString const operator+ (const char c, const XrdOucString s)
 
XrdOucString const operator+ (const int i, const XrdOucString s)
 
std::ostream & operator<< (std::ostream &, const XrdOucString s)
 

Macro Definition Documentation

◆ STR_NPOS

#define STR_NPOS   -1

Definition at line 250 of file XrdOucString.hh.

Function Documentation

◆ operator+() [1/3]

XrdOucString const operator+ ( const char *  s1,
const XrdOucString  s2 
)

Definition at line 1178 of file XrdOucString.cc.

1179{
1180 // Binary operator+
1181 XrdOucString res(s1,s2.length()+strlen(s1));
1182 res.insert(s2);
1183 return res;
1184}
int length() const

References XrdOucString::insert(), and XrdOucString::length().

+ Here is the call graph for this function:

◆ operator+() [2/3]

XrdOucString const operator+ ( const char  c,
const XrdOucString  s 
)

Definition at line 1187 of file XrdOucString.cc.

1188{
1189 // Binary operator+
1190 XrdOucString res(c,s.length()+1);
1191 res.insert(s);
1192 return res;
1193}

References XrdOucString::insert(), and XrdOucString::length().

+ Here is the call graph for this function:

◆ operator+() [3/3]

XrdOucString const operator+ ( const int  i,
const XrdOucString  s 
)

Definition at line 1196 of file XrdOucString.cc.

1197{
1198 // Binary operator+
1200 res.insert(i);
1201 res.insert(s);
1202 return res;
1203}
#define kMAXINT64LEN

References XrdOucString::insert(), kMAXINT64LEN, and XrdOucString::length().

+ Here is the call graph for this function:

◆ operator<<()

std::ostream & operator<< ( std::ostream &  os,
const XrdOucString  s 
)

Definition at line 1166 of file XrdOucString.cc.

1167{
1168 // Operator << is useful to print a string into a stream
1169
1170 if (s.c_str())
1171 os << s.c_str();
1172 else
1173 os << "";
1174 return os;
1175}
const char * c_str() const

References XrdOucString::c_str().

+ Here is the call graph for this function: