Extends the std::string.
More...
#include <PString.h>
Extends the std::string.
Definition at line 17 of file PString.h.
◆ PString() [1/3]
◆ PString() [2/3]
PString::PString |
( |
const std::string & |
str | ) |
|
◆ PString() [3/3]
PString::PString |
( |
const PString & |
other | ) |
|
◆ ~PString()
◆ concatenatePString() [1/2]
void PString::concatenatePString |
( |
const PString & |
other | ) |
|
|
protected |
Concatenate a PString into the current PString.
- Parameters
-
Definition at line 108 of file PString.cpp.
109 std::string tmp(*
this);
110 resize(tmp.size() + other.size());
111 memcpy((
char*)data(), tmp.data(), tmp.size());
112 memcpy((
char*)data() + tmp.size(), other.data(), other.size());
Referenced by operator+=().
◆ concatenatePString() [2/2]
void PString::concatenatePString |
( |
const std::string & |
other | ) |
|
|
protected |
Concatenate a std::string into the current PString.
- Parameters
-
other | : std::string to be added |
Definition at line 118 of file PString.cpp.
119 std::string tmp(*
this);
120 resize(tmp.size() + other.size());
121 memcpy((
char*)data(), tmp.data(), tmp.size());
122 memcpy((
char*)data() + tmp.size(), other.data(), other.size());
◆ copyPString() [1/2]
void PString::copyPString |
( |
const PString & |
other | ) |
|
|
protected |
◆ copyPString() [2/2]
void PString::copyPString |
( |
const std::string & |
other | ) |
|
|
protected |
Copy function of PString.
- Parameters
-
Definition at line 100 of file PString.cpp.
101 resize(other.size());
102 memcpy((
char*)data(), other.data(), other.size());
◆ initialisationPString()
void PString::initialisationPString |
( |
| ) |
|
|
private |
◆ operator+=() [1/3]
◆ operator+=() [2/3]
PString & PString::operator+= |
( |
const std::string & |
other | ) |
|
◆ operator+=() [3/3]
template<typename T >
PString& PString::operator+= |
( |
const T & |
other | ) |
|
|
inline |
◆ operator<<()
template<typename T >
PString& PString::operator<< |
( |
const T & |
other | ) |
|
|
inline |
◆ operator=() [1/2]
◆ operator=() [2/2]
template<typename T >
PString& PString::operator= |
( |
const T & |
other | ) |
|
|
inline |
◆ operator+ [1/3]
◆ operator+ [2/3]
◆ operator+ [3/3]
◆ operator<<
The documentation for this class was generated from the following files:
- /builds/CTA-LAPP/PHOENIX_LIBS/PhoenixMock/tmp_project/StringUtils/src/PString.h
- /builds/CTA-LAPP/PHOENIX_LIBS/PhoenixMock/tmp_project/StringUtils/src/PString.cpp