#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

#347 in Text processing

Download history 32990/week @ 2024-01-06 31517/week @ 2024-01-13 32076/week @ 2024-01-20 30359/week @ 2024-01-27 28979/week @ 2024-02-03 29864/week @ 2024-02-10 32046/week @ 2024-02-17 35966/week @ 2024-02-24 35372/week @ 2024-03-02 34012/week @ 2024-03-09 34001/week @ 2024-03-16 36564/week @ 2024-03-23 39921/week @ 2024-03-30 37961/week @ 2024-04-06 42434/week @ 2024-04-13 36388/week @ 2024-04-20

162,481 downloads per month
Used in 285 crates (31 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