kalgan_string

Crates.iokalgan_string
lib.rskalgan_string
version0.9.1
sourcesrc
created_at2022-02-20 16:39:24.33754
updated_at2022-02-24 13:52:54.175473
descriptionA collection of functions for string manipulation used by Kalgan Framework.
homepagehttps://kalgan.eduardocasas.com
repositoryhttps://github.com/eduardocasas/kalgan-string
max_upload_size
id535828
size6,363
Eduardo Casas (eduardocasas)

documentation

README

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:

Commit count: 8

cargo fmt