| 3 | use super::HelpersError; |
| 4 | |
| 5 | pub trait StringExt { |
| 6 | fn is_empty_or_whitespaces(&self) -> bool; |
| 7 | fn split_get_first(&self, splitter: Option<String>) -> String; |
| 8 | fn split_get_last(&self, splitter: Option<String>) -> String; |
| 9 | fn get_first_char(&self) -> Option<char>; |
| 10 | |
| 11 | fn trim_char(&self, trimmer: Option<String>) -> String; |
| 12 | fn trim_start_char(&self, trimmer: Option<String>) -> String; |
| 13 | fn trim_end_char(&self, trimmer: Option<String>) -> String; |
| 14 | |
| 15 | fn uppercase_first_letter(&self) -> String; |
| 16 | fn lowercase_first_letter(&self) -> String; |
| 17 | fn pascal_case(&self) -> String; |
| 18 | fn camel_case(&self) -> String; |
| 19 | fn snake_case(&self) -> String; |
| 20 | |
| 21 | fn on_one_line(&self, indent: Option<u64>, line_break: Option<bool>, replacer: Option<&str>) -> String; |
| 22 |
nothing calls this directly
no outgoing calls
no test coverage detected