pub fn ToUpper(s: impl AsRef<[byte]>) -> Vec<byte> ⓘExpand description
ToUpper returns s with all Unicode letters mapped to their upper case.
zh-cn
返回将所有字母都转为对应的大写版本的拷贝。§Example
use gostd_bytes as bytes;
assert_eq!("GOPHER".as_bytes(),bytes::ToUpper("Gopher"));
assert_eq!("GOPHER".as_bytes().to_vec(),bytes::ToUpper("Gopher"));