File: utf8norm.cpp

package info (click to toggle)
sword 1.6.2%2Bdfsg-5
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 12,512 kB
  • sloc: cpp: 39,310; sh: 10,791; ansic: 5,043; makefile: 1,258; objc: 1,209; java: 818; perl: 784; pascal: 681; tcl: 350
file content (16 lines) | stat: -rw-r--r-- 364 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <iostream>
#include <utilstr.h>
#include <swbuf.h>

using namespace sword;
using namespace std;

int main(int argc, char **argv) {
	const char *buf = (argc > 1) ? argv[1] : "Description=German Unrevidierte Luther Übersetzung von 1545";

	SWBuf fixed = assureValidUTF8(buf);

	cout << "input / processed:\n" << buf << "\n" << fixed << endl;

	return 0;
}