12 #ifndef __UN_Utils_h__
13 #define __UN_Utils_h__
41 static inline bool isValidCategoryName(
const UT_StringRef &name )
43 static inline bool isValidTypeName(
const UT_StringRef &name )
47 static inline bool isValidPortTypeName(
const UT_StringRef &name,
51 static inline bool isValidParmTypeName(
const UT_StringRef &name )
52 {
return isValidTypeName(name); }
54 static inline bool isValidGraphItemName(
const UT_StringRef &name,
57 static inline bool isValidNodeName(
const UT_StringRef &name,
59 {
return isValidGraphItemName(name, safe_chars); }
60 static inline bool isValidPortName(
const UT_StringRef &name )
62 static inline bool isValidInputName(
const UT_StringRef &name )
63 {
return isValidPortName(name); }
64 static inline bool isValidOutputName(
const UT_StringRef &name )
65 {
return isValidPortName(name); }
66 static inline bool isValidParmName(
const UT_StringRef &name )
84 return makeValidName(name);
91 return makeValidName(name, safe_chars);
97 return makeValidName(name);
106 return isValidCategoryName( name )
107 ? name : makeValidCategoryName( name );
bool isValidVariableName(const char *safechars=nullptr) const
GLuint const GLchar * name
UN_API bool isValidNodeTypeName(const UT_StringRef &name, const UT_StringRef &safe_chars=UT_StringRef())
SYS_NO_DISCARD_RESULT UT_StringRef forceValidVariableName(const char *safechars=nullptr) const
MX_CORE_API bool isValidName(const string &name)
Return true if the given string is a valid MaterialX name.