| 119 | } |
| 120 | |
| 121 | std::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 |
no test coverage detected