Open xuxiaocheng0201 opened 1 month ago
Yeah, I'll look into adding some more string transformations. Were there any that you were interested in seeing beyond repeat and trim?
My idea is an 'ultimate' macro. It compiles and runs the code written in the macro at compile time. For example:
static_str!("A".repeat(8) + "bbbccc" + include_str!("something.txt"))
After expending, it becomes "AAAAAAAAbbbcccSomething in the text"
.
Only contains
ascii_lowercase
andascii_uppercase
is too simple. Add more macros likerepeat
,trim
, etc.?