MCPcopy Create free account
hub / github.com/bytedance/Fastbot_Android / SetStr

Method SetStr

native/thirdpart/tinyxml2/tinyxml2.cpp:194–204  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

192
193
194void StrPair::SetStr( const char* str, int flags )
195{
196 TIXMLASSERT( str );
197 Reset();
198 size_t len = strlen( str );
199 TIXMLASSERT( _start == 0 );
200 _start = new char[ len+1 ];
201 memcpy( _start, str, len+1 );
202 _end = _start + len;
203 _flags = flags | NEEDS_DELETE;
204}
205
206
207char* 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 1

ResetFunction · 0.85

Tested by

no test coverage detected