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

improvement: Avoid unnecessary string conversions #8093

Merged

Conversation

Smjert
Copy link
Member

@Smjert Smjert commented Jul 27, 2023

The UTF16 and UTF8 conversion APIs already accept std::string and std::wstring correctly, without the need to convert them to a wchar_t or char pointer, which is then converted back to the original type, but with potentially allocating other memory.

The UTF16 and UTF8 conversion APIs already accept std::string
and std::wstring correctly, without the need to convert them
to a wchar_t or char pointer, which is then converted back to
the original type, but with potentially allocating other memory.
@Smjert Smjert force-pushed the stefano/improvement/utf16-utf8-conversions branch from 7b26171 to 62c668e Compare July 27, 2023 20:44
@Smjert Smjert merged commit 08c345f into osquery:master Jul 28, 2023
16 checks passed
@Smjert Smjert deleted the stefano/improvement/utf16-utf8-conversions branch July 28, 2023 17:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants