MCPcopy Create free account
hub / github.com/MailCore/mailcore2 / htmlForAbstractMultipartMixed

Function htmlForAbstractMultipartMixed

src/core/renderer/MCHTMLRenderer.cpp:483–497  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

481}
482
483static String * htmlForAbstractMultipartMixed(AbstractMultipart * part, htmlRendererContext * context)
484{
485 String * result = String::string();
486 for(unsigned int i = 0 ; i < part->parts()->count() ; i ++) {
487 AbstractPart * subpart = (AbstractPart *) part->parts()->objectAtIndex(i);
488 String * substring = htmlForAbstractPart(subpart, context);
489 if (context->pass != 0) {
490 if (substring == NULL)
491 return NULL;
492
493 result->appendString(substring);
494 }
495 }
496 return result;
497}
498
499static String * htmlForAbstractMultipartRelated(AbstractMultipart * part, htmlRendererContext * context)
500{

Callers 1

htmlForAbstractPartFunction · 0.85

Calls 5

htmlForAbstractPartFunction · 0.85
objectAtIndexMethod · 0.80
appendStringMethod · 0.80
countMethod · 0.45
partsMethod · 0.45

Tested by

no test coverage detected