~ubuntu-branches/ubuntu/wily/psi/wily-proposed

« back to all changes in this revision

Viewing changes to iris/src/xmpp/xmpp-core/xmlprotocol.cpp

  • Committer: Package Import Robot
  • Author(s): Jan Niehusmann
  • Date: 2014-07-01 21:49:34 UTC
  • mfrom: (6.1.7 sid)
  • Revision ID: package-import@ubuntu.com-20140701214934-gt4dkgm94byi4vnn
Tags: 0.15-1
* New upstream version
* set debhelper compat level to 9
* set Standards-Version to 3.9.5 (no further changes)
* add lintian override regarding license-problem-non-free-RFC
* use qconf to regenerate configure script
* implement hardening using buildflags instead of hardening-wrapper

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * xmlprotocol.cpp - state machine for 'jabber-like' protocols
 
2
 * xmlprotocol.cpp - state machine for 'xmpp-like' protocols
3
3
 * Copyright (C) 2004  Justin Karneges
4
4
 *
5
5
 * This library is free software; you can redistribute it and/or
14
14
 *
15
15
 * You should have received a copy of the GNU Lesser General Public
16
16
 * License along with this library; if not, write to the Free Software
17
 
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
17
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18
18
 *
19
19
 */
20
20
 
150
150
// [2] Char ::= #x9 | #xA | #xD | [#x20-#xD7FF] | [#xE000-#xFFFD] | [#x10000-#x10FFFF]
151
151
static inline bool validChar(const quint32 ch) 
152
152
{
153
 
        return  ch == 0x9 || ch == 0xA || ch == 0xD
154
 
                        || ch >= 0x20 && ch <= 0xD7FF
155
 
                        || ch >= 0xE000 && ch <= 0xFFFD
156
 
                        || ch >= 0x10000 && ch <= 0x10FFFF;
 
153
        return ch == 0x9 || ch == 0xA || ch == 0xD
 
154
                        || (ch >= 0x20 && ch <= 0xD7FF)
 
155
                        || (ch >= 0xE000 && ch <= 0xFFFD)
 
156
                        || (ch >= 0x10000 && ch <= 0x10FFFF);
157
157
}
158
158
 
159
159
static inline bool lowSurrogate(const quint32 ch) 
263
263
}
264
264
 
265
265
XmlProtocol::XmlProtocol()
266
 
        : QObject(qApp)
267
266
{
268
267
        init();
269
268
}