12 QByteArray
resourceContents(QString resource,
bool *ok=
nullptr,
bool squashHash=
false);
13 QJsonObject
jsonResource(QString resource,
bool *ok=
nullptr);
26 QStringList
exec(QString command,
bool *ok=
nullptr);
Utility functions for VFS operations.
QStringList expandSequence(QString sequence)
Expand a sequence-notated list into a list of numbers.
QString cleanPath(QString path)
Clean and normalize a VFS path.
QStringList expandSequenceListing(QString sequence)
Expand a sequence-notated string into a list of names.
QStringList sequenceTypes
A list of regular expressions which can represent image or file sequences.
QJsonObject decodeBase64Path(QByteArray p, bool *ok)
Decode a base64 string as a JSON object.
QStringList exec(QString command, bool *ok=nullptr)
execute a command in a shell, and return the resulting output as a QStringList
QJsonObject jsonResource(QString resource, bool *ok=nullptr)
Fetch the contents of a Qt resource as a QJsonObject.
QJsonValue parseSequenceSyntax(QString path)
Check if a path or string matches our syntax for file sequences.
QJsonObject sequenceListing(QJsonObject l, QStringList types=sequenceTypes)
Given a list of filenames and a regex list, collapse the listing to sequences when possible.
QString unescapeXMLAttribute(QString attribute)
Un-escape an XML attribute.
QByteArray encodeBase64Path(QJsonObject p)
Encode a JSON object as a base64 string.
QByteArray resourceContents(QString resource, bool *ok=nullptr, bool squashHash=false)
Fetch the contents of a Qt resource file.