1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
//! rcue is a simple CUE sheet reader.
//!
//! This library reads some CUE files fine, but is missing one important feature.
//!
//! Right now, indentation is treated as insignificant (= no proper contextual support).
//! This means if `REM` fields appear after a `TRACK` field (but are indented to the `FILE`'s level,
//! it will be wrongly assigned to the `TRACK` instead.
//!
//! ## Usage
//!
//! ```rust
//! extern crate rcue;
//!
//! use rcue::parser::parse_from_file;
//! use rcue::parser::parse;
//!
//! fn main() {
//! let cue = parse_from_file("test/fixtures/unicode.cue", true).unwrap();
//! assert_eq!(cue.title, Some("マジコカタストロフィ".to_string()));
//!
//! let file = std::fs::File::open("test/fixtures/unicode.cue").unwrap();
//! let mut buf_reader = std::io::BufReader::new(file);
//! let cue = parse(&mut buf_reader, true).unwrap();
//! assert_eq!(cue.title, Some("マジコカタストロフィ".to_string()));
//! }
//! ```
//!
//! See [`rcue::parser::parse`](parser/fn.parse.html) or
//! [`rcue::parser::parse_from_file`](parser/fn.parse_from_file.html) for usage.
//!
//! [GitHub repository](https://github.com/gyng/rcue)
/// Structs and types
/// Errors module
/// Parser implementation
/// Utility functions