MCPcopy Create free account
hub / github.com/ImageEngine/cortex / attributeRegex

Function attributeRegex

src/IECoreScene/ShaderNetwork.cpp:88–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86};
87
88boost::regex attributeRegex()
89{
90 // Extract ATTR_NAME from the pattern <attr:ATTR_NAME>
91 // Only match if the angle brackets haven't been escaped with a backslash
92 static boost::regex r( "(?<!\\\\)<attr:([^>]*[^\\\\>])>" );
93 return r;
94}
95
96bool stringFindSubstitutions( const std::string &target, std::unordered_set< InternedString > &requestedAttributes )
97{

Callers 2

stringFindSubstitutionsFunction · 0.85
stringApplySubstitutionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected