#include <pantheios/pantheios.h>
This structure represents a character string as a slice, in the form of a pointer to the first character, and a count of the number of characters in the slice.
Public Member Functions | |
pan_slice_t () | |
Constructs a null/empty slice. | |
pan_slice_t (char const *p, size_t l) | |
Constructs a slice from the given pointer and length. | |
pan_slice_t (pan_slice_t const &rhs) | |
Copy constructor. | |
pan_slice_t & | operator= (pan_slice_t const &rhs) |
Copy assignment operator. | |
Static Public Member Functions | |
static size_t | get_lazy_length (size_t fromLen, size_t toLen) |
Public Attributes | |
size_t | len |
Number of characters in the c-style string represented by the slice. | |
char const * | ptr |
Pointer to the first character in the c-style string represented by the slice. |
|
Constructs a null/empty slice.
|
|
Constructs a slice from the given pointer and length.
|
|
Copy constructor.
|
|
|
|
Copy assignment operator.
|
|
Number of characters in the c-style string represented by the slice.
|
|
Pointer to the first character in the c-style string represented by the slice.
|
|
|
pantheios Library documentation © Matthew Wilson, 2006 |
|