Skip to content

[cpp] Marshal String Encodings - #12476

Merged
Simn merged 17 commits into
HaxeFoundation:developmentfrom
Aidan63:cpp_encoding
Jan 2, 2026
Merged

[cpp] Marshal String Encodings#12476
Simn merged 17 commits into
HaxeFoundation:developmentfrom
Aidan63:cpp_encoding

Conversation

@Aidan63

@Aidan63 Aidan63 commented Dec 24, 2025

Copy link
Copy Markdown
Contributor

I was thinking about using the new cpp marshalling stuff to make a better StringBuf implementation but realised that the string marshalling stuff I added was only really usable in terms of null terminated c string interop, not general string to encoded bytes usage.

So this makes it a bit more flexible. New extern types cpp.encoding.Ascii, cpp.encoding.Utf8, and cpp.encoding.Utf16` have been added to deal with conversions between the various internal string encodings hxcpp uses. Most of this functionality already existed in hxcpp, so it's just making it usable from the haxe side.

hxcpp side : HaxeFoundation/hxcpp#1283

@Aidan63

Aidan63 commented Jan 2, 2026

Copy link
Copy Markdown
Contributor Author

I think this is good to go now, I've reverted the CI change since all tests passed. Only downside is that the hxcpp latest CI is broken like everything else, but it would be failing anyway since this is one of those annoying merge order ones.

@Simn
Simn merged commit 66b868e into HaxeFoundation:development Jan 2, 2026
41 of 49 checks passed
@Aidan63
Aidan63 deleted the cpp_encoding branch January 2, 2026 19:32
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.

2 participants