MCPcopy Create free account
hub / github.com/altairwei/WizNotePlus / WizHTMLIsCommentedOutCode

Function WizHTMLIsCommentedOutCode

src/WizCombineNotesDialog.cpp:373–388  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

371
372
373BOOL WizHTMLIsCommentedOutCode(UINT nPos, CString strHTML)
374{
375 if (-1 == nPos)
376 return FALSE;
377 //
378 CString strSubText = strHTML.right(strHTML.length() - nPos);
379 int nEndPos = strSubText.find("-->");
380 if (-1 == nEndPos)
381 return FALSE;
382 //
383 CString strSubText2 = strSubText.left(nEndPos);
384 if (-1 == strSubText2.find("<!--"))
385 return TRUE;
386 //
387 return FALSE;
388}
389
390void WizHTMLInsertTextBeforeBody(QString lpszText, CString& strHTML)
391{

Callers 1

Calls 2

lengthMethod · 0.80
findMethod · 0.45

Tested by

no test coverage detected