|
nfx-stringutils 1.2.0
Cross-platform C++ string utilities library with validation and manipulation functions
|
Zero-allocation string splitting utilities for high-performance string processing. More...
#include <cstddef>#include <iterator>#include <string_view>#include "nfx/detail/string/Splitter.inl"
Go to the source code of this file.
Classes | |
| class | nfx::string::Splitter |
| Zero-allocation string splitting iterator for performance-critical paths. More... | |
| class | nfx::string::Splitter::Iterator |
| Forward iterator for string segments. More... | |
Functions | |
| template<typename String> | |
| Splitter | nfx::string::splitView (String &&str, char delimiter) noexcept |
| Templated factory function for zero-copy string splitting. | |
Zero-allocation string splitting utilities for high-performance string processing.
Provides efficient string_view-based splitting without heap allocations, perfect for performance-critical paths and CSV parsing applications
Definition in file Splitter.h.
|
inlinenodiscardnoexcept |
Templated factory function for zero-copy string splitting.
Creates a Splitter for efficient iteration over string segments without heap allocations. 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 |