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

Method setPadding

src/IECore/FileSequence.cpp:148–166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146}
147
148void FileSequence::setPadding( unsigned padding )
149{
150 unsigned oldPadding = getPadding();
151 std::string oldPaddingStr = "";
152 for ( unsigned i = 0; i < oldPadding; i++)
153 {
154 oldPaddingStr += "#";
155 }
156
157 std::string newPaddingStr = "";
158 for ( unsigned i = 0; i < padding; i++)
159 {
160 newPaddingStr += "#";
161 }
162
163 std::string newFileName = m_fileName;
164 boost::replace_all( newFileName, oldPaddingStr, newPaddingStr );
165 setFileName( newFileName );
166}
167
168std::string FileSequence::getPrefix() const
169{

Callers 3

testPaddingMethod · 0.95
testMappingMethod · 0.80
lsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected