|
| template<typename String, typename CharacterLiteral, typename StringView> |
| static String | escapeString (String s) |
| template<typename String = QString, typename CharacterLiteral = QLatin1Char, typename StringView = QLatin1StringView> |
| static String | toLiteral (const String &s, StringView ctor=StringView("QStringLiteral")) |
| static QString | constRefify (QString type) |
| static std::optional< QQmlJSMetaProperty > | changeHandlerProperty (const QQmlJSScope::ConstPtr &scope, QStringView signalName) |
| static std::optional< QQmlJSMetaProperty > | propertyFromChangedHandler (const QQmlJSScope::ConstPtr &scope, QStringView changedHandler) |
| static bool | hasCompositeBase (const QQmlJSScope::ConstPtr &scope) |
| static bool | bindablePropertyHasDefaultAccessor (const QQmlJSMetaProperty &p, PropertyAccessor accessor) |
| static ResolvedAlias | resolveAlias (const QQmlJSTypeResolver *typeResolver, const QQmlJSMetaProperty &property, const QQmlJSScope::ConstPtr &owner, const AliasResolutionVisitor &visitor) |
| static ResolvedAlias | resolveAlias (const QQmlJSScopesById &idScopes, const QQmlJSMetaProperty &property, const QQmlJSScope::ConstPtr &owner, const AliasResolutionVisitor &visitor) |
| template<typename QQmlJSScopePtr, typename Action> |
| static bool | searchBaseAndExtensionTypes (const QQmlJSScopePtr &type, const Action &check) |
| template<typename Action> |
| static void | traverseFollowingQmlIrObjectStructure (const QQmlJSScope::Ptr &root, Action act) |
| template<typename Action> |
| static void | traverseFollowingMetaObjectHierarchy (const QQmlJSScope::ConstPtr &scope, const QQmlJSScope::ConstPtr &start, Action act) |
| static std::optional< QQmlJSFixSuggestion > | didYouMean (const QString &userInput, QStringList candidates, const QString &filename, const QQmlJS::SourceLocation &location) |
| static std::variant< QString, QQmlJS::DiagnosticMessage > | sourceDirectoryPath (const QQmlJSImporter *importer, const QString &buildDirectoryPath) |
| template<typename Container> |
| static void | deduplicate (Container &container) |
| static QStringList | cleanPaths (QStringList &&paths) |
| static QStringList | resourceFilesFromBuildFolders (const QStringList &buildFolders) |
| static QString | qmlSourcePathFromBuildPath (const QQmlJSResourceFileMapper *mapper, const QString &pathInBuildFolder) |
| static QString | qmlBuildPathFromSourcePath (const QQmlJSResourceFileMapper *mapper, const QString &pathInBuildFolder) |
| static QString | getScopeName (const QQmlJSScope::ConstPtr &scope, QQmlJSScope::ScopeType type) |
| static QString | fileSelectorFor (const QQmlJSScope::ConstPtr &scope1) |
Definition at line 71 of file qqmljsutils_p.h.
template<typename String = QString, typename CharacterLiteral = QLatin1Char, typename StringView = QLatin1StringView>
| String QQmlJSUtils::toLiteral |
( |
const String & | s, |
|
|
StringView | ctor = StringView("QStringLiteral") ) |
|
inlinestatic |
Returns s wrapped into a literal macro specified by ctor. By default, returns a QStringLiteral-wrapped literal. This function is mostly useful for code generators.
- Note
- This function escapes s before wrapping it.
Definition at line 97 of file qqmljsutils_p.h.