Crates.io | string_py |
lib.rs | string_py |
version | 0.3.0 |
source | src |
created_at | 2024-03-21 12:05:42.570581 |
updated_at | 2024-03-30 09:15:19.507435 |
description | This crate aims to make the String type as easy to use as the str type in python. |
homepage | |
repository | https://github.com/satelight/string_py |
max_upload_size | |
id | 1181543 |
size | 2,990 |
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.
let easy_string = EasyString::new("あいうえお");
let slice_data = easy_string.slice(0, -1);
assert_eq!("あいうえ",slice_data);
assert_eq!(5,easy_string.len());