Skip to content

thepowersgang/rust-utf8reader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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).

About

An inline UTF-8 decoder that reads a stream of code-points from a "Reader"

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages