MCPcopy Create free account
hub / github.com/abbeycode/UnrarKit / ViewComment

Method ViewComment

Libraries/unrar/arccmt.cpp:169–183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167
168
169void Archive::ViewComment()
170{
171 if (Cmd->DisableComment)
172 return;
173 Array<wchar> CmtBuf;
174 if (GetComment(&CmtBuf)) // In GUI too, so "Test" command detects broken comments.
175 {
176 size_t CmtSize=CmtBuf.Size();
177 wchar *ChPtr=wcschr(&CmtBuf[0],0x1A);
178 if (ChPtr!=NULL)
179 CmtSize=ChPtr-&CmtBuf[0];
180 mprintf(L"\n");
181 OutComment(&CmtBuf[0],CmtSize);
182 }
183}
184
185

Callers 2

ListArchiveFunction · 0.80
ExtractArchiveMethod · 0.80

Calls 3

OutCommentFunction · 0.85
mprintfFunction · 0.70
SizeMethod · 0.45

Tested by

no test coverage detected