utf8-ranges 1.0.5

DEPRECATED. Use regex-syntax::utf8 submodule instead.
**DEPRECATED:** This crate has been folded into the
[`regex-syntax`](https://docs.rs/regex-syntax) and is now deprecated.

This crate converts contiguous ranges of Unicode scalar values to UTF-8 byte
ranges. This is useful when constructing byte based automata from Unicode.
Stated differently, this lets one embed UTF-8 decoding as part of one's

[![Linux build status](https://api.travis-ci.org/BurntSushi/utf8-ranges.png)](https://travis-ci.org/BurntSushi/utf8-ranges)

Dual-licensed under MIT or the [UNLICENSE](http://unlicense.org).

### Documentation


### Example

This shows how to convert a scalar value range (e.g., the basic multilingual
plane) to a sequence of byte based character classes.

extern crate utf8_ranges;

use utf8_ranges::Utf8Sequences;

fn main() {
    for range in Utf8Sequences::new('\u{0}', '\u{FFFF}') {
        println!("{:?}", range);

The output:


These ranges can then be used to build an automaton. Namely:

1. Every arbitrary sequence of bytes matches exactly one of the sequences of
   ranges or none of them.
2. Every match sequence of bytes is guaranteed to be valid UTF-8. (Erroneous
   encodings of surrogate codepoints in UTF-8 cannot match any of the byte
   ranges above.)