yum-mirror/UwwwuPP
A rehost of leonetienne's UwwwuPP, a simple text filter to uwu-ify English text.
git clone https://git.yummers.dev/yum-mirror/UwwwuPP
8c05d2f
master
1#include <iostream> 2#include "LibUwu.h" 3 4int main (int argc ,char ** argv ) { 5 6// We have arguments. Uwwuifie these instead 7if (argc > 1 ) 8 { 9// We have to put the args together first, because some replace-rules cross word-borders 10 std::stringstream ss ; 11for (std::size_t i = 1 ;i < argc ;i ++ ) 12ss << std::string (argv [i ])+ " " ; 13 14 std::cout <<MakeUwu (ss .str ()) << std::endl ; 15 } 16 17// Else, be prepared to get __piped__ 18else 19 { 20 std::string buf ; 21while (std::getline (std::cin ,buf )) 22 std::cout <<MakeUwu (buf ) << std::endl ; 23 } 24 25return 0 ; 26}