6#include <private/qqmlengine_p.h>
8#if QT_CONFIG(regularexpression)
9#include <QtCore/qregularexpression.h>
30#if QT_CONFIG(regularexpression)
56#if QT_CONFIG(regularexpression)
69template<
typename BaseNameHandler,
typename FailHandler>
71 const QUrl &
url, BaseNameHandler &&baseNameHandler, FailHandler &&failHandler)
85 ? baseNameHandler(baseName)
116 return baseName +
name.toUtf8() +
'_'
121 int referencingObjectIndex,
123 const QString &instantiatingPropertyName,
125 : referencingObjectIndex(referencingObjectIndex)
126 , instantiatingBinding(instantiatingBinding)
127 , instantiatingPropertyName(instantiatingPropertyName)
128 , referencingObjectPropertyCache(referencingObjectPropertyCache)
145 bool notInRevision =
false;
171 const int groupPropertyObjectIndex = pendingBinding.instantiatingBinding->value.objectIndex;
173 if (propertyCaches->
at(groupPropertyObjectIndex))
176 if (pendingBinding.instantiatingPropertyName.isEmpty()) {
178 auto cache = propertyCaches->
at(pendingBinding.referencingObjectIndex);
179 propertyCaches->
set(groupPropertyObjectIndex,
cache);
183 if (!pendingBinding.referencingObjectPropertyCache) {
184 pendingBinding.referencingObjectPropertyCache
185 = propertyCaches->
at(pendingBinding.referencingObjectIndex);
188 if (!pendingBinding.resolveInstantiatingProperty())
190 auto cache = pendingBinding.instantiatingPropertyCache();
191 propertyCaches->
set(groupPropertyObjectIndex,
cache);
T fetchAndAddRelaxed(T valueToAdd) noexcept
static QByteArray number(int, int base=10)
Returns a byte-array representing the whole number n as text.
constexpr bool isUpper() const noexcept
Returns true if the character is an uppercase letter, for example category() is Letter_Uppercase.
QQmlPropertyCache::ConstPtr at(int index) const
void set(int index, const QQmlPropertyCache::ConstPtr &replacement)
QTypeRevision typeVersion() const
QMetaType propType() const
constexpr bool isEmpty() const noexcept
Returns whether this string view is empty - that is, whether {size() == 0}.
QByteArray toUtf8() const
Returns a UTF-8 representation of the string view as a QByteArray.
constexpr QChar at(qsizetype n) const noexcept
Returns the character at position n in this string view.
constexpr QStringView mid(qsizetype pos, qsizetype n=-1) const noexcept
Returns the substring of length length starting at position start in this object.
\macro QT_RESTRICTED_CAST_FROM_ASCII
qsizetype lastIndexOf(QChar c, Qt::CaseSensitivity cs=Qt::CaseSensitive) const noexcept
QString path(ComponentFormattingOptions options=FullyDecoded) const
Returns the path of the URL.
QCache< int, Employee > cache
[0]
Combined button and popup list for selecting options.
GLsizei const GLchar *const * path
auto processUrlForClassName(const QUrl &url, BaseNameHandler &&baseNameHandler, FailHandler &&failHandler)
QUrl url("example.com")
[constructor-url-reference]
\inmodule QtCore \reentrant
int referencingObjectIndex
QQmlPropertyCache::ConstPtr referencingObjectPropertyCache
const QV4::CompiledData::Binding * instantiatingBinding
bool resolveInstantiatingProperty()
const QQmlPropertyData * instantiatingProperty
QQmlBindingInstantiationContext()
QQmlPropertyCache::ConstPtr instantiatingPropertyCache() const
QString instantiatingPropertyName
void resolveMissingPropertyCaches(QQmlPropertyCacheVector *propertyCaches) const
static bool canCreateClassNameTypeByUrl(const QUrl &url)
static QByteArray createClassNameTypeByUrl(const QUrl &url)
static QMetaType listTypeForPropertyType(QV4::CompiledData::CommonType type)
static QAtomicInt Q_AUTOTEST_EXPORT classIndexCounter
static QByteArray createClassNameForInlineComponent(const QUrl &baseUrl, const QString &name)
static QMetaType metaTypeForPropertyType(QV4::CompiledData::CommonType type)
const QQmlPropertyData * property(int index) const
quint32_le propertyNameIndex