Standard Library
std.string
String manipulation utilities for common text operations.
Exported functions
Find the first occurrence of a substring.
Return true when the string contains a substring.
Split a string by a delimiter.
Check if a string starts with a given prefix.
Check if a string ends with a given suffix.
Trim whitespace from the start of a string.
Trim whitespace from the end of a string.
Trim whitespace from both ends of a string.
Reverse a string.
Replace all occurrences of a substring with another string.
Convert a string to lowercase.
Convert a string to uppercase.
Join a list of strings with a separator.
Split text into lines, trimming a trailing "\r" from each line and dropping the final empty line produced by a trailing newline.
Repeat a string count times.