x-lang

← Index

x/type/str

String library: the Str8 / StrUtf8 protocol classes and byte equality.

The string library is the protocol classes Str8 / StrUtf8, with Str naming the active protocol (StrUtf8 by default). Use (Str append a b), (Str length s), etc.; (help Str8 method) for per-method docs.

str=? is always byte-level; the byte view of a string is the Str8 class.

str=?

String equality (byte-level; the same result as code-point equality).

Parameters:

Returns: BOOL — #t if a and b are equal

Examples:

(str=? "ab" "ab") => #t