MCPcopy Create free account
hub / github.com/crossuo/crossuo / ParseName

Method ParseName

external/tinyxml2.cpp:218–235  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

216
217
218char* StrPair::ParseName( char* p )
219{
220 if ( !p || !(*p) ) {
221 return 0;
222 }
223 if ( !XMLUtil::IsNameStartChar( *p ) ) {
224 return 0;
225 }
226
227 char* const start = p;
228 ++p;
229 while ( *p && XMLUtil::IsNameChar( *p ) ) {
230 ++p;
231 }
232
233 Set( start, p, 0 );
234 return p;
235}
236
237
238void StrPair::CollapseWhitespace()

Callers 1

ParseDeepMethod · 0.80

Calls 3

IsNameStartCharFunction · 0.85
IsNameCharFunction · 0.85
SetFunction · 0.85

Tested by

no test coverage detected