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

LeonetienneMerge branch 'master' of gitea.leon.etiennes.de:leonetienne/UwwwuPP8c05d2f

master
632 B26 linesraw
1#include <iostream>
2#include "LibUwu.h"
3
4int main(int argc, char** argv) {
5
6    // We have arguments. Uwwuifie these instead
7    if (argc > 1)
8    {
9        // We have to put the args together first, because some replace-rules cross word-borders
10        std::stringstream  ss;
11        for (std::size_t i = 1; i < argc; i++)
12            ss << std::string(argv[i]) + " ";
13
14        std::cout << MakeUwu(ss.str()) << std::endl;
15    }
16
17    // Else, be prepared to get __piped__
18    else
19    {
20        std::string buf;
21        while (std::getline(std::cin, buf))
22            std::cout << MakeUwu(buf) << std::endl;
23    }
24
25    return 0;
26}