#string #chars #framework #collection #function #kalgan

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

#2138 in Rust patterns


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