equal
deleted
inserted
replaced
1 /**************************************************************************** |
1 /**************************************************************************** |
2 ** |
2 ** |
3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). |
3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). |
4 ** All rights reserved. |
4 ** All rights reserved. |
5 ** Contact: Nokia Corporation (qt-info@nokia.com) |
5 ** Contact: Nokia Corporation (qt-info@nokia.com) |
6 ** |
6 ** |
7 ** This file is part of the QtSql module of the Qt Toolkit. |
7 ** This file is part of the QtSql module of the Qt Toolkit. |
8 ** |
8 ** |
134 while (i > 0) { |
134 while (i > 0) { |
135 *(++ptr) = 'a' + i % 16; |
135 *(++ptr) = 'a' + i % 16; |
136 i >>= 4; |
136 i >>= 4; |
137 } |
137 } |
138 |
138 |
139 return QString::fromUtf16(arr, int(ptr - arr) + 1); |
139 return QString(reinterpret_cast<const QChar *>(arr), int(ptr - arr) + 1); |
140 } |
140 } |
141 |
141 |
142 static bool qIsAlnum(QChar ch) |
142 static bool qIsAlnum(QChar ch) |
143 { |
143 { |
144 uint u = uint(ch.unicode()); |
144 uint u = uint(ch.unicode()); |