API Documentation
MAIN PAGE
NAMESPACES
CLASSES
Documentation
Headers
NilkinsLog
Data
String.h
1
// String.h
3
//
5
6
namespace
nkLog
7
{
17
class
String
final
18
{
19
public :
20
21
// Functions
22
// Constructor, destructor
27
String
() noexcept ;
34
String
(
char
c) noexcept ;
41
String
(const
char
* data) noexcept ;
48
String
(
unsigned
long
long
size) noexcept ;
56
String
(const
char
* data,
unsigned
long
long
size) noexcept ;
62
String
(const
String
& other) noexcept ;
68
String
(
String
&& other) noexcept ;
72
~
String
() ;
73
74
// Getters
78
char
*
getData
() const ;
82
unsigned
long
long
getSize
() const ;
83
84
// Operators
90
char
operator[] (
unsigned
long
long
index) const ;
96
char
& operator[] (
unsigned
long
long
index) ;
103
String
& operator= (const
StringView
& other) ;
110
String
& operator= (
String
&& other) ;
117
String
operator+ (
char
c) const ;
124
String
operator+ (const
StringView
& other) const ;
130
void
operator+= (
char
c) ;
136
void
operator+= (const
StringView
& other) ;
137
138
public :
139
140
// Inlined constructors
147
String
(const std::
string
& str) noexcept ;
154
String
(const std::string_view& str) noexcept ;
155
156
public :
157
158
// Inlined conversions
163
operator std::
string
() const ;
168
operator std::string_view () const ;
169
} ;
170
178
inline
nkLog
::
String
operator+ (
char
c, const
nkLog
::
String
& str) ;
179
187
inline
nkLog
::
String
operator+ (const
char
* c, const
nkLog
::
String
& str) ;
188
}
nkLog::StringView
Allows to exchange strings with external code.
Definition:
StringView.h:18
nkLog::String::getData
char * getData() const
nkLog::String::String
String() noexcept
nkLog
Encompasses all API of component NilkinsLog.
Definition:
String.h:7
nkLog::String
Allows to exchange strings with external code.
Definition:
String.h:18
nkLog::String::getSize
unsigned long long getSize() const
Generated by
Doxygen
1.8.18