|
nfx-stringutils 1.2.0
Cross-platform C++ string utilities library with validation and manipulation functions
|
Forward iterator for string segments. More...
#include <nfx/string/Splitter.h>
Public Types | |
| using | iterator_category = std::forward_iterator_tag |
| Iterator category tag. | |
| using | value_type = std::string_view |
| Type of values returned by dereferencing the iterator. | |
| using | difference_type = std::ptrdiff_t |
| Type for representing distances between iterators. | |
| using | pointer = const std::string_view* |
| Pointer type to the value_type. | |
| using | reference = std::string_view |
| Reference type returned by dereferencing. | |
Public Member Functions | |
| Iterator () noexcept=default | |
| Default constructor. | |
| Iterator (const Splitter &splitter, bool at_end=false) noexcept | |
| Constructs iterator at beginning or end position. | |
| std::string_view | operator* () const noexcept |
| Dereferences iterator to get current string segment. | |
| Iterator & | operator++ () noexcept |
| Pre-increment operator to advance to next segment. | |
| Iterator | operator++ (int) noexcept |
| Post-increment operator to advance to next segment. | |
| bool | operator== (const Iterator &other) const noexcept |
| Compares iterators for equality. | |
| bool | operator!= (const Iterator &other) const noexcept |
| Compares iterators for inequality. | |
Forward iterator for string segments.
Definition at line 94 of file Splitter.h.
| using nfx::string::Splitter::Iterator::difference_type = std::ptrdiff_t |
Type for representing distances between iterators.
Used by STL algorithms like std::distance and std::advance
Definition at line 117 of file Splitter.h.
| using nfx::string::Splitter::Iterator::iterator_category = std::forward_iterator_tag |
Iterator category tag.
Defines this as a forward iterator, supporting multi-pass guarantee
Definition at line 105 of file Splitter.h.
| using nfx::string::Splitter::Iterator::pointer = const std::string_view* |
Pointer type to the value_type.
Pointer to const string_view for safety
Definition at line 123 of file Splitter.h.
| using nfx::string::Splitter::Iterator::reference = std::string_view |
Reference type returned by dereferencing.
Returns string_view by value (not a true reference)
Definition at line 129 of file Splitter.h.
| using nfx::string::Splitter::Iterator::value_type = std::string_view |
Type of values returned by dereferencing the iterator.
Returns std::string_view for zero-copy string segments
Definition at line 111 of file Splitter.h.
|
inlinedefaultnoexcept |
Default constructor.
Creates an invalid iterator that must be assigned before use

|
inlineexplicitnoexcept |
Constructs iterator at beginning or end position.
| splitter | Reference to the parent Splitter object |
| at_end | Whether to position iterator at end (default: false for begin) |

|
inlinenoexcept |
Compares iterators for inequality.
| other | Iterator to compare with |

|
inlinenoexcept |
Dereferences iterator to get current string segment.
|
inlinenoexcept |
Pre-increment operator to advance to next segment.

|
inlinenoexcept |
Post-increment operator to advance to next segment.

|
inlinenoexcept |
Compares iterators for equality.
| other | Iterator to compare with |
