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

Function apply_modifiers_prepost

src/engine/function.cpp:1085–1109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1083}
1084
1085static LIST * apply_modifiers_prepost( LIST * result, string * buf,
1086 VAR_EDITS * edits, int32_t n, LISTITER begin, LISTITER end )
1087{
1088 for ( LISTITER iter = begin; iter != end; iter = list_next( iter ) )
1089 {
1090 for ( int32_t i = 0; i < n; ++i )
1091 {
1092 if ( edits[ i ].prefix.ptr )
1093 {
1094 string_append( buf, edits[ i ].prefix.ptr );
1095 }
1096 }
1097 string_append( buf, object_str( list_item( iter ) ) );
1098 for ( int32_t i = 0; i < n; ++i )
1099 {
1100 if ( edits[ i ].postfix.ptr )
1101 {
1102 string_append( buf, edits[ i ].postfix.ptr );
1103 }
1104 }
1105 result = list_push_back( result, object_new( buf->value ) );
1106 string_truncate( buf, 0 );
1107 }
1108 return result;
1109}
1110
1111static LIST * apply_modifiers_empty( LIST * result, string * buf,
1112 VAR_EDITS * edits, int32_t n )

Callers 1

apply_modifiers_implFunction · 0.85

Calls 5

string_appendFunction · 0.85
object_strFunction · 0.85
list_push_backFunction · 0.85
object_newFunction · 0.85
string_truncateFunction · 0.85

Tested by

no test coverage detected