#case #inflect #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

#301 in Text processing

Download history 33366/week @ 2024-03-14 36536/week @ 2024-03-21 36701/week @ 2024-03-28 40385/week @ 2024-04-04 40750/week @ 2024-04-11 42892/week @ 2024-04-18 44433/week @ 2024-04-25 49453/week @ 2024-05-02 42136/week @ 2024-05-09 57100/week @ 2024-05-16 59043/week @ 2024-05-23 63185/week @ 2024-05-30 62685/week @ 2024-06-06 67650/week @ 2024-06-13 60923/week @ 2024-06-20 50880/week @ 2024-06-27

254,425 downloads per month
Used in 309 crates (33 directly)

MIT license

28KB
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