Expand description
Utilities for analyzing and transforming strings.
Structs§
- StrCount
- Dealing with string comparison can be complicated, this struct ensures that both the character and byte count are provided for correct indexing.
- StrIndex
- Dealing with string indices can be hard, this struct ensures that both the character and byte index are provided for correct indexing.
Functions§
- camel_
case_ indices - Get the indexes of camel case components of a string
s - camel_
case_ split - Split camel case string into a vector of its components
- camel_
case_ start - Returns index of the first camel-case component of
s. - camel_
case_ start_ from_ idx - Returns
StrIndexof the last camel-case component ofs[idx..]. - camel_
case_ until - Returns the index of the character after the first camel-case component of
s. - count_
match_ end - Returns the number of chars and bytes that match from the end
- count_
match_ start - Returns the number of chars that match from the start
- to_
camel_ case - Returns a
CamelCaseversion of the input - to_
snake_ case - Returns a
snake_caseversion of the input