浏览该文件的文档.
35 int lineNr = startLine!=-1 ? startLine : 1;
36 int length = input.
length();
38 while (i<length && (endLine==-1 || lineNr<=endLine))
41 while (j<length && input[j]!=
'\n') j++;
44 if (fileDef != 0 && showLineNumbers)
virtual void writeLineNumber(const QCString &ref, const QCString &file, const QCString &anchor, int lineNumber, bool writeLineAnchor)=0
The common base class of all entity definitions found in the sources.
uint length() const
Returns the length of the string, not counting the 0-terminator.
bool isEmpty() const
Returns TRUE iff the string is empty
SrcLangExt
Language as given by extension
void parseCode(CodeOutputInterface &codeOutIntf, const QCString &scopeName, const QCString &input, SrcLangExt lang, bool isExampleBlock, const QCString &exampleName=QCString(), const FileDef *fileDef=0, int startLine=-1, int endLine=-1, bool inlineFragment=FALSE, const MemberDef *memberDef=0, bool showLineNumbers=TRUE, const Definition *searchCtx=0, bool collectXRefs=TRUE)
Parses a source file or fragment with the goal to produce highlighted and cross-referenced output.
virtual void codify(const QCString &s)=0
virtual void endCodeLine()=0
virtual void startCodeLine(bool hasLineNumbers)=0
A model of a class/file/namespace member symbol.
QCString mid(size_t index, size_t len=static_cast< size_t >(-1)) const
Output interface for code parser.
const char * data() const
Returns a pointer to the contents of the string in the form of a 0-terminated C string
A model of a file symbol.
This is an alternative implementation of QCString.