#utf-8 #stream #reader #code-point #character

utf8reader

Provides a wrapper around Reader that returns a stream of UTF-8 characters

5 releases

Uses old Rust 2015

0.1.0 Oct 14, 2018
0.0.4 Mar 18, 2016
0.0.3 Jan 6, 2015
0.0.2 Nov 21, 2014
0.0.1 Nov 21, 2014

#1714 in Text processing


Used in rcombinators

MIT/Apache

5KB
106 lines

UTF8Reader - Provides a wrapper around an implementation of std::io::Reader that parses the stream as a sequence of UTF-8 encoded codepoints.

It provides an implementation of Iterator<IoError<char>> for ease of access

Using

let mut reader = utf8reader::UTF8Reader::new( file_handle );
for codepoint in reader.map(|cp| cp.unwrap())
{
	print!("{}", codepoint);
}

=== Licencing === This code is distributed under the terms of the zlib licence (see COPYING).

No runtime deps