MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / ParseText

Method ParseText

Source/3rdParty/tinyxml2/tinyxml2.cpp:99–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97}
98
99char* StrPair::ParseText(char* p, const char* endTag, int strFlags) {
100 TIXMLASSERT(endTag && *endTag);
101
102 char* start = p; // fixme: hides a member
103 char endChar = *endTag;
104 size_t length = strlen(endTag);
105
106 // Inner loop of text parsing.
107 while (*p) {
108 if (*p == endChar && strncmp(p, endTag, length) == 0) {
109 Set(start, p, strFlags);
110 return p + length;
111 }
112 ++p;
113 }
114 return 0;
115}
116
117char* StrPair::ParseName(char* p) {
118 char* start = p;

Callers 1

ParseDeepMethod · 0.80

Calls 3

strlenFunction · 0.85
strncmpFunction · 0.85
SetFunction · 0.50

Tested by

no test coverage detected