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

Function string_append

src/engine/jam_strings.cpp:116–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114
115
116void string_append( string * self, char const * rhs )
117{
118 int32_t rhs_size = int32_t(strlen( rhs ));
119 int32_t new_size = self->size + rhs_size;
120 assert_invariants( self );
121
122 maybe_reserve( self, new_size );
123
124 memcpy( self->value + self->size, rhs, size_t(rhs_size) + 1 );
125 self->size = new_size;
126
127 assert_invariants( self );
128}
129
130
131void string_append_range( string * self, char const * start, char const * finish )

Callers 15

class_module_nameFunction · 0.85
import_base_ruleFunction · 0.85
var_getFunction · 0.85
module_statFunction · 0.85
class_module_statFunction · 0.85
path_get_temp_path_Function · 0.85
translate_path_posix2vmsFunction · 0.85
path_tmpfileFunction · 0.85
downcase_listFunction · 0.85
builtin_backtraceFunction · 0.85
bjam_backtraceFunction · 0.85

Calls 2

assert_invariantsFunction · 0.85
maybe_reserveFunction · 0.85

Tested by

no test coverage detected