#string #chars

kalgan_string

A collection of functions for string manipulation used by Kalgan Framework

2 releases

0.9.1 Feb 24, 2022
0.9.0 Feb 20, 2022

#7 in #chars

Download history 11/week @ 2023-08-15 6/week @ 2023-08-22 7/week @ 2023-08-29 13/week @ 2023-09-05 7/week @ 2023-09-12 5/week @ 2023-09-19 14/week @ 2023-09-26 9/week @ 2023-10-03 6/week @ 2023-10-10 10/week @ 2023-10-17 9/week @ 2023-10-24 13/week @ 2023-10-31 10/week @ 2023-11-07 12/week @ 2023-11-14 11/week @ 2023-11-21 18/week @ 2023-11-28

53 downloads per month
Used in 2 crates

MIT/Apache

5KB

kalgan-string

A collection of functions for string manipulation used by Kalgan Framework.

Examples

use kalgan_string;

assert_eq!(kalgan_string::strip("-Hello World-", '-'), "Hello World");
use kalgan_string;

assert_eq!(kalgan_string::strip_right("Hello World", 'd'), "Hello Worl");
use kalgan_string;

assert_eq!(kalgan_string::strip_left("Hello World", 'H'), "ello World");
use kalgan_string;

assert_eq!(kalgan_string::strip_both("Hello World", 'H', 'd'), "ello Worl");
use kalgan_string;

assert_eq!(kalgan_string::is_numeric("1.000"), true);

Documentation

For further information please visit:

License

This crate is licensed under either of the following licenses:

No runtime deps