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

Improve the required bytes calculation. #72

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

lestcape
Copy link
Collaborator

@lestcape lestcape commented Feb 13, 2024

This improve the calculation of the required bytes of an string that should be stored using a user custom charset.

The idea is delegate the cut to the buffer that is who really know the final charset of the string in the stream (the sav file). At same time this cut the string using the bytes representation instead of the character length representation of the charset. See mb_strcut for more details.

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.

1 participant