Debian Codegraph @

examples/script/customclass/bytearrayprototype.cpp

raw symbols SCIP
1 /****************************************************************************
2 **
3 ** Copyright (C) 2017 The Qt Company Ltd.
4 ** Contact: https://www.qt.io/licensing/
5 **
6 ** This file is part of the examples of the Qt Toolkit.
7 **
8 ** $QT_BEGIN_LICENSE:BSD$
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 https://www.qt.io/terms-conditions. For further
15 ** information use the contact form at https://www.qt.io/contact-us.
16 **
17 ** BSD License Usage
18 ** Alternatively, you may use this file under the terms of the BSD license
19 ** as follows:
20 **
21 ** "Redistribution and use in source and binary forms, with or without
22 ** modification, are permitted provided that the following conditions are
23 ** met:
24 ** * Redistributions of source code must retain the above copyright
25 ** notice, this list of conditions and the following disclaimer.
26 ** * Redistributions in binary form must reproduce the above copyright
27 ** notice, this list of conditions and the following disclaimer in
28 ** the documentation and/or other materials provided with the
29 ** distribution.
30 ** * Neither the name of The Qt Company Ltd nor the names of its
31 ** contributors may be used to endorse or promote products derived
32 ** from this software without specific prior written permission.
33 **
34 **
35 ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
36 ** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
37 ** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
38 ** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
39 ** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
40 ** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
41 ** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
42 ** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
43 ** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
44 ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
45 ** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
46 **
47 ** $QT_END_LICENSE$
48 **
49 ****************************************************************************/
50
51 #include "bytearrayprototype.h"cxx . . $ `<file>/examples/script/customclass/bytearrayprototype.h`/
52 #include <QtScript/QScriptEngine>cxx . . $ `<file>/include/QtScript/QScriptEngine`/
53
54 Q_DECLARE_METATYPEcxx . . $ `<external>/17491093664533580526/qmetatype.h:2056:9`!(QByteArray*)
55
56 ByteArrayPrototypecxx . . $ ByteArrayPrototype#::ByteArrayPrototypecxx . . $ ByteArrayPrototype#ByteArrayPrototype(749de1b6ae65bddd).(QObjectcxx . . $ QObject# *parent)
57 : QObjectcxx . . $ QObject#QObject(749de1b6ae65bddd).(parent)
58 {
59 }
60
61 ByteArrayPrototypecxx . . $ ByteArrayPrototype#::~cxx . . $ ByteArrayPrototype#`~ByteArrayPrototype`(ced63f7c635d850d).ByteArrayPrototypecxx . . $ ByteArrayPrototype#()
62 {
63 }
64
65 //! [0]
66 QByteArraycxx . . $ QByteArray# *ByteArrayPrototypecxx . . $ ByteArrayPrototype#::thisByteArraycxx . . $ ByteArrayPrototype#thisByteArray(dcfb9cb0f2d23653).() const
67 {
68 return qscriptvalue_castcxx . . $ qscriptvalue_cast(11c954240a7b88c6).<QByteArraycxx . . $ QByteArray#*>(thisObjectcxx . . $ QScriptable#thisObject(73013aefd0020d47).().datacxx . . $ QScriptValue#data(73013aefd0020d47).());
69 }
70 //! [0]
71
72 void ByteArrayPrototypecxx . . $ ByteArrayPrototype#::chopcxx . . $ ByteArrayPrototype#chop(d4f767463ce0a6b3).(int n)
73 {
74 thisByteArraycxx . . $ ByteArrayPrototype#thisByteArray(dcfb9cb0f2d23653).()->chopcxx . . $ QByteArray#chop(d4f767463ce0a6b3).(n);
75 }
76
77 bool ByteArrayPrototypecxx . . $ ByteArrayPrototype#::equalscxx . . $ ByteArrayPrototype#equals(544790aa27d183a0).(const QByteArraycxx . . $ QByteArray# &other)
78 {
79 return *thisByteArraycxx . . $ ByteArrayPrototype#thisByteArray(dcfb9cb0f2d23653).() ==cxx . . $ `operator==`(be1acefd00fee2fd). other;
80 }
81
82 QByteArraycxx . . $ QByteArray# ByteArrayPrototypecxx . . $ ByteArrayPrototype#::leftcxx . . $ ByteArrayPrototype#left(1e245adf2d5d15b2).(int len) const
83 {
84 return thisByteArraycxx . . $ ByteArrayPrototype#thisByteArray(dcfb9cb0f2d23653).()->leftcxx . . $ QByteArray#left(1e245adf2d5d15b2).(len);
85 }
86
87 //! [1]
88 QByteArraycxx . . $ QByteArray# ByteArrayPrototypecxx . . $ ByteArrayPrototype#::midcxx . . $ ByteArrayPrototype#mid(7d967001c4837235).(int pos, int len) const
89 {
90 return thisByteArraycxx . . $ ByteArrayPrototype#thisByteArray(dcfb9cb0f2d23653).()->midcxx . . $ QByteArray#mid(7d967001c4837235).(pos, len);
91 }
92
93 QScriptValuecxx . . $ QScriptValue# ByteArrayPrototypecxx . . $ ByteArrayPrototype#::removecxx . . $ ByteArrayPrototype#remove(c19a6996877f5961).(int pos, int len)
94 {
95 thisByteArraycxx . . $ ByteArrayPrototype#thisByteArray(dcfb9cb0f2d23653).()->removecxx . . $ QByteArray#remove(f1f8c485ab10dfd2).(pos, len);
96 return thisObjectcxx . . $ QScriptable#thisObject(73013aefd0020d47).();
97 }
98 //! [1]
99
100 QByteArraycxx . . $ QByteArray# ByteArrayPrototypecxx . . $ ByteArrayPrototype#::rightcxx . . $ ByteArrayPrototype#right(1e245adf2d5d15b2).(int len) const
101 {
102 return thisByteArraycxx . . $ ByteArrayPrototype#thisByteArray(dcfb9cb0f2d23653).()->rightcxx . . $ QByteArray#right(1e245adf2d5d15b2).(len);
103 }
104
105 QByteArraycxx . . $ QByteArray# ByteArrayPrototypecxx . . $ ByteArrayPrototype#::simplifiedcxx . . $ ByteArrayPrototype#simplified(a96750bfbcb1fbe9).() const
106 {
107 return thisByteArraycxx . . $ ByteArrayPrototype#thisByteArray(dcfb9cb0f2d23653).()->simplifiedcxx . . $ QByteArray#simplified(ef52b713090bc85a).();
108 }
109
110 QByteArraycxx . . $ QByteArray# ByteArrayPrototypecxx . . $ ByteArrayPrototype#::toBase64cxx . . $ ByteArrayPrototype#toBase64(a96750bfbcb1fbe9).() const
111 {
112 return thisByteArraycxx . . $ ByteArrayPrototype#thisByteArray(dcfb9cb0f2d23653).()->toBase64cxx . . $ QByteArray#toBase64(a96750bfbcb1fbe9).();
113 }
114
115 QByteArraycxx . . $ QByteArray# ByteArrayPrototypecxx . . $ ByteArrayPrototype#::toLowercxx . . $ ByteArrayPrototype#toLower(a96750bfbcb1fbe9).() const
116 {
117 return thisByteArraycxx . . $ ByteArrayPrototype#thisByteArray(dcfb9cb0f2d23653).()->toLowercxx . . $ QByteArray#toLower(ef52b713090bc85a).();
118 }
119
120 QByteArraycxx . . $ QByteArray# ByteArrayPrototypecxx . . $ ByteArrayPrototype#::toUppercxx . . $ ByteArrayPrototype#toUpper(a96750bfbcb1fbe9).() const
121 {
122 return thisByteArraycxx . . $ ByteArrayPrototype#thisByteArray(dcfb9cb0f2d23653).()->toUppercxx . . $ QByteArray#toUpper(ef52b713090bc85a).();
123 }
124
125 QByteArraycxx . . $ QByteArray# ByteArrayPrototypecxx . . $ ByteArrayPrototype#::trimmedcxx . . $ ByteArrayPrototype#trimmed(a96750bfbcb1fbe9).() const
126 {
127 return thisByteArraycxx . . $ ByteArrayPrototype#thisByteArray(dcfb9cb0f2d23653).()->trimmedcxx . . $ QByteArray#trimmed(ef52b713090bc85a).();
128 }
129
130 void ByteArrayPrototypecxx . . $ ByteArrayPrototype#::truncatecxx . . $ ByteArrayPrototype#truncate(d4f767463ce0a6b3).(int pos)
131 {
132 thisByteArraycxx . . $ ByteArrayPrototype#thisByteArray(dcfb9cb0f2d23653).()->truncatecxx . . $ QByteArray#truncate(d4f767463ce0a6b3).(pos);
133 }
134
135 QStringcxx . . $ QString# ByteArrayPrototypecxx . . $ ByteArrayPrototype#::toLatin1Stringcxx . . $ ByteArrayPrototype#toLatin1String(6ef7b6c27b00b43d).() const
136 {
137 return QStringcxx . . $ QString#::fromLatin1cxx . . $ QString#fromLatin1(4e15edac36d215be).(*thisByteArraycxx . . $ ByteArrayPrototype#thisByteArray(dcfb9cb0f2d23653).());
138 }
139
140 //! [2]
141 QScriptValuecxx . . $ QScriptValue# ByteArrayPrototypecxx . . $ ByteArrayPrototype#::valueOfcxx . . $ ByteArrayPrototype#valueOf(73013aefd0020d47).() const
142 {
143 return thisObjectcxx . . $ QScriptable#thisObject(73013aefd0020d47).().datacxx . . $ QScriptValue#data(73013aefd0020d47).();
144 }
145 //! [2]