Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for string view? #62

Open
LostInCompilation opened this issue Aug 13, 2021 · 4 comments
Open

Support for string view? #62

LostInCompilation opened this issue Aug 13, 2021 · 4 comments

Comments

@LostInCompilation
Copy link

LostInCompilation commented Aug 13, 2021

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.

@DuffsDevice
Copy link
Owner

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

@bengsparks
Copy link

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

@DuffsDevice
Copy link
Owner

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

@Silverlan
Copy link

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 :)!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants