#string #japanese #python #multi-byte #aims

string_py

This crate aims to make the String type as easy to use as the str type in python

3 releases (breaking)

0.3.0 Mar 30, 2024
0.2.0 Mar 27, 2024
0.1.0 Mar 21, 2024

#1566 in Text processing

Download history 10/week @ 2024-07-04 1/week @ 2024-07-25

99 downloads per month

MIT license

3KB

string_py

This crate aims to make the String type as easy to use as the str type in python. This crate is for multibyte String type such as Japanese.

example

    let easy_string = EasyString::new("あいうえお");
    let slice_data = easy_string.slice(0, -1);
    assert_eq!("あいうえ",slice_data);
    assert_eq!(5,easy_string.len());

No runtime deps