MCPcopy Create free account
hub / github.com/ajkhoury/ReClassEx / SetStr

Method SetStr

ReClass/tinyxml2.cpp:181–191  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

179
180
181void StrPair::SetStr( const char* str, int flags )
182{
183 TIXMLASSERT( str );
184 Reset();
185 size_t len = strlen( str );
186 TIXMLASSERT( _start == 0 );
187 _start = new char[ len+1 ];
188 memcpy( _start, str, len+1 );
189 _end = _start + len;
190 _flags = flags | NEEDS_DELETE;
191}
192
193
194char* StrPair::ParseText( char* p, const char* endTag, int strFlags, int* curLineNumPtr )

Callers 4

SetValueMethod · 0.80
SetNameMethod · 0.80
SetAttributeMethod · 0.80
SetErrorMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected