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

Implemented toUTFz. #123

Merged
merged 8 commits into from Jul 23, 2011
Merged

Implemented toUTFz. #123

merged 8 commits into from Jul 23, 2011

Commits on Jun 26, 2011

  1. Implemented toUTFz.

    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.
    jmdavis committed Jun 26, 2011
    Configuration menu
    Copy the full SHA
    595bcb8 View commit details
    Browse the repository at this point in the history

Commits on Jun 30, 2011

  1. Configuration menu
    Copy the full SHA
    aff08b3 View commit details
    Browse the repository at this point in the history
  2. 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.
    jmdavis committed Jun 30, 2011
    Configuration menu
    Copy the full SHA
    3309c97 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f7d8ca5 View commit details
    Browse the repository at this point in the history

Commits on Jul 4, 2011

  1. Configuration menu
    Copy the full SHA
    6c6a493 View commit details
    Browse the repository at this point in the history

Commits on Jul 10, 2011

  1. Configuration menu
    Copy the full SHA
    1192616 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5e79789 View commit details
    Browse the repository at this point in the history

Commits on Jul 13, 2011

  1. Attempt at improving warning on toUTFz.

    I also put @System on the two overloads of toUTFZ which do pointer
    arithmetic. They're obviously @System anyway, but tagging them with it
    makes it clearer.
    jmdavis committed Jul 13, 2011
    Configuration menu
    Copy the full SHA
    25cf1cb View commit details
    Browse the repository at this point in the history