kalgan_string 0.9.1

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

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: