#inflect #case #camel

inflections

High performance inflection transformation library for changing properties of words like the case

3 stable releases

Uses old Rust 2015

1.1.1 Sep 14, 2017
1.1.0 Jun 5, 2017
1.0.0 Mar 25, 2016

#264 in Text processing

Download history 21711/week @ 2022-12-05 17739/week @ 2022-12-12 19473/week @ 2022-12-19 11668/week @ 2022-12-26 17657/week @ 2023-01-02 17727/week @ 2023-01-09 23997/week @ 2023-01-16 24122/week @ 2023-01-23 23824/week @ 2023-01-30 23527/week @ 2023-02-06 27582/week @ 2023-02-13 25698/week @ 2023-02-20 26110/week @ 2023-02-27 27299/week @ 2023-03-06 24863/week @ 2023-03-13 25083/week @ 2023-03-20

105,971 downloads per month
Used in 248 crates (26 directly)

MIT license

27KB
281 lines

inflections

A Rust library for transforming one style of string to another focused on high performance.

Read the documentation for more.

Example

use inflections::Inflect;

assert_eq!("Hello World".to_camel_case(), "helloWorld".to_owned());

lib.rs:

This is a library which allows anyone to change various properties of their strings with a heavy emphasis on performance. Allows programmers to manipulate a single programatic name consistently in multiple contexts.

Example

// Remember to import the `Inflect` trait!
use inflections::Inflect;

assert_eq!("Hello World".to_camel_case(), "helloWorld".to_owned());

No runtime deps