String
Functions
concat
Concatenate two strings.
| Parameters | Type | Description |
|---|---|---|
| sep | str | Separator |
| left | str | Left string |
| right | str | Right string |
join
Join a list of strings with a separator.
| Parameters | Type | Description |
|---|---|---|
| separator | str | Separator |
| strings | list | List of strings |
lowercase
Convert a string to lowercase.
| Parameters | Type | Description |
|---|---|---|
| string | str | String to convert |
match
Match a string with a pattern.
| Parameters | Type | Description |
|---|---|---|
| strings | list | List of strings |
| pattern | str | Pattern to match |
pad
Pad a string to a given length.
| Parameters | Type | Description |
|---|---|---|
| length | i64 | Length to pad |
| string | str | String to pad |
replace
Replace a string with a replacement.
| Parameters | Type | Description |
|---|---|---|
| strings | list | List of strings |
| pattern | str | Pattern to replace |
| replacement | str | Replacement string |
split
Split a string into a list of strings.
| Parameters | Type | Description |
|---|---|---|
| separator | str | Separator |
| string | str | String to split |
trim
Trim a string.
| Parameters | Type | Description |
|---|---|---|
| string | str | String to trim |
trime
Trim a string from the end.
| Parameters | Type | Description |
|---|---|---|
| string | str | String to trim from the end |
trims
Trim a string from the start.
| Parameters | Type | Description |
|---|---|---|
| string | str | String to trim from the start |
uppercase
Convert a string to uppercase.
| Parameters | Type | Description |
|---|---|---|
| string | str | String to convert |