1 /* coded by Ketmar // Vampire Avalon (ketmar@ketmar.no-ip.org)
3 * This program is free software. It comes without any warranty, to
4 * the extent permitted by applicable law. You can redistribute it
5 * and/or modify it under the terms of the Do What The Fuck You Want
6 * To Public License, Version 2, as published by Sam Hocevar. See
7 * http://sam.zoy.org/wtfpl/COPYING for more details.
14 #include <QStringList>
17 #include "k8strutils.h"
20 int main (int argc
, char *argv
[]) {
21 QTextCodec::setCodecForCStrings(QTextCodec::codecForName("koi8-u"));
22 QTextCodec::setCodecForLocale(QTextCodec::codecForName("koi8-u"));
24 qDebug() << fixURLs("wg www.abc.com ewg");
25 qDebug() << fixURLs("wg http://abc.com/%34(rf%43) gw");
26 qDebug() << fixURLs("wg (http://abc.com/%34(rf%43)) gw");
27 qDebug() << fixURLs("wg (http://abc.com/%34(rf%43)) gw");
28 qDebug() << fixURLs("wg (http://abc.com/eg/egeg#%34(rf%43)) gw");
29 qDebug() << fixURLs("wg (http://abc.com/eg/egeg#%34w?a=4&c=d(rf%43)) gw");
30 qDebug() << fixURLs("wg <http://abc.com/eg/egeg#%34w?a=4&c=d(rf%43)> gw");