|
cppcore
A small, portable C++ core library
|
#include <TStringView.h>
Public Types | |
| using | const_iterator = const T* |
Public Member Functions | |
| TStringView ()=default | |
| The default constructor. | |
| TStringView (const T *ptr, size_t len) | |
| The constructor with the buffer. | |
| ~TStringView ()=default | |
| The class destructor. | |
| size_t | size () const |
| Will return the size of the view. | |
| const T * | data (size_t offset=0) const |
| Will return the data with an offset, if given. | |
| bool | isEmpty () const |
| Will return true, if there is no string to view. | |
| const_iterator | begin () const |
| Will return the first entry. | |
| const_iterator | end () const |
| Will return the end entry. | |
Definition at line 36 of file TStringView.h.
| using cppcore::TStringView< T >::const_iterator = const T* |
Definition at line 38 of file TStringView.h.
|
default |
The default constructor.
|
inline |
The constructor with the buffer.
| ptr | Pointer to the buffer |
| len | The buffer size |
Definition at line 78 of file TStringView.h.
|
default |
The class destructor.
|
inline |
|
inline |
Will return the data with an offset, if given.
| offset | The offset in the view. |
Definition at line 89 of file TStringView.h.
|
inline |
Will return the end entry.
Definition at line 110 of file TStringView.h.
Referenced by begin().
|
inline |
Will return true, if there is no string to view.
Definition at line 97 of file TStringView.h.
Referenced by begin().
|
inline |
Will return the size of the view.
Definition at line 84 of file TStringView.h.