Skip to main content

Module string_semantics

Module string_semantics 

Source
Expand description

String operations with the same indexing model as the original Windows TSTR implementation.

Siglus uses std::basic_string<TCHAR> and indexes strings by UTF-16 code units in its Unicode build. Rust strings are UTF-8, so byte offsets and Unicode-scalar indexes are not interchangeable with script-visible TSTR indexes.

Functionsยง

ascii_lower
ascii_upper
display_width
display_width_char
is_hankaku
left_by_display_width
mid_by_display_width
right_by_display_width
rsearch_ascii_case_insensitive
search_ascii_case_insensitive
utf16_code_unit
utf16_left
utf16_len
utf16_right
utf16_slice