Skip to content

Conversation

@Kimundi
Copy link
Contributor

@Kimundi Kimundi commented Jun 17, 2013

  • Fixed tests
  • Added methods
  • Renamed casting methods to be shorter
  • Added unsafe versions

Closes #7150

- Fixed tests
- Added methods
- Renamed casting methods to be shorter

closes rust-lang#7150
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the point of len in these lines? Why isn't it necessary any more?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's still necessary, it just happens in the unsafe method below it. It's for adjusting the &str so that the last hidden byte it includes does not end up in the &[Ascii].

bors added a commit that referenced this pull request Jun 17, 2013
- Fixed tests
- Added methods
- Renamed casting methods to be shorter
- Added unsafe versions

Closes #7150
@bors bors closed this Jun 17, 2013
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.

std::ascii needs some improvements

3 participants