MCPcopy Index your code
hub / github.com/eventuallyconsultant/codegenr / StringExt

Interface StringExt

codegenr/src/helpers/string_ext.rs:5–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3use super::HelpersError;
4
5pub 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

Callers

nothing calls this directly

Implementers 1

string_ext.rscodegenr/src/helpers/string_ext.rs

Calls

no outgoing calls

Tested by

no test coverage detected