Available on crate feature
unicode_expressions
only.Functionsยง
- char_
length - the number of characters in the
string
- character_
length - the number of characters in the
string
- find_
in_ set - Returns a value in the range of 1 to N if the string
str
is in the string liststrlist
consisting of N substrings - initcap
- converts the first letter of each word in
string
in uppercase and the remaining characters in lowercase - instr
- finds the position from where the
substring
matches thestring
- left
- returns the first
n
characters in thestring
- length
- the number of characters in the
string
- lpad
- fill up a string to the length by prepending the characters
- position
- finds the position from where the
substring
matches thestring
- reverse
- reverses the
string
- right
- returns the last
n
characters in thestring
- rpad
- fill up a string to the length by appending the characters
- strpos
- finds the position from where the
substring
matches thestring
- substr
- substring from the
position
to the end - substr_
index - Returns the substring from str before count occurrences of the delimiter
- substring
- substring from the
position
withlength
characters - translate
- replaces the characters in
from
with the counterpart into