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

Attempt to fully implement CharString #1150

Merged
merged 1 commit into from
Jul 22, 2023

Conversation

dsnopek
Copy link
Collaborator

@dsnopek dsnopek commented Jun 22, 2023

Fixes #1142

This copies CharString (along with CharProxy) from Godot, and then uses a template CharStringT<T> to avoid having to duplicate code for CharString, Char16String, Char32String and CharWideString (which are all essentially the same, just using a different character size).

It seems to be working, but I did only very limited testing, including adding a simple automated test that just calls String.utf8() and ensures it matches the expected value.

It could definitely use more testing!

@dsnopek dsnopek added the enhancement This is an enhancement on the current functionality label Jun 22, 2023
@dsnopek dsnopek requested a review from a team as a code owner June 22, 2023 13:38
@dsnopek dsnopek marked this pull request as draft June 22, 2023 13:39
@dsnopek dsnopek force-pushed the charstring-full branch 3 times, most recently from 403485c to 8ad640a Compare June 22, 2023 19:42
@dsnopek dsnopek marked this pull request as ready for review June 23, 2023 02:00
@dsnopek dsnopek changed the title [DRAFT] Attempt to fully implement CharString Attempt to fully implement CharString Jun 23, 2023
@dsnopek
Copy link
Collaborator Author

dsnopek commented Jun 23, 2023

This is now working in my very limited testing, so I'm taking it out of draft to try and get some review :-)

@dsnopek
Copy link
Collaborator Author

dsnopek commented Jul 14, 2023

Discussed at GDExtension meeting, and this looks fine!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement This is an enhancement on the current functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CharString implementation doesn't match Godot's
3 participants