MCPcopy Create free account
hub / github.com/ByConity/ByConity / processComment

Function processComment

src/Functions/extractTextFromHTML.cpp:88–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86}
87
88bool processComment(const char * __restrict & src, const char * end)
89{
90 if (!checkAndSkip(src, end, "<!--"))
91 return false;
92
93 while (true)
94 {
95 const char * gt = find_first_symbols<'>'>(src, end);
96 if (gt >= end)
97 break;
98
99 if (gt > src + strlen("--") && gt[-1] == '-' && gt[-2] == '-')
100 {
101 src = gt + 1;
102 break;
103 }
104
105 src = gt + 1;
106 }
107
108 return true;
109}
110
111bool processCDATA(const char * __restrict & src, const char * end, char * __restrict & dst)
112{

Callers 1

extractFunction · 0.85

Calls 1

checkAndSkipFunction · 0.85

Tested by

no test coverage detected