MCPcopy Create free account
hub / github.com/9miao/CrossApp / ParseText

Method ParseText

CrossApp/support/tinyxml2/tinyxml2.cpp:111–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109
110
111char* StrPair::ParseText( char* p, const char* endTag, int strFlags )
112{
113 TIXMLASSERT( endTag && *endTag );
114
115 char* start = p; // fixme: hides a member
116 char endChar = *endTag;
117 size_t length = strlen( endTag );
118
119 // Inner loop of text parsing.
120 while ( *p ) {
121 if ( *p == endChar && strncmp( p, endTag, length ) == 0 ) {
122 Set( start, p, strFlags );
123 return p + length;
124 }
125 ++p;
126 }
127 return 0;
128}
129
130
131char* StrPair::ParseName( char* p )

Callers 1

ParseDeepMethod · 0.80

Calls 1

SetFunction · 0.70

Tested by

no test coverage detected