|
nfx-stringutils 1.2.0
Cross-platform C++ string utilities library with validation and manipulation functions
|
Zero-allocation string splitting iterator for performance-critical paths. More...
#include <nfx/string/Splitter.h>
Classes | |
| class | Iterator |
| Forward iterator for string segments. More... | |
Public Member Functions | |
| template<typename String> | |
| Splitter (String &&str, char delimiter) noexcept | |
| Constructs a Splitter for the given string and delimiter. | |
| Iterator | begin () const noexcept |
| Returns iterator to first segment. | |
| Iterator | end () const noexcept |
| Returns end iterator for range-based loops. | |
Zero-allocation string splitting iterator for performance-critical paths.
Provides efficient string_view-based splitting without heap allocations
Definition at line 48 of file Splitter.h.
|
inlineexplicitnoexcept |
Constructs a Splitter for the given string and delimiter.
Accepts any string-like type that can be converted to std::string_view
| String | Any type convertible to std::string_view (std::string, const char*, etc.) |
| str | String to split |
| delimiter | Character to split on |

|
inlinenoexcept |
Returns iterator to first segment.
|
inlinenoexcept |
Returns end iterator for range-based loops.

