rstd 0.1.0
Loading...
Searching...
No Matches
rstd::str_::Chars Struct Referenceexport
module rstd.core

A hand-rolled iterator over Unicode code points in a UTF-8 string slice. More...

Public Member Functions

constexpr auto is_empty () const noexcept -> bool
 Returns true if there are no remaining code points.
 
constexpr auto next_unchecked () noexcept -> char32_t
 Decodes and returns the next code point, advancing the position.
 

Detailed Description

A hand-rolled iterator over Unicode code points in a UTF-8 string slice.

Supports next() for manual iteration and begin()/end() for range-for.

Member Function Documentation

◆ next_unchecked()

auto rstd::str_::Chars::next_unchecked ( ) -> char32_t
inlineconstexprnoexcept

Decodes and returns the next code point, advancing the position.

Returns char_::REPLACEMENT with no advance if already at end. Use is_empty() to check before calling.


The documentation for this struct was generated from the following file: