|
string | getVersionString () |
| Return the version of the MaterialX library as a string.
|
|
std::tuple< int, int, int > | getVersionIntegers () |
| Return the major, minor, and build versions of the MaterialX library as an integer tuple.
|
|
string | createValidName (string name, char replaceChar='_') |
| Create a valid MaterialX name from the given string.
|
|
bool | isValidName (const string &name) |
| Return true if the given string is a valid MaterialX name.
|
|
string | incrementName (const string &name) |
| Increment the numeric suffix of a name.
|
|
StringVec | splitString (const string &str, const string &sep) |
| Split a string into a vector of substrings using the given set of separator characters.
|
|
string | replaceSubstrings (string str, const StringMap &stringMap) |
| Apply the given substring substitutions to the input string.
|
|
string | stringToLower (string str) |
| Return a copy of the given string with letters converted to lower case.
|
|
bool | stringEndsWith (const string &str, const string &suffix) |
| Return true if the given string ends with the given suffix.
|
|
string | trimSpaces (const string &str) |
| Trim leading and trailing spaces from a string.
|
|
template<typename T > |
void | hashCombine (size_t &seed, const T &value) |
| Combine the hash of a value with an existing seed.
|
|
StringVec | splitNamePath (const string &namePath) |
| Split a name path into string vector.
|
|
string | createNamePath (const StringVec &nameVec) |
| Create a name path from a string vector.
|
|
string | parentNamePath (const string &namePath) |
| Given a name path, return the parent name path.
|
|