Skip to content

Tags: bcmyers/rust-ascii

Tags

v0.9.0

Toggle v0.9.0's commit message
Release version 0.9.0

v0.8.7

Toggle v0.8.7's commit message
Version 0.8.7

v0.8.6

Toggle v0.8.6's commit message
Release v0.8.6

v0.8.5

Toggle v0.8.5's commit message
Release v0.8.5

v0.8.4

Toggle v0.8.4's commit message
Release v0.8.4

v0.8.2

Toggle v0.8.2's commit message
Release v0.8.2

v0.8.1

Toggle v0.8.1's commit message
Release v0.8.1

v0.8.0

Toggle v0.8.0's commit message
Release version 0.8.0

Breaking changes:

* Return `FromAsciiError` instead of the input when `AsciiString::from_ascii()` or `into_ascii_string()` fails.
* Replace the `no_std` feature with the additive `std` feature, which is part of the default features. (Issue tomprogrammer#29)
* `AsciiChar::is_*()` and `::as_{byte,char}()` take `self` by value instead of by reference.

Additions:

* Make `AsciiChar` comparable with `char` and `u8`.
* Add `AsciiChar::as_printable_char()` and the free functions `caret_encode()` and `caret_decode()`.
* Implement some methods from `AsciiExt` and `Error` (which are not in libcore) directly in `core` mode:
  * `Ascii{Char,Str}::eq_ignore_ascii_case()`
  * `AsciiChar::to_ascii_{upper,lower}case()`
  * `AsciiStr::make_ascii_{upper,lower}case()`
  * `{ToAsciiChar,AsAsciiStr}Error::description()`

v0.7.1

Toggle v0.7.1's commit message
Release v0.7.1

v0.7.0

Toggle v0.7.0's commit message
* Rename `Ascii` to `AsciiChar` and convert it into an enum. (with a …

…variant for every ASCII character)

* Replace `OwnedAsciiCast` with `IntoAsciiString`.
* Replace `AsciiCast` with `As[Mut]AsciiStr` and `IntoAsciiChar`.
* Add *from[_ascii]_unchecked* methods.
* Replace *from_bytes* with *from_ascii* in method names.
* Return `std::error::Error`-implementing types on error instead of `Option::None` or `Err(())`.
* Implement `AsciiExt` without the `unstable` Cargo feature flag, which is removed.
* Require Rust 1.9 or later.
* Add `#[no_std]` support in a Cargo feature.
* Implement `From<{&,&mut,Box<}AsciiStr>` for `[Ascii]`, `[u8]` and `str`
* Implement `From<{&,&mut,Box<}[Ascii]>`, `As{Ref,Mut}<[Ascii]>` and Default for `AsciiStr`
* Implement `From<Vec<Ascii>>` for `AsciiString`.
* Implement `AsMut<AsciiStr>` for `AsciiString`.
* Stop some `Ascii::is_xxx()` methods from panicking.
* Add `Ascii::is_whitespace()`.
* Add `AsciiString::as_mut_slice()`.
* Add raw pointer methods on `AsciiString`:
  * `from_raw_parts`
  * `as_ptr`
  * `as_mut_ptr`