(&self)
| 1009 | } |
| 1010 | |
| 1011 | pub fn to_uppercase(&self) -> Wtf8Buf { |
| 1012 | let mut buf = Wtf8Buf::with_capacity(self.len()); |
| 1013 | for chunk in self.chunks() { |
| 1014 | match chunk { |
| 1015 | Wtf8Chunk::Utf8(s) => buf.push_str(&s.to_uppercase()), |
| 1016 | Wtf8Chunk::Surrogate(c) => buf.push(c), |
| 1017 | } |
| 1018 | } |
| 1019 | buf |
| 1020 | } |
| 1021 | |
| 1022 | #[inline] |
| 1023 | pub const fn is_ascii(&self) -> bool { |
no test coverage detected