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
Implemented toUTFz. #123
Merged
Merged
Implemented toUTFz. #123
Commits on Jun 26, 2011
-
I haven't made std.conv.to use it yet, and I haven't touched toUTF16z or toStringz at all, but here's an implementation for toUTFz. After this is in, we can make std.conv.to use it when converting to character pointers, and we should probably make it so that we have toStringz, toWstringz, and toDstringz which use it and return immutable character pointers and get rid of toUTF16z.
Configuration menu - View commit details
-
Copy full SHA for 595bcb8 - Browse repository at this point
Copy the full SHA 595bcb8View commit details
Commits on Jun 30, 2011
-
Configuration menu - View commit details
-
Copy full SHA for aff08b3 - Browse repository at this point
Copy the full SHA aff08b3View commit details -
Improved toUTFz so that it does less copying.
toUTFz no longer guarantees that the string will remain zero-terminated. If the string can be zero-terminated but isn't immutable and doesn't need to be copied to have the requested character pointer type, then it no longer copies. This means that it's possible to have a string which is zero-terminated and then stops being zero-terminated if you alter the character one passed its end, but that's not likely to be an issue in most cases, and a note in the documentation points it out so that programmers can know about it and deal with it appropriately.
Configuration menu - View commit details
-
Copy full SHA for 3309c97 - Browse repository at this point
Copy the full SHA 3309c97View commit details -
Configuration menu - View commit details
-
Copy full SHA for f7d8ca5 - Browse repository at this point
Copy the full SHA f7d8ca5View commit details
Commits on Jul 4, 2011
-
Configuration menu - View commit details
-
Copy full SHA for 6c6a493 - Browse repository at this point
Copy the full SHA 6c6a493View commit details
Commits on Jul 10, 2011
-
Configuration menu - View commit details
-
Copy full SHA for 1192616 - Browse repository at this point
Copy the full SHA 1192616View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5e79789 - Browse repository at this point
Copy the full SHA 5e79789View commit details
Commits on Jul 13, 2011
-
Configuration menu - View commit details
-
Copy full SHA for 25cf1cb - Browse repository at this point
Copy the full SHA 25cf1cbView commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.