MCPcopy Create free account
hub / github.com/PolygonTek/BlueshiftEngine / ParseText

Method ParseText

Source/ThirdParty/tinyxml2/tinyxml2.cpp:192–209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

190
191
192char* StrPair::ParseText( char* p, const char* endTag, int strFlags )
193{
194 TIXMLASSERT( endTag && *endTag );
195
196 char* start = p;
197 char endChar = *endTag;
198 size_t length = strlen( endTag );
199
200 // Inner loop of text parsing.
201 while ( *p ) {
202 if ( *p == endChar && strncmp( p, endTag, length ) == 0 ) {
203 Set( start, p, strFlags );
204 return p + length;
205 }
206 ++p;
207 }
208 return 0;
209}
210
211
212char* StrPair::ParseName( char* p )

Callers 1

ParseDeepMethod · 0.80

Calls 1

SetFunction · 0.50

Tested by

no test coverage detected