cattocol
This crate provided various options for combining text.
- Without the ansi escpe sequences.
- With the ansi escpe sequences.
- Along the lines of the first text.
- Iteration on non empty lines.
Examples
use CatToCol;
let first_txt = Stringfrom;
let second_txt = Stringfrom;
let cattocol = new.fill.repeat;
let text = "It's a beautiful day,\nit's raining with a\nnortherly wind.\n";
let concatenated_txt = cattocol.combine_col.;
assert_eq!;
println!;
//It's a beautiful day,
//it's raining with a
//northerly wind.
use cat_to_col;
let first_txt = Stringfrom;
let second_txt = Stringfrom;
let text = "It's a beautiful day,\nit's raining with a\nnortherly wind. \n";
let concatenated_txt = cat_to_col.;
assert_eq!;
println!;
//It's a beautiful day,
//it's raining with a
//northerly wind.
use by_pairs;
let first_txt = "one horsepower\ntwo horsepower\nthree horsepower\nfour horsepower\n";
let second_txt = "per horse\ntwo horses\n";
let concatenated_txt = by_pairs.;
assert_eq!;
println!;
//one horsepower per horse
//two horsepower two horses
License
GNU General Public License v3.0