Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
Before this, running the program with the same input and output file would destroy the file's contents. Now, it isn't allowed without the new --buffered option, which reads the whole file into memory before opening it for writing. This requires stevedonovan/lapp#1 to be merged so for now this version is not publishable to crates.io as it is using my fork of lapp.
|2 anni fa|
|src||2 anni fa|
|.gitignore||2 anni fa|
|Cargo.lock||2 anni fa|
|Cargo.toml||2 anni fa|
|README||2 anni fa|
utf8-norm, validate and normalize UTF-8 Unicode data
Version 1.1.0 licensed GPLv3. (C) 2019 Leonora Tindall <email@example.com>
Fast command line Unicode normalization, supporting stream safety transformations as well
as NFC, NFD, NFKD, and NFKC. Exits with failure if the incoming stream is not valid UTF-8.
Usage: utf8-norm [--nfc | --nfd | --nfkc | --nfkd] [--stream-safe] [--crlf] <infile> <outfile>
<infile> (default stdin) - file from which to read bytes.
<outfile> (default stdout) - file to which to write normalized Unicode.
-w, --crlf - write CRLF (Windows) instead of LF only (Unix) at the end of lines.
-d, --nfd - write NFD (canonical decomposition).
-D, --nfkd - write NFKD (compatibility decomposition).
-c, --nfc - write NFC (canonical composition computed from NFD). This is the default.
-C, --nfkc - write NFKC (canonical composition computed from NFC).
-s, --stream-safe - write stream-safe bytes (Conjoining Grapheme Joiners, UAX15-D4).
-b, --buffered - read the entire input file into memory before operating on it.
-V, --version - output version information and exit.
The --buffered option is primarily useful for reading and writing to the same file. It will
read bytes from the input until end of file and only then begin processing lines of the
utf8-norm was created at Rust Belt Rust 2019 in Dayton, OH. Thanks to @j41manning for her
excellent talk regarding Unicode handling in Rust.
Natively install as `cargo install utf8-norm` or from your distribution's package manager.