void VectorFilterString::InsertStringPos()
{
- printf("VectorFilterString::InsertStringPos Start\n" );
std::vector<std::string> vOut0;
std::vector<std::string> vOut1;
std::vector<std::string> vOut2;
std::vector<std::string> vOut7;
std::vector<std::string> vOut8;
std::vector<std::string> vOut9;
-
int i,size = bbGetInputIn0().size();
std::string sk1 = bbGetInputsk1();
- printf("VectorFilterString::InsertStringPos sk1=%s sk2=%s \n", bbGetInputsk1().c_str() , bbGetInputsk2().c_str() );
int pos = atoi( bbGetInputsk2().c_str() );
-
- printf("VectorFilterString::InsertStringPos pos=%d sk1=%s \n", pos, sk1.c_str() );
for (i=0; i<size; i++)
{
vOut0.push_back( bbGetInputIn0()[i].insert(pos,sk1) );
- printf("VectorFilterString::InsertStringPos i=%s \n", vOut0[i].c_str() );
if ( i < bbGetInputIn1().size() ) { vOut1.push_back( bbGetInputIn1()[i].insert(pos,sk1) ); }
if ( i < bbGetInputIn2().size() ) { vOut2.push_back( bbGetInputIn2()[i].insert(pos,sk1) ); }
if ( i < bbGetInputIn3().size() ) { vOut3.push_back( bbGetInputIn3()[i].insert(pos,sk1) ); }
if ( i < bbGetInputIn8().size() ) { vOut8.push_back( bbGetInputIn8()[i].insert(pos,sk1) ); }
if ( i < bbGetInputIn9().size() ) { vOut9.push_back( bbGetInputIn9()[i].insert(pos,sk1) ); }
} // for i
-
bbSetOutputOut0( vOut0 );
bbSetOutputOut1( vOut1 );
bbSetOutputOut2( vOut2 );
bbSetOutputOut7( vOut7 );
bbSetOutputOut8( vOut8 );
bbSetOutputOut9( vOut9 );
-printf("VectorFilterString::InsertStringPos End\n" );
}