Module std::string

String functions

Alumina "strings" are simply byte slices (&[u8]) without any assumed encoding. An exception to this are string literals in code. They are treated as UTF-8 (but not required to be valid UTF-8), e.g.

This module contains various functions for working with strings, a heap-allocated string type (StringBuf). Unicode-specific functionality is provided by the unicode module.


Utilities for handling Unicode text


A heap-allocated string.
Iterator over parts of a string split by a delimiter.
Non-allocating formattable object that replaces all occurrences of needle with replacement.
Non-allocating formattable object that joins the parts of a string with the given delimiter.