tiny-utf8 icon indicating copy to clipboard operation
tiny-utf8 copied to clipboard

Support for string view?

Open LostInCompilation opened this issue 4 years ago • 4 comments

Is there any support for a string view handled by tiny-utf8 (tiny_utf8::string_view)? I did not find an implementation for string view, maybe that would be nice to have as a drop in replacement for std::string_view. Currently I'm using std::string_view view(tinyutf8str.c_str()); but creating a temporary std::string_view is not the best for performance.

LostInCompilation avatar Aug 13 '21 00:08 LostInCompilation

Hey, just wanted to let you know: I already started working on it, but I will still need more time, since the change is far from trivial (e.g. a string_view cannot have a Look-Up-Table) and I'm in the process of switching jobs, so that is a pain :D Hope you are doing well.

Jakob

DuffsDevice avatar Nov 09 '21 16:11 DuffsDevice

Hi, has any progress been made on this, including conversion to and from {std, tinyutf8}::string_view? Thanks very much for this library :)

bengsparks avatar Dec 13 '21 19:12 bengsparks

Hi Benjamin, yes, I'm sorry, I didn't have time yet to do it.. I have been busy for quite a while now and I hope it gets better in february. Thank you for your message Ben, I'll let you know, when there is progress 👍 Jakob

DuffsDevice avatar Jan 18 '22 09:01 DuffsDevice

Hi! Just wanted to express my interest for a string_view class as well, it's the only thing keeping me from fully diving into this library. I don't mean to rush of course, take however much time you need, and thank you for your work :)!

Silverlan avatar Feb 19 '22 15:02 Silverlan