rustybuzz icon indicating copy to clipboard operation
rustybuzz copied to clipboard

Is it possible to push `char` into `UnicodeBuffer`?

Open Riey opened this issue 4 years ago • 1 comments

I want push some chars into UnicodeBuffer for now, I have to collect into String then use push_str

however, push_str seems just decode it into chars so I think fn push(ch: char) method can be possible or at least fn push_chars(chars: impl Iterator<Item = char>) but I'm not sure about cluster

Riey avatar Nov 17 '21 05:11 Riey

Probably yes. Will have to take a look. In general, you have to preprocess your string beforehand.

RazrFalcon avatar Nov 17 '21 12:11 RazrFalcon

I’m interacting with Java code, so a way to bypass conversion into UTF-8 would be helpful for me, too.

bluebear94 avatar Nov 11 '22 08:11 bluebear94