cu_wchar_t const* cu_wstring_array | ( | cu_wstring_t | s | ) |
The underlying array of s. This is not null-terminated.
cu_wchar_t cu_wstring_at | ( | cu_wstring_t | s, | |
size_t | i | |||
) |
Returns the character at position i.
cu_wstring_t cu_wstring_cat2 | ( | cu_wstring_t | sl, | |
cu_wstring_t | sr | |||
) |
The concatenation of sl and sr.
cu_wstring_t cu_wstring_cat2_o | ( | cu_wstring_t | sl, | |
cu_wstring_t | sr | |||
) |
A variant of cu_wstring_cat2 which returns a dynamically typed object.
cu_wstring_t cu_wstring_cat3 | ( | cu_wstring_t | s0, | |
cu_wstring_t | s1, | |||
cu_wstring_t | s2 | |||
) |
The concatenation of s0, s1, and s2.
int cu_wstring_cmp | ( | cu_wstring_t | sl, | |
cu_wstring_t | sr | |||
) |
Returns negative, zero, or positive where sl is less than, equal to, or greater than sr, respectively, according to some fixed arbitrary ordering.
cu_wstring_t cu_wstring_empty | ( | ) |
Returns an empty string.
cu_bool_t cu_wstring_forall | ( | cu_wstring_t | s, | |
cu_clop(f, cu_bool_t, cu_wchar_t) | ||||
) |
True iff f maps each character of s to true. For procedural usage, f is called in order from first to last character, stopping on the first false return.
cu_wstring_t cu_wstring_image | ( | cu_wstring_t | s, | |
cu_clop(f, cu_wchar_t, cu_wchar_t) | ||||
) |
The image of s under f.
cu_wstring_t cu_wstring_image_o | ( | cu_wstring_t | s, | |
cu_clop(f, cu_wchar_t, cu_wchar_t) | ||||
) |
A variant of cu_wstring_image which returns a dynamically typed object.
size_t cu_wstring_length | ( | cu_wstring_t | s | ) |
The length of s.
cu_wstring_t cu_wstring_of_arr | ( | cu_wchar_t const * | arr, | |
size_t | len | |||
) |
Returns a string with a copy of len characters from arr.
cu_wstring_t cu_wstring_of_arr_o | ( | cu_wchar_t const * | arr, | |
size_t | len | |||
) |
A variant of cu_wstring_of_arr which returns a dynamically typed object.
cu_wstring_t cu_wstring_of_arr_ref | ( | cu_wchar_t const * | arr, | |
size_t | len | |||
) |
Returns a string with a reference to the first len characters of arr.
cu_wstring_t cu_wstring_of_arr_ref_o | ( | cu_wchar_t const * | arr, | |
size_t | len | |||
) |
A variant of cu_wstring_of_arr_ref which returns a dynamically typed object.
cu_wstring_t cu_wstring_of_chararr | ( | char const * | arr, | |
size_t | len | |||
) |
Converts the len bytes UTF-8 string starting at arr to a wide string.
cu_wstring_t cu_wstring_of_charstr | ( | char const * | str | ) |
Converts a zero-terminated UTF-8 string to a wide string.
cu_wstring_t cu_wstring_slice | ( | cu_wstring_t | s, | |
size_t | i, | |||
size_t | j | |||
) |
The slice from character i to (but not including) character j.
cu_wstring_t cu_wstring_slice_o | ( | cu_wstring_t | s, | |
size_t | i, | |||
size_t | j | |||
) |
A variant of cu_wstring_slice which returns a dynamically typed object.
cuoo_type_t cu_wstring_type | ( | ) |
Dynamic type of a cu_wstring_t. Only strings returned by functions ending in _o
are dynamically typed.