Skip to main content

Module strings

Module strings 

Source
Expand description

String builtins and data types.

Although we would like to, the R6RS standard of Rust precludes us from using the standard library String type by mandating O(1) lookups of characters from indices. This means that Scheme strings are vectors of unicode code points rather that UTF-8 strings.

Structs§

WideString
A string that is a vector of characters, rather than a vector bytes encoding a utf-8 string. This is because R6RS mandates O(1) lookups of character indices.

Functions§

list
make_string
string
string_copy
string_eq_pred
string_foldcase
string_greater_equal_pred
string_greater_pred
string_length
string_less_equal_pred
string_less_pred
string_pred
string_ref
string_set_bang
string_to_list
string_to_vector
substring