QcContentNames Namespace
Content names have the form "namespace:path" with lowercase letters, digits, '_', '-', '.' and '/'. More...
| Header: | #include <common/content/registry/QcContentNames.h> |
Functions
| bool | isValidPart(const QString &part) |
| bool | isValidQualified(const QString &name) |
| QString | qualify(const QString &name, const QString &defaultNamespace) |
Detailed Description
Function Documentation
bool QcContentNames::isValidPart(const QString &part)
Returns whether part is a non-empty namespace or path of only the allowed characters.
bool QcContentNames::isValidQualified(const QString &name)
Returns whether name is "namespace:path" with two valid parts.
QString QcContentNames::qualify(const QString &name, const QString &defaultNamespace)
Returns name with defaultNamespace added when it has none, or an empty string when the result is not a valid qualified name.