|   |   | 
|  | |
#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 (pan_char_t 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. | |
| Public Attributes | |
| size_t | len | 
| pan_char_t const * | ptr | 
| pan_slice_t | ( | ) | 
Constructs a null/empty slice.
| pan_slice_t | ( | pan_char_t 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.
| size_t len | 
Number of characters in the c-style string represented by the slice.
| pan_char_t const* ptr | 
Pointer to the first character in the c-style string represented by the slice.
|  | |
| pantheios Library documentation © Matthew Wilson & Synesis Software, 2006-2011 |  |