const-str
const-str copied to clipboard
Todo List
New API:
- [x]
compare! - [x]
strip_prefix! - [X]
strip_suffix! - [ ]
lines! - [x]
join! - [ ]
split_ascii_whitespace! - [x]
sorted!
Docs:
- [ ] API docs translation
Upstream issues:
I don't suppose I could bribe you with $20 USD to do join!? It would help a lot in a niche personal project I'm working on
Also I assume the intent is to take an array and/or slice of string literals and a joiner string? I can't imagine it'd be anything else but I just want to be sure
I don't suppose I could bribe you with $20 USD to do
join!? It would help a lot in a niche personal project I'm working onAlso I assume the intent is to take an array and/or slice of string literals and a joiner string? I can't imagine it'd be anything else but I just want to be sure
Yes. The intent is to take string slices and concat them using a specified separator. I'll give it a try since someone needs it.
Managed to make it partially work, but not with slices.
macro_rules! join {
(join=$join:expr, $x:expr) => ($x);
(join=$join:expr, $x:expr, $($y:expr),+) => {
concat!($x, $join, join!(join=$join, $($y),+))
};
}
https://docs.rs/const-str/0.5.7/const_str/macro.join.html
I currently do not have $20 to give you. I swear I'm not just going back on the promise; Just give me until April.
Finally have the money. Do you have a paypal account?
Finally have the money. Do you have a paypal account?
See https://github.com/Nugine#sponsor. Thank you!