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

Function stringApplySubstitutions

src/IECoreScene/ShaderNetwork.cpp:121–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119}
120
121std::string stringApplySubstitutions( const std::string &target, const IECore::CompoundObject *attributes )
122{
123 ReplaceFunctor rf( attributes );
124 std::string result = boost::regex_replace(
125 target, attributeRegex(), rf, boost::match_default | boost::format_all
126 );
127 boost::replace_all( result, "\\<", "<" );
128 boost::replace_all( result, "\\>", ">" );
129 return result;
130}
131
132
133} // namespace

Callers 1

applySubstitutionsMethod · 0.85

Calls 1

attributeRegexFunction · 0.85

Tested by

no test coverage detected