-
Notifications
You must be signed in to change notification settings - Fork 286
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
Add functions to get JsString as UTF-16 #944
Conversation
Sorry for the delay. Updated the PR with the requested changes, and I resolved the discussions accordingly. Feel free to re-open them if I missed anything. |
Is there anything to be done from my side, or is this just missing a final review? Would be great to have these extra APIs available soon-ish, but I might just point cargo to my PR branch in the meantime then 👍 |
Should be just the final review. I should have a chance this week. I haven't had a chance with Thanksgiving last week. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks really great! Thanks for this addition and the fantastic docs, examples and tests!
Extending the API of
JsString
to retrieve the value as UTF-16 encodedVec<u16>
. Also, added asize_utf16
function for completeness.I added a few code samples to the API docs for
JsString
to show at least some basic uses, as the docs felt a bit empty for this rather core component.Fixes #943