PString.h File Reference

Detailed Description

Class PString: an unicode character strings (use copy-on-write idiom).

Definition in file PString.h.

#include <PObject.h>
#include <cstddef>
#include <cstdlib>
Include dependency graph for PString.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


class  PString
 The PString class provides an Unicode character strings. More...


PAPILLON_API_CORE papillon::PString operator+ (const papillon::PString &lhs, const papillon::PString &rhs)
 Constructs a new string by concatenating string lhs with string rhs. More...
template<typename T >
PString ToString (const T &t)
PString ToString< papillon::int32 > (const papillon::int32 &t)

Function Documentation

◆ operator+()

PAPILLON_API_CORE papillon::PString operator+ ( const papillon::PString &  lhs,
const papillon::PString &  rhs 

Constructs a new string by concatenating string lhs with string rhs.

Having this as a friend function instead of a member function means we can handle both char* + PString and PString + char*

◆ ToString()

template<typename T >
PString ToString ( const T &  t)

Definition at line 757 of file PString.h.

◆ ToString< papillon::int32 >()

PString ToString< papillon::int32 > ( const papillon::int32 &  t)

Definition at line 758 of file PString.h.