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
53
54
55
56
57
//! opstr is a library to apply operations to strings.
//!
//! ## Objects
//!
//! * `Configuration` represents how the output shall be represented and which locale shall be used for Unicode operations.
//! * `LibError` is an `enum` of all possible error types that can occur
//! * `Arg` represents one input argument (final content, in the case of stdin/file). `Args` is a sequence of them.
//!
//! ## Concepts
//!
//! * Operations provide a *priority*. A priority defines how much sense this request made.
//! A priority of 1.0 means “very likely what you looked for” (on the CLI, the result will be shown on the bottom).
//! A priority close to 0.0 means “unlikely helpful” (on the CLI, the result will be printed out first).
//! Results with priority 0.0 make no sense and will be discarded immediately.
//!
//! ## API
//!
//! * `list_all_ops` returns the list of supported operations
//! * `list_matching_ops` returns the list of possible operations for the provided arguments
//! * `matcher::run_op` returns the `Output` after running the one operation specified
//! * `matcher::run_matching_ops` runs all operations appropriate for the provided arguments and writes the result to stdout & stderr
//!
//! ## Notes
//!
//! 1. The CLI output is always valid UTF-8. This might change in the future, but in the current release, this is the case.
//! 2. `Arg` is either Unicode content (`Chars`) or an arbitrary byte sequence (`Bytes`). `Bytes` is not yet supported.
//! 3. `Output` abstracts the type of result of an operation.
//! 4. `Configuration.syntax` defines which formal grammar shall be used for representation. The default representation for humans does not have a specification.
pub
pub
pub
pub
pub
pub
pub
pub
/// This is a binary blob generated with the icu4x library.
/// It contains various locale-specific convention data.
/// The README file describes how to generate it as part of the release management.
pub const DEFAULT_LOCALE_DATA: & = include_bytes!;
/// This is the Unicode UCD data file with metadata per Unicode codepoint
pub const UNICODE_DATA: &str = include_str!;
pub use Configuration;
pub use ColorScheme;
pub use LibError;
pub use ;
pub use Output;
pub use list_all_ops;
pub use list_matching_ops;
pub use list_color_schemes;
pub use run_op;
pub use run_matching_ops;