Absolute File Name: | /home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qstring_compat.cpp |
Source code | Switch to Preprocessed file |
Line | Source | Count |
---|---|---|
1 | /**************************************************************************** | - |
2 | ** | - |
3 | ** Copyright (C) 2013 Intel Corporation | - |
4 | ** Contact: http://www.qt.io/licensing/ | - |
5 | ** | - |
6 | ** This file is part of the QtCore module of the Qt Toolkit. | - |
7 | ** | - |
8 | ** $QT_BEGIN_LICENSE:LGPL21$ | - |
9 | ** Commercial License Usage | - |
10 | ** Licensees holding valid commercial Qt licenses may use this file in | - |
11 | ** accordance with the commercial license agreement provided with the | - |
12 | ** Software or, alternatively, in accordance with the terms contained in | - |
13 | ** a written agreement between you and The Qt Company. For licensing terms | - |
14 | ** and conditions see http://www.qt.io/terms-conditions. For further | - |
15 | ** information use the contact form at http://www.qt.io/contact-us. | - |
16 | ** | - |
17 | ** GNU Lesser General Public License Usage | - |
18 | ** Alternatively, this file may be used under the terms of the GNU Lesser | - |
19 | ** General Public License version 2.1 or version 3 as published by the Free | - |
20 | ** Software Foundation and appearing in the file LICENSE.LGPLv21 and | - |
21 | ** LICENSE.LGPLv3 included in the packaging of this file. Please review the | - |
22 | ** following information to ensure the GNU Lesser General Public License | - |
23 | ** requirements will be met: https://www.gnu.org/licenses/lgpl.html and | - |
24 | ** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. | - |
25 | ** | - |
26 | ** As a special exception, The Qt Company gives you certain additional | - |
27 | ** rights. These rights are described in The Qt Company LGPL Exception | - |
28 | ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. | - |
29 | ** | - |
30 | ** $QT_END_LICENSE$ | - |
31 | ** | - |
32 | ****************************************************************************/ | - |
33 | - | |
34 | #if defined(QSTRING_H) || defined(QBYTEARRAY_H) | - |
35 | # error "This file cannot be compiled with pre-compiled headers" | - |
36 | #endif | - |
37 | #define QT_COMPILING_QSTRING_COMPAT_CPP | - |
38 | - | |
39 | #include "qbytearray.h" | - |
40 | #include "qstring.h" | - |
41 | - | |
42 | QT_BEGIN_NAMESPACE | - |
43 | - | |
44 | // all these implementations must be the same as the inline versions in qstring.h | - |
45 | QString QString::trimmed() const | - |
46 | { | - |
47 | return trimmed_helper(*this); never executed: return trimmed_helper(*this); | 0 |
48 | } | - |
49 | - | |
50 | QString QString::simplified() const | - |
51 | { | - |
52 | return simplified_helper(*this); never executed: return simplified_helper(*this); | 0 |
53 | } | - |
54 | - | |
55 | QString QString::toLower() const | - |
56 | { | - |
57 | return toLower_helper(*this); never executed: return toLower_helper(*this); | 0 |
58 | } | - |
59 | - | |
60 | QString QString::toCaseFolded() const | - |
61 | { | - |
62 | return toCaseFolded_helper(*this); never executed: return toCaseFolded_helper(*this); | 0 |
63 | } | - |
64 | - | |
65 | QString QString::toUpper() const | - |
66 | { | - |
67 | return toUpper_helper(*this); never executed: return toUpper_helper(*this); | 0 |
68 | } | - |
69 | - | |
70 | QByteArray QString::toLatin1() const | - |
71 | { | - |
72 | return toLatin1_helper(*this); never executed: return toLatin1_helper(*this); | 0 |
73 | } | - |
74 | - | |
75 | QByteArray QString::toLocal8Bit() const | - |
76 | { | - |
77 | return toLocal8Bit_helper(constData(), size()); never executed: return toLocal8Bit_helper(constData(), size()); | 0 |
78 | } | - |
79 | - | |
80 | QByteArray QString::toUtf8() const | - |
81 | { | - |
82 | return toUtf8_helper(*this); never executed: return toUtf8_helper(*this); | 0 |
83 | } | - |
84 | - | |
85 | // ditto, for qbytearray.h (because we're lazy) | - |
86 | QByteArray QByteArray::toLower() const | - |
87 | { | - |
88 | return toLower_helper(*this); never executed: return toLower_helper(*this); | 0 |
89 | } | - |
90 | - | |
91 | QByteArray QByteArray::toUpper() const | - |
92 | { | - |
93 | return toUpper_helper(*this); never executed: return toUpper_helper(*this); | 0 |
94 | } | - |
95 | - | |
96 | QByteArray QByteArray::trimmed() const | - |
97 | { | - |
98 | return trimmed_helper(*this); never executed: return trimmed_helper(*this); | 0 |
99 | } | - |
100 | - | |
101 | QByteArray QByteArray::simplified() const | - |
102 | { | - |
103 | return simplified_helper(*this); never executed: return simplified_helper(*this); | 0 |
104 | } | - |
105 | - | |
106 | QT_END_NAMESPACE | - |
Source code | Switch to Preprocessed file |