Skip to content

Conversation

@rFlex
Copy link

@rFlex rFlex commented Oct 30, 2025

This change updates the string conversions API for Valdi to use the the Valdi native unicode helpers instead of the deprecated C++ APIs. This change was checked in in master but got overriden a few days ago because the unicode change was not part of upstream. This PR fixes this by bringing the change upstream.

Changes:

  • Using StaticString::utf8ToWString() to convert a Valdi interned string to a C++ wstring. Under the hood, it detects at compile time the representation of wstring (utf16 or utf32) and uses the right conversion.
  • Using StaticString::makeWithWideChars() to create a StaticString from a C++ wstring.

@li-feng-sc li-feng-sc merged commit cc49376 into Snapchat:experimental-record Nov 8, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants