37 int lineNr = startLine!=-1 ? startLine : 1;
38 size_t length = input.
length();
40 while (i<length && (endLine==-1 || lineNr<=endLine))
43 while (j<length && input[j]!=
'\n') j++;
46 if (fileDef !=
nullptr && showLineNumbers)
The common base class of all entity definitions found in the sources.
void parseCode(OutputCodeList &codeOutIntf, const QCString &scopeName, const QCString &input, SrcLangExt lang, bool stripCodeComments, bool isExampleBlock, const QCString &exampleName=QCString(), const FileDef *fileDef=nullptr, int startLine=-1, int endLine=-1, bool inlineFragment=FALSE, const MemberDef *memberDef=nullptr, bool showLineNumbers=TRUE, const Definition *searchCtx=nullptr, bool collectXRefs=TRUE) override
Parses a source file or fragment with the goal to produce highlighted and cross-referenced output.
A model of a file symbol.
A model of a class/file/namespace member symbol.
Class representing a list of different code generators.
void codify(const QCString &s)
void startCodeLine(int lineNr)
void writeLineNumber(const QCString &ref, const QCString &file, const QCString &anchor, int lineNumber, bool writeLineAnchor)
This is an alternative implementation of QCString.
size_t length() const
Returns the length of the string, not counting the 0-terminator.
QCString mid(size_t index, size_t len=static_cast< size_t >(-1)) const
bool isEmpty() const
Returns TRUE iff the string is empty.
const char * data() const
Returns a pointer to the contents of the string in the form of a 0-terminated C string.
SrcLangExt
Language as given by extension.