(&self)
| 998 | } |
| 999 | |
| 1000 | pub fn to_lowercase(&self) -> Wtf8Buf { |
| 1001 | let mut buf = Wtf8Buf::with_capacity(self.len()); |
| 1002 | for chunk in self.chunks() { |
| 1003 | match chunk { |
| 1004 | Wtf8Chunk::Utf8(s) => buf.push_str(&s.to_lowercase()), |
| 1005 | Wtf8Chunk::Surrogate(c) => buf.push(c), |
| 1006 | } |
| 1007 | } |
| 1008 | buf |
| 1009 | } |
| 1010 | |
| 1011 | pub fn to_uppercase(&self) -> Wtf8Buf { |
| 1012 | let mut buf = Wtf8Buf::with_capacity(self.len()); |
no test coverage detected