Closed whitequark closed 9 years ago
Essentially what I want is the byte counterpart to decoder_count
.
Man this patch is going to be ugly.
No too ugly in the end. I was looking at the problem from the wrong perspective. Once I realized I always had the info on ret
it was just a matter of changing that signature, the type system then simply told me were I had to make the changes.
Thank you very much!
This is useful for applications that want to correlate the decoded UTF-8 characters with their position in the original input stream.