Skip to main content

Module strings

Module strings 

Source
Expand description

Strings, and building interpolated strings.

Functionsยง

nf_string_compare ๐Ÿ”’
Whether a sorts before (-1), with (0) or after (1) b, both borrowed.
nf_string_concat ๐Ÿ”’
a + b, with both borrowed.
nf_string_len ๐Ÿ”’
How many characters the borrowed string holds.
nf_string_new ๐Ÿ”’ โš 
A string with a copy of len bytes of UTF-8 at bytes.
nf_text_finish ๐Ÿ”’ โš 
Safety
nf_text_new ๐Ÿ”’
Starts an interpolated string, which nf_text_finish turns into a string.
nf_text_push ๐Ÿ”’ โš 
Appends the borrowed value as it reads inside a string.
nf_text_push_str ๐Ÿ”’ โš 
Appends len bytes of UTF-8 at bytes.