MCPcopy Create free account
hub / github.com/Exiv2/exiv2 / CommentHandler

Function CommentHandler

xmpsdk/src/ExpatAdapter.cpp:460–479  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

458// =================================================================================================
459
460static void CommentHandler ( void * userData, XMP_StringPtr comment )
461{
462 IgnoreParam(userData);
463
464 #if XMP_DebugBuild & DumpXMLParseEvents // Avoid unused variable warning.
465 ExpatAdapter * thiz = (ExpatAdapter*)userData;
466 #endif
467
468 if ( comment == 0 ) comment = "";
469
470 #if XMP_DebugBuild & DumpXMLParseEvents
471 if ( thiz->parseLog != 0 ) {
472 PrintIndent ( thiz->parseLog, thiz->elemNesting );
473 fprintf ( thiz->parseLog, "Comment: \"%s\"\n", comment );
474 }
475 #endif
476
477 // ! Comments are ignored.
478
479} // CommentHandler
480
481// =================================================================================================
482

Callers

nothing calls this directly

Calls 1

PrintIndentFunction · 0.85

Tested by

no test coverage detected