Module clippy_utils::str_utils

source ·

Structs

Dealing with sting comparison can be complicated, this struct ensures that both the character and byte count are provided for correct indexing.
Dealing with sting indices can be hard, this struct ensures that both the character and byte index are provided for correct indexing.

Functions

Get the indexes of camel case components of a string s
Split camel case string into a vector of its components
Returns index of the first camel-case component of s.
Returns StrIndex of the last camel-case component of s[idx..].
Returns the index of the character after the first camel-case component of s.
Returns the number of chars and bytes that match from the end
Returns the number of chars that match from the start