Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new: added Caser that attaches methods for converting cases to strings. #12

Merged
merged 2 commits into from
Feb 25, 2024

Conversation

sttk
Copy link
Owner

@sttk sttk commented Feb 25, 2024

This PR adds Caser to make strings enable to convert their cases by their own methods as follows:

use stringcase::Caser;

fn main() {
    println("{}", "foo+bar_baz".toCamelCase()); // ==> "fooBarBaz"
}

README.md Outdated Show resolved Hide resolved
src/lib.rs Outdated Show resolved Hide resolved
@sttk sttk merged commit c9f39f8 into main Feb 25, 2024
13 checks passed
@sttk sttk deleted the new_add-caser branch February 25, 2024 07:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant