Module style::str

source · []
Expand description

String utils for attributes and similar stuff.

Statics

A “space character” according to:

Functions

Whether a character is a HTML whitespace character.

Character is ascii digit

Whether all the string is HTML whitespace.

not_empty 🔒

Reads an exponent from an iterator over chars, for example e100.

Read a decimal fraction.

Read a set of ascii digits and read them into a number.

Split a string on commas.

Split a string on HTML whitespace.

Returns true if a given string has a given prefix with case-insensitive match.

Join a set of strings with a given delimiter join.

Returns an ascii lowercase version of a string, only allocating if needed.

Type Definitions

String. The comments for the Gecko types explain the need for this abstraction.

String. The comments for the Gecko types explain the need for this abstraction.

A static slice of characters.

A static slice of strs.