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

#367 in Text processing

Download history 53531/week @ 2024-08-11 43979/week @ 2024-08-18 46154/week @ 2024-08-25 47056/week @ 2024-09-01 44458/week @ 2024-09-08 44911/week @ 2024-09-15 50302/week @ 2024-09-22 50664/week @ 2024-09-29 49808/week @ 2024-10-06 50184/week @ 2024-10-13 53028/week @ 2024-10-20 112579/week @ 2024-10-27 200003/week @ 2024-11-03 201658/week @ 2024-11-10 178580/week @ 2024-11-17 119304/week @ 2024-11-24

702,806 downloads per month
Used in 328 crates (32 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