C++ Version of PRINSEQ