From e09e4d5b8972ece3836162e24c229b7b0dc8c54d Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Sun, 11 Sep 2016 10:12:48 +0200 Subject: Remove mot-encoder --- src/charset-test.cpp | 57 ---------------------------------------------------- 1 file changed, 57 deletions(-) delete mode 100644 src/charset-test.cpp (limited to 'src/charset-test.cpp') diff --git a/src/charset-test.cpp b/src/charset-test.cpp deleted file mode 100644 index d65fcc7..0000000 --- a/src/charset-test.cpp +++ /dev/null @@ -1,57 +0,0 @@ -/* - Copyright (C) 2015 Matthias P. Braendli (http://opendigitalradio.org) - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . - - charset.cpp - This is test code for the character set conversion. It does not - get compiled by default. - Please use - g++ -Wall -Wextra -std=c++11 -o charset-test charset-test.cpp - to compile this, and create a input.txt file with test data. - - Authors: - Matthias P. Braendli -*/ - -#include "charset.h" -#include -#include - -#include - -using namespace std; - -int main(int argc, char** argv) -{ - string test_file_path("input.txt"); - - ifstream fs8(test_file_path); - if (!fs8.is_open()) { - cerr << "Could not open " << test_file_path << endl; - return 1; - } - - CharsetConverter conv; - - string line; - // Play with all the lines in the file - while (getline(fs8, line)) { - cout << conv.convert(line) << endl; - } - - return 0; -} - - -- cgit v1.2.3