![]() |
Qt 6.x
The Qt SDK
|
#include <qv4compiler_p.h>
Collaboration diagram for QV4::Compiler::StringTableGenerator:Public Member Functions | |
| StringTableGenerator () | |
| int | registerString (const QString &str) |
| int | getStringId (const QString &string) const |
| QString | stringForIndex (int index) const |
| uint | stringCount () const |
| uint | sizeOfTableAndData () const |
| void | freeze () |
| void | clear () |
| void | initializeFromBackingUnit (const CompiledData::Unit *unit) |
| void | serialize (CompiledData::Unit *unit) |
| QStringList | allStrings () const |
Definition at line 45 of file qv4compiler_p.h.
| QT_END_NAMESPACE QV4::Compiler::StringTableGenerator::StringTableGenerator | ( | ) |
Definition at line 30 of file qv4compiler.cpp.
References clear().
Here is the call graph for this function:
|
inline |
Definition at line 62 of file qv4compiler_p.h.
| void QV4::Compiler::StringTableGenerator::clear | ( | ) |
Definition at line 53 of file qv4compiler.cpp.
Referenced by StringTableGenerator().
Here is the caller graph for this function:
|
inline |
Definition at line 55 of file qv4compiler_p.h.
| int QV4::Compiler::StringTableGenerator::getStringId | ( | const QString & | string | ) | const |
Definition at line 47 of file qv4compiler.cpp.
References Q_ASSERT.
| void QV4::Compiler::StringTableGenerator::initializeFromBackingUnit | ( | const CompiledData::Unit * | unit | ) |
Definition at line 61 of file qv4compiler.cpp.
References clear(), i, QV4::CompiledData::Unit::stringAtInternal(), and QV4::CompiledData::Unit::stringTableSize.
Referenced by QQmlIRLoader::load().
Here is the call graph for this function:
Here is the caller graph for this function:| int QV4::Compiler::StringTableGenerator::registerString | ( | const QString & | str | ) |
Definition at line 35 of file qv4compiler.cpp.
References QV4::CompiledData::String::calculateSize(), QSet< T >::cend(), QSet< T >::constFind(), QSet< T >::insert(), it, Q_ASSERT, QString::size(), and str.
Here is the call graph for this function:| void QV4::Compiler::StringTableGenerator::serialize | ( | CompiledData::Unit * | unit | ) |
Definition at line 70 of file qv4compiler.cpp.
References QString::at(), QV4::CompiledData::String::calculateSize(), QString::constData(), i, QV4::CompiledData::Unit::offsetToStringTable, Q_ASSERT, QtPrivate::roundUpToMultipleOf(), QString::size(), stringData(), and QV4::CompiledData::Unit::stringTableSize.
Here is the call graph for this function:
|
inline |
Definition at line 53 of file qv4compiler_p.h.
|
inline |
Definition at line 51 of file qv4compiler_p.h.
|
inline |
Definition at line 50 of file qv4compiler_p.h.
References QString::at().
Referenced by QmlIR::Signal::parameterStringList(), and QQmlTypeData::stringAt().
Here is the call graph for this function:
Here is the caller graph for this function: