MCPcopy Create free account
hub / github.com/buggins/coolreader / setCodeBase

Method setCodeBase

crengine/src/lvtinydom.cpp:7193–7203  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7191}
7192
7193void ldomDocumentFragmentWriter::setCodeBase( lString16 fileName )
7194{
7195 filePathName = fileName;
7196 codeBasePrefix = pathSubstitutions.get(fileName);
7197 codeBase = LVExtractPath(filePathName);
7198 if ( codeBasePrefix.empty() ) {
7199 CRLog::trace("codeBasePrefix is empty for path %s", LCSTR(fileName));
7200 codeBasePrefix = pathSubstitutions.get(fileName);
7201 }
7202 stylesheetFile.clear();
7203}
7204
7205/// called on attribute
7206void ldomDocumentFragmentWriter::OnAttribute( const lChar16 * nsname, const lChar16 * attrname, const lChar16 * attrvalue )

Callers 3

ImportEpubDocumentFunction · 0.45
addFileMethod · 0.45
appendFragmentsMethod · 0.45

Calls 4

LVExtractPathFunction · 0.85
getMethod · 0.45
emptyMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected