Skip to main content

Module strings

Module strings 

Source
Expand description

String utilities

Windjammer’s std::strings module maps to these functions.

Functions§

contains
Check if string contains substring
ends_with
Check if string ends with suffix
is_empty
Check if string is empty
join
Join strings with delimiter
len
Get string length
replace
Replace all occurrences
split
Split string by delimiter
starts_with
Check if string starts with prefix
substring
Get substring from start to end index (exclusive)
to_lower
Convert to lowercase
to_upper
Convert to uppercase
trim
Trim whitespace