dtolnay / paste

Macros for all your token pasting needs
Apache License 2.0
1.02k stars 56 forks source link

Add capitalize and decapitalize modifiers #62

Closed DarrenTsung closed 2 years ago

DarrenTsung commented 3 years ago

Thanks for the useful crate!

Using #23 as a guide, I implemented capitalize and decapitalize in order to support lowerCamelCase.

DarrenTsung commented 3 years ago

As an alternative to this PR, I could change the implementation to just support lowercamel as an alternative to camel^.

AlseinX commented 3 years ago

As far as I know, they are camelCase, and PascalCase. Maybe we should rename them.

SabrinaJewson commented 2 years ago

Can this (or something like it) be merged? It would be very useful to have.

ArchitBhonsle commented 2 years ago

What are the chances this is merged? I actually need this feature. I know we can point to a git repo in your Cargo.toml but I don't want to miss out on any updates on this main repo.

wdanilo commented 1 year ago

@dtolnay lower camel case is sometimes very needed, especially in WASM when talking to JS. Can we implement it here? This is the only thing that I'm constantly missing from this crate :(