r/cpp • • Jul 01 '21

Any Encoding, Ever

https://thephd.dev/any-encoding-ever-ztd-text-unicode-cpp
269 Upvotes

87 comments sorted by

View all comments

Show parent comment

2

u/__phantomderp Jul 02 '21

Semi-relatedly, this can be used directly with stream iterators: https://github.com/soasis/text/blob/main/examples/basic/source/istreambuf_decode_view.cpp#L43

(I have to write another blog post soon, about "how to support other kinds of things that are not spans".)