PhoenixMock  1.8.7
Tools to split/merge/print mock used in Phoenix
PString.cpp File Reference
#include "PString.h"
+ Include dependency graph for PString.cpp:

Go to the source code of this file.

Functions

PString operator+ (const PString &other1, const PString &other2)
 Concatenate 2 PString together. More...
 
PString operator<< (const PString &other1, const PString &other2)
 Concatenate 2 PString together. More...
 

Function Documentation

◆ operator+()

PString operator+ ( const PString other1,
const PString other2 
)

Concatenate 2 PString together.

Parameters
other1: left PString
other2: right PString
Returns
concatenated PString

Definition at line 72 of file PString.cpp.

72  {
73  PString res(other1);
74  res += other2;
75  return res;
76 }

◆ operator<<()

PString operator<< ( const PString other1,
const PString other2 
)

Concatenate 2 PString together.

Parameters
other1: left PString
other2: right PString
Returns
concatenated PString

Definition at line 83 of file PString.cpp.

83  {
84  PString res(other1);
85  res += other2;
86  return res;
87 }
PString
Extends the std::string.
Definition: PString.h:17