#string #case #conversion #convert

case_convert

将 Rust String 的首字母转换为大写

1 个不稳定版本

0.1.0 2024 年 1 月 13 日

#1828文本处理


world-time-api 中使用

MIT 许可证

3KB

此库实现了对 String 类型进行大小写转换的方法。
目前只有一个方法可以将 Rust String 的首字母转换为大写。

来源:此方法的代码来自 这篇帖子

use case_convert::CaseConvert;
let s = String::from("test");
assert_eq!(s.uppercase_first(), "Test");

0.1.0:将字符串首字母转换为大写

无运行时依赖