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

Function string_append_range

src/engine/jam_strings.cpp:131–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

129
130
131void string_append_range( string * self, char const * start, char const * finish )
132{
133 int32_t rhs_size = int32_t(finish - start);
134 int32_t new_size = self->size + rhs_size;
135 assert_invariants( self );
136
137 maybe_reserve( self, new_size );
138
139 if ( start != finish )
140 memcpy( self->value + self->size, start, size_t(rhs_size) );
141 self->size = new_size;
142 self->value[ new_size ] = 0;
143
144 assert_invariants( self );
145}
146
147
148void string_copy( string * s, char const * rhs )

Callers 13

var_definesFunction · 0.85
file_build1Function · 0.85
lookup_ruleFunction · 0.85
path_buildFunction · 0.85
glob_recursiveFunction · 0.85
builtin_matchFunction · 0.85
exec_cmdFunction · 0.85
string_push_backFunction · 0.85
canonicWindowsPathFunction · 0.85
regex_replaceFunction · 0.85

Calls 2

assert_invariantsFunction · 0.85
maybe_reserveFunction · 0.85

Tested by

no test coverage detected