| 1 |
/*========================================================================= |
| 2 |
|
| 3 |
Program: Array2InitInRowBug |
| 4 |
|
| 5 |
=========================================================================*/ |
| 6 |
|
| 7 |
#include "Array2InitInRowBug.h" |
| 8 |
|
| 9 |
//---------------------------------------------------------------------------- |
| 10 |
Array2InitInRowBug::Array2InitInRowBug(QObject *parent) |
| 11 |
{ |
| 12 |
|
| 13 |
} |
| 14 |
|
| 15 |
//----------------------------------------------------------------------------- |
| 16 |
Array2InitInRowBug::~Array2InitInRowBug() |
| 17 |
{ |
| 18 |
|
| 19 |
} |
| 20 |
|
| 21 |
//----------------------------------------------------------------------------- |
| 22 |
QString Array2InitInRowBug::decodeXml(const QString & xmlEncoded) |
| 23 |
{ |
| 24 |
QString encoded[8] = |
| 25 |
{ |
| 26 |
"&", // ampersand & |
| 27 |
"'", // simple quote ' |
| 28 |
"<", // smaller than < |
| 29 |
">", // greater than > |
| 30 |
""", // double quote " |
| 31 |
"
", // carriage return \r |
| 32 |
"
", // line feed, new line \n |
| 33 |
"	", // horizontal tab \t |
| 34 |
}; |
| 35 |
QString decoded[8] = |
| 36 |
{ |
| 37 |
"&", // ampersand & |
| 38 |
"\'", // simple quote ' |
| 39 |
"<", // smaller than < |
| 40 |
">", // greater than > |
| 41 |
"\"", // double quote |
| 42 |
"\r", // carriage return \r |
| 43 |
"\n", // line feed, new line \n |
| 44 |
"\t", // horizontal tab \t |
| 45 |
}; |
| 46 |
|
| 47 |
return QString(); |
| 48 |
} |