XRootD
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 1176 of file XrdOucString.cc.

1177 {
1178  // Binary operator+
1179  XrdOucString res(s1,s2.length()+strlen(s1));
1180  res.insert(s2);
1181  return res;
1182 }
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 1185 of file XrdOucString.cc.

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

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 1194 of file XrdOucString.cc.

1195 {
1196  // Binary operator+
1197  XrdOucString res(s.length()+kMAXINT64LEN);
1198  res.insert(i);
1199  res.insert(s);
1200  return res;
1201 }
#define kMAXINT64LEN
Definition: XrdOucString.cc:41

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 1164 of file XrdOucString.cc.

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

References XrdOucString::c_str().

+ Here is the call graph for this function: