cattocol

This crate provided various options for combining text.

Examples

```rust use cattocol::CatToCol;

let firsttxt = String::from("It's a\nit's raining\nnortherly wind."); let secondtxt = String::from("beautiful day,\nwith a\n\n"); let cattocol = CatToCol::new().fill(' ').repeat(0); let text = "It's a beautiful day,\nit's raining with a\nnortherly wind.\n"; let concatenatedtxt = cattocol.combinecol(&firsttxt, &secondtxt).collect::();

asserteq!(concatenatedtxt, text);

println!("{}", concatenated_txt); //It's a beautiful day, //it's raining with a //northerly wind. ```

```rust use cattocol::cattocol;

let firsttxt = String::from("It's a\nit's raining\nnortherly wind."); let secondtxt = String::from("beautiful day,\nwith a\n\n"); let text = "It's a beautiful day,\nit's raining with a\nnortherly wind. \n"; let concatenatedtxt = cattocol(&firsttxt, &second_txt).collect::();

asserteq!(concatenatedtxt, text);

println!("{}", concatenated_txt); //It's a beautiful day, //it's raining with a //northerly wind. ```

```rust use cattocol::by_pairs;

let firsttxt = "one horsepower\ntwo horsepower\nthree horsepower\nfour horsepower\n"; let secondtxt = "per horse\ntwo horses\n"; let concatenatedtxt = bypairs(firsttxt, secondtxt).collect::();

asserteq!( &concatenatedtxt, "one horsepower per horse\ntwo horsepower two horses\n");

println!("{}", concatenated_txt); //one horsepower per horse //two horsepower two horses ```

License

GNU General Public License v3.0