Sonnet
Go to the documentation of this file.
22 #include <QtCore/QDebug>
23 #include <QtCore/QFile>
24 #include <QtCore/QHash>
25 #include <QtCore/QRegExp>
26 #include <QtCore/QString>
27 #include <QtCore/QStringList>
28 #include <QtCore/QTextStream>
33 QTextStream in(stdin);
36 sout.open(stdout, QIODevice::WriteOnly);
37 QDataStream out(&sout);
48 if ( line.isEmpty() || line.startsWith(
'#') )
52 int split = rx.indexIn(line);
54 QString catagoryString = line.right( line.size() - split - 1 ).simplified();
56 qint8 catagory = catalog.key(catagoryString);
59 catalog[ catagory = catalog.size()+1 ] = catagoryString;
62 QString codes = line.left( split ).simplified();
65 quint32 start = codeList.at(0).toInt(&ok2, 16);
66 quint32 end = (codeList.size() == 2) ? codeList.at(1).toInt(&ok2, 16) : start;
67 for (
quint32 code = start; code<=end; ++code)
69 data.insert( code, catagory );
70 qDebug() <<
"[" << catagory <<
"] " << code;
74 out << catalog << data;
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:49:51 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.