Base class for the current position of a string parser, holding both the parsed string and the position within the parsed string.
More...
|
| | Parse_position (const std::string_view &source, std::size_t int_pos=0) |
| | Construct a new Parse_position from the given range. More...
|
| |
| | Parse_position ()=default |
| | Construct a new object. More...
|
| |
| const char * | get_pointer () const |
| | Dereference the iterator and return the value. More...
|
| |
| void | advance (std::ptrdiff_t delta) |
| | Move the iterator delta steps. More...
|
| |
| std::ptrdiff_t | distance_from (const Parse_position &other) const |
| | Return the distance from iterator other to this. More...
|
| |
| bool | is_sentinel () const |
| | Return true if this iterator is at the end. More...
|
| |
| void | set_int_pos (std::size_t int_pos_arg) |
| | Set the position to the given one. More...
|
| |
| std::size_t | int_pos () const |
| | Return the current position as an integer. More...
|
| |
| const char * | pos () const |
| | Return the current position as a char pointer. More...
|
| |
| const unsigned char * | upos () const |
| | Return the current position as an unsigned char pointer. More...
|
| |
| const std::byte * | bpos () const |
| | Return the current position as an std::byte pointer. More...
|
| |
| const char * | begin () const |
| | Return pointer to the beginning of the underlying string. More...
|
| |
| const unsigned char * | ubegin () const |
| | Return pointer to the beginning of the underlying string. More...
|
| |
| const std::byte * | bbegin () const |
| | Return pointer to the beginning of the underlying string. More...
|
| |
| const char * | end () const |
| | Return pointer to the end of the underlying string. More...
|
| |
| const unsigned char * | uend () const |
| | Return pointer to the end of the underlying string. More...
|
| |
| const std::byte * | bend () const |
| | Return pointer to the end of the underlying string. More...
|
| |
| std::size_t | remaining_size () const |
| | Return the remaining size. More...
|
| |
| std::size_t | str_size () const |
| | Return the length of the underlying string. More...
|
| |
| std::string_view | parsed_str () const |
| | Return a string_view over the left part of the string, up to the position. More...
|
| |
| std::string_view | remaining_str () const |
| | Return a string_view over the remaining string. More...
|
| |
| std::string_view | str () const |
| | Return a string_view over the underlying string. More...
|
| |
| decltype(auto) | operator* () const |
| | Dereference operator, which returns the current value. More...
|
| |
| auto | operator-> () const |
| | Arrow operator, return a pointer (possibly a fancy pointer) to the current element. More...
|
| |
| Self_t & | operator++ () |
| | Pre-increment operator, which advances the position one step and returns a reference to the iterator itself. More...
|
| |
| auto | operator++ (int) |
| | Post-increment operator, which advances the position one step. More...
|
| |
| Self_t & | operator-- () |
| | Pre-decrement iterator, which moves one step back and returns a reference to the iterator itself. More...
|
| |
| auto | operator-- (int) |
| | Post-decrement operator, which moves one step back and returns a copy of the iterator before the decrement. More...
|
| |
| Self_t & | operator+= (std::ptrdiff_t delta) |
| | Addition assignment operator, which moves the iterator forward by the given number of steps, and returns a reference to the iterator itself. More...
|
| |
| Self_t & | operator-= (std::ptrdiff_t delta) |
| | Subtraction assignment operator, which moves the iterator backward by the given number of steps, and returns a reference to the iterator itself. More...
|
| |
| Self_t | operator+ (std::ptrdiff_t delta) const |
| | Addition operator, which returns a new iterator that is the given number of steps ahead of the current iterator. More...
|
| |
| Self_t | operator- (std::ptrdiff_t delta) const |
| | Subtraction-of-integer operator, which returns a new iterator that is the given number of steps behind of the current iterator. More...
|
| |
| std::ptrdiff_t | operator- (const Self_t &other) const |
| | Subtraction-of-iterator operator, which returns the number of steps from other this. More...
|
| |
| decltype(auto) | operator[] (std::ptrdiff_t delta) const |
| | Subscript operator, which returns a new iterator that is the given number of steps ahead of the current iterator. More...
|
| |
template<class Self_tp>
class mysql::strconv::detail::Parse_position< Self_tp >
Base class for the current position of a string parser, holding both the parsed string and the position within the parsed string.
Subclasses are contiguous iterators over the characters in the parsed string.
- Template Parameters
-
| Self_tp | The subclass inheriting from this class. |