IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /docs/manual/basics.md). For the complete Mojo documentation index, see llms.txt.
Skip to main content
Version: Nightly
For the complete Mojo documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /docs/manual/basics.md).

iterators

Implements the iterators and related utilities for efficient string operations.

Structs

  • CodepointsIter: Iterator over the Codepoints in a string slice, constructed by StringSlice.codepoints().
  • CodepointSliceIter: Iterator for StringSlice over substring slices containing a single Unicode codepoint.
  • GraphemeIndicesIter: Iterator over grapheme clusters paired with their starting byte offset.
  • GraphemeSliceIter: Iterator over grapheme clusters in a string, yielding each cluster as a StringSlice.