MCPcopy Create free account
hub / github.com/boostorg/build / combine_strings

Function combine_strings

src/engine/function.cpp:1329–1349  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1327}
1328
1329static void combine_strings( STACK * s, int32_t n, string * out )
1330{
1331 int32_t i;
1332 for ( i = 0; i < n; ++i )
1333 {
1334 LIST * const values = stack_pop( s );
1335 LISTITER iter = list_begin( values );
1336 LISTITER const end = list_end( values );
1337 if ( iter != end )
1338 {
1339 string_append( out, object_str( list_item( iter ) ) );
1340 for ( iter = list_next( iter ); iter != end; iter = list_next( iter
1341 ) )
1342 {
1343 string_push_back( out, ' ' );
1344 string_append( out, object_str( list_item( iter ) ) );
1345 }
1346 list_free( values );
1347 }
1348 }
1349}
1350
1351struct dynamic_array
1352{

Callers 1

function_runFunction · 0.85

Calls 7

stack_popFunction · 0.85
list_beginFunction · 0.85
list_endFunction · 0.85
string_appendFunction · 0.85
object_strFunction · 0.85
string_push_backFunction · 0.85
list_freeFunction · 0.85

Tested by

no test coverage detected