mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-21 14:02:58 +02:00
2021-02-23 Fred Gleason <fredg@paravelsystems.com>
* Removed the Qt3Support library from the build system. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
//
|
||||
// Test the Rivendell string encoder routines.
|
||||
//
|
||||
// (C) Copyright 2013,2016 Fred Gleason <fredg@paravelsystems.com>
|
||||
// (C) Copyright 2013-2021 Fred Gleason <fredg@paravelsystems.com>
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License version 2 as
|
||||
@@ -18,11 +18,7 @@
|
||||
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
//
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include <qapplication.h>
|
||||
#include <qvariant.h>
|
||||
#include <QApplication>
|
||||
|
||||
#include <rdcmd_switch.h>
|
||||
#include <rdweb.h>
|
||||
@@ -64,7 +60,7 @@ MainObject::MainObject(QObject *parent)
|
||||
}
|
||||
if(!cmd->processed(i)) {
|
||||
fprintf(stderr,"stringcode_test: unknown option \"%s\"\n",
|
||||
(const char *)cmd->key(i));
|
||||
cmd->key(i).toUtf8().constData());
|
||||
exit(256);
|
||||
}
|
||||
}
|
||||
@@ -84,18 +80,18 @@ MainObject::MainObject(QObject *parent)
|
||||
}
|
||||
str=QString(teststr).replace("\n","");
|
||||
|
||||
printf("Testing String: |%s|\n",(const char *)str);
|
||||
printf("Testing String: |%s|\n",str.toUtf8().constData());
|
||||
if(xml_encode) {
|
||||
printf(" RDXmlEscape: |%s|\n",(const char *)RDXmlEscape(str));
|
||||
printf(" RDXmlEscape: |%s|\n",RDXmlEscape(str).toUtf8().constData());
|
||||
}
|
||||
if(xml_decode) {
|
||||
printf(" RDXmlUnescape: |%s|\n",(const char *)RDXmlUnescape(str));
|
||||
printf(" RDXmlUnescape: |%s|\n",RDXmlUnescape(str).toUtf8().constData());
|
||||
}
|
||||
if(url_encode) {
|
||||
printf(" RDUrlEscape: |%s|\n",(const char *)RDUrlEscape(str));
|
||||
printf(" RDUrlEscape: |%s|\n",RDUrlEscape(str).toUtf8().constData());
|
||||
}
|
||||
if(url_decode) {
|
||||
printf(" RDUrlUnescape: |%s|\n",(const char *)RDUrlUnescape(str));
|
||||
printf(" RDUrlUnescape: |%s|\n",RDUrlUnescape(str).toUtf8().constData());
|
||||
}
|
||||
printf("\n");
|
||||
|
||||
|
Reference in New Issue
Block a user