Module string_utils

Source

Functions§

capitalize_word
Capitalizes the first letter of a word.
lowercase_word
Lowercases the first letter of a word. Changes @ to __.
remove_vec
Removes Vec< and > from a string.
to_camel_case_with_prefix
Converts a string to camel case and adds prefix. Used for struct names and field types (eg. re:AreaNumber -> ReAreaNumber).
to_snake_case
Converts a string to snake case. Used for field names (eg. AreaNumber -> area_number).