std.utf.find_all_spaces

std.utf

find_all_spaces(str) -> positions

Find the character positions of all whitespace in a string

Returns an array of character positions (1-indexed) where whitespace characters appear in the string. Only considers printable characters, ignoring ANSI escape sequences.