Doxygen
QCString类 参考

This is an alternative implementation of QCString. 更多...

#include <qcstring.h>

Public 成员函数

 QCString ()=default
 
 ~QCString ()=default
 
 QCString (const QCString &s)=default
 
QCStringoperator= (const QCString &s)=default
 
 QCString (QCString &&s)=default
 
QCStringoperator= (QCString &&s)=default
 
 QCString (const std::string &s)
 
 QCString (std::string &&s)
 
 QCString (size_t size)
 creates a string with room for size characters 更多...
 
 QCString (const char *str)
 creates a string from a plain C string. 更多...
 
 QCString (const char *str, size_t maxlen)
 creates a string from str and copies over the first maxlen characters. 更多...
 
QCStringoperator= (const char *str)
 replaces the contents by that of C string str. 更多...
 
QCStringoperator= (const std::string &s)
 
bool isNull () const
 Returns TRUE iff the string is empty. 更多...
 
bool isEmpty () const
 Returns TRUE iff the string is empty 更多...
 
uint length () const
 Returns the length of the string, not counting the 0-terminator. 更多...
 
uint size () const
 Returns the length of the string, not counting the 0-terminator. 更多...
 
const char * data () const
 Returns a pointer to the contents of the string in the form of a 0-terminated C string 更多...
 
char * rawData ()
 Returns a writable pointer to the data. 更多...
 
bool resize (size_t newlen)
 Resizes the string to hold newlen characters (this value should also count the 0-terminator). 更多...
 
bool truncate (size_t pos)
 Truncates the string at position pos. 更多...
 
bool fill (char c, int len=-1)
 Fills a string with a predefined character 更多...
 
QCStringsprintf (const char *format,...)
 
int find (char c, int index=0, bool cs=TRUE) const
 
int find (const char *str, int index=0, bool cs=TRUE) const
 
int find (const QCString &str, int index=0, bool cs=TRUE) const
 
int findRev (char c, int index=-1, bool cs=TRUE) const
 
int findRev (const char *str, int index=-1, bool cs=TRUE) const
 
int contains (char c, bool cs=TRUE) const
 
int contains (const char *str, bool cs=TRUE) const
 
bool stripPrefix (const QCString &prefix)
 
bool stripPrefix (const char *prefix)
 
QCString left (size_t len) const
 
QCString right (size_t len) const
 
QCString mid (size_t index, size_t len=static_cast< size_t >(-1)) const
 
QCString lower () const
 
QCString upper () const
 
QCString stripWhiteSpace () const
 returns a copy of this string with leading and trailing whitespace removed 更多...
 
QCString removeWhiteSpace () const
 returns a copy of this string with all whitespace removed 更多...
 
QCString simplifyWhiteSpace () const
 return a copy of this string with leading and trailing whitespace removed and multiple whitespace characters replaced by a single space 更多...
 
QCStringinsert (size_t index, const QCString &s)
 
QCStringinsert (size_t index, const char *s)
 
QCStringinsert (size_t index, char c)
 
QCStringappend (char c)
 
QCStringappend (const char *s)
 
QCStringappend (const QCString &s)
 
QCStringappend (const std::string &s)
 
QCStringprepend (const char *s)
 
QCStringprepend (const QCString &s)
 
QCStringprepend (const std::string &s)
 
QCStringremove (size_t index, size_t len)
 
QCStringreplace (size_t index, size_t len, const char *s)
 
short toShort (bool *ok=0, int base=10) const
 
ushort toUShort (bool *ok=0, int base=10) const
 
int toInt (bool *ok=0, int base=10) const
 
uint toUInt (bool *ok=0, int base=10) const
 
long toLong (bool *ok=0, int base=10) const
 
ulong toULong (bool *ok=0, int base=10) const
 
uint64 toUInt64 (bool *ok=0, int base=10) const
 
QCStringsetNum (short n)
 
QCStringsetNum (ushort n)
 
QCStringsetNum (int n)
 
QCStringsetNum (uint n)
 
QCStringsetNum (long n)
 
QCStringsetNum (ulong n)
 
bool startsWith (const char *s) const
 
bool startsWith (const QCString &s) const
 
bool endsWith (const char *s) const
 
bool endsWith (const QCString &s) const
 
std::string str () const
 
QCStringoperator+= (const QCString &s)
 
QCStringoperator+= (const std::string &s)
 
QCStringoperator+= (const char *s)
 Appends string str to this string and returns a reference to the result. 更多...
 
QCStringoperator+= (char c)
 Appends character c to this string and returns a reference to the result. 更多...
 
char & at (size_t i)
 Returns a reference to the character at index i. 更多...
 
const char & at (size_t i) const
 
char & operator[] (int i)
 Indexing operator. 更多...
 
const char & operator[] (int i) const
 

Private 属性

std::string m_rep
 

详细描述

This is an alternative implementation of QCString.

It provides basically the same functions but uses std::string as the underlying string type

在文件 qcstring.h108 行定义.

构造及析构函数说明

◆ QCString() [1/8]

QCString::QCString ( )
default

◆ ~QCString()

QCString::~QCString ( )
default

◆ QCString() [2/8]

QCString::QCString ( const QCString s)
default

◆ QCString() [3/8]

QCString::QCString ( QCString &&  s)
default

◆ QCString() [4/8]

QCString::QCString ( const std::string &  s)
inlineexplicit

在文件 qcstring.h118 行定义.

118 : m_rep(s) {}

◆ QCString() [5/8]

QCString::QCString ( std::string &&  s)
inline

在文件 qcstring.h120 行定义.

120 { m_rep = std::move(s); }

引用了 m_rep.

◆ QCString() [6/8]

QCString::QCString ( size_t  size)
inlineexplicit

creates a string with room for size characters

参数
[in]sizethe number of character to allocate (also counting the 0-terminator!)

在文件 qcstring.h125 行定义.

125 { m_rep.resize(size>0 ? size-1 : 0); }

引用了 m_rep , 以及 size().

◆ QCString() [7/8]

QCString::QCString ( const char *  str)
inline

creates a string from a plain C string.

参数
[in]strA zero terminated C string. When 0 an empty string is created.

在文件 qcstring.h130 行定义.

130 : m_rep(str?str:"") {}

◆ QCString() [8/8]

QCString::QCString ( const char *  str,
size_t  maxlen 
)
inline

creates a string from str and copies over the first maxlen characters.

在文件 qcstring.h133 行定义.

133 : m_rep(str?str:"") { m_rep.resize(maxlen); }

引用了 m_rep.

成员函数说明

◆ append() [1/4]

◆ append() [2/4]

QCString& QCString::append ( const char *  s)
inline

在文件 qcstring.h324 行定义.

325  {
326  return operator+=(s);
327  }

引用了 operator+=().

◆ append() [3/4]

QCString& QCString::append ( const QCString s)
inline

在文件 qcstring.h329 行定义.

330  {
331  return operator+=(s);
332  }

引用了 operator+=().

◆ append() [4/4]

QCString& QCString::append ( const std::string &  s)
inline

在文件 qcstring.h334 行定义.

335  {
336  return operator+=(s);
337  }

引用了 operator+=().

◆ at() [1/2]

char& QCString::at ( size_t  i)
inline

Returns a reference to the character at index i.

在文件 qcstring.h477 行定义.

478  {
479  return m_rep[i];
480  }

引用了 m_rep.

被这些函数引用 DefinitionImpl::_setBriefDescription(), abbreviate(), Qhp::addContentsItem(), addIncludeFile(), addTemplateNames(), addVariableToFile(), adjustConfiguration(), FilterIsRelativeURL::apply(), FilterIsAbsoluteURL::apply(), FilterDecodeURL::apply(), TranslatorPersian::convertDigitsToFarsi(), countAliasArguments(), MemberDefImpl::displayDefinition(), DocEmoji::DocEmoji(), DocLink::DocLink(), elemIsVisible(), externalRef(), DefinitionImpl::externalReference(), extractAliasArgs(), HtmlHelpRecoder::finalize(), findDirDocumentation(), findEndOfTemplate(), findEnumDocumentation(), VhdlDocGen::formatString(), PerlModGenerator::generatePerlModForMember(), generateXMLForMember(), getCanonicalTemplateSpec(), getExtension(), getLanguageFromCodeLang(), getLanguageFromFileName(), getScopeDefs(), getScopeFragment(), DocParser::handleLinkedWord(), DocPara::handleStartCode(), Markdown::isAtxHeader(), DocFormula::isInline(), NamespaceDefImpl::isLinkableInProject(), isVarWithConstructor(), leftScopeMatch(), linkToText(), makeFileName(), matchExcludedSymbols(), ArgumentContext::Private::namePart(), SymbolResolver::Private::newResolveTypedef(), node2URL(), DocXRefItem::parse(), parseCommentAsText(), Markdown::process(), Markdown::processLink(), readCodeFragment(), TemplateContextImpl::recode(), replaceAliasArguments(), resolveSymlink(), rightScopeMatch(), searchInputFiles(), TemplateContextImpl::setEscapeIntf(), MemberDefImpl::setInitializer(), DefinitionImpl::setName(), stripAnonymousNamespaceScope(), stripIrrelevantString(), stripScope(), stripTemplateSpecifiers(), stripTemplateSpecifiersFromScope(), Portable::system(), transcodeCharacterStringToUTF8(), updateLanguageMapping(), validatingParseDoc(), ManDocVisitor::visit(), HtmlDocVisitor::visit(), DocbookDocVisitor::visitPre(), MemberDefImpl::writeDeclaration(), MemberDefImpl::writeDocumentation(), writeExceptionList(), Markdown::writeFencedCodeBlock(), VhdlDocGen::writeFormatString(), ClassDefImpl::writeIncludeFilesForSlice(), writeIndexHierarchyEntries(), MemberDefImpl::writeMemberDocSimple(), writeMemberList(), PlantumlManager::writePlantUMLSource(), writeSingleFileIndex() , 以及 HtmlEntityMapper::writeXMLSchema().

◆ at() [2/2]

const char& QCString::at ( size_t  i) const
inline

在文件 qcstring.h482 行定义.

483  {
484  return m_rep[i];
485  }

引用了 m_rep.

◆ contains() [1/2]

int QCString::contains ( char  c,
bool  cs = TRUE 
) const

在文件 qcstring.cpp138 行定义.

139 {
140  if (length()==0) return 0;
141  int count=0;
142  const char *pos = data();
143  if (cs)
144  {
145  while (*pos) if (*pos++ == c) count++;
146  }
147  else
148  {
149  c = (char)tolower((unsigned char)c);
150  while (*pos)
151  {
152  if (tolower((unsigned char)*pos)==c) count++;
153  pos++;
154  }
155  }
156  return count;
157 }

引用了 data() , 以及 length().

被这些函数引用 buildScopeFromQualifiedName(), VHDLOutlineParser::checkInlineCode(), DotNode::convertLabel(), DocPara::handleInclude(), DocInclude::parse(), VhdlDocGen::parseForConfig(), FlowChart::printPlantUmlNode(), MemberDefImpl::setInitializer() , 以及 writeUCFLink().

◆ contains() [2/2]

int QCString::contains ( const char *  str,
bool  cs = TRUE 
) const

在文件 qcstring.cpp159 行定义.

160 {
161  if (str==0 || length()==0) return 0;
162  int count=0;
163  const char *pos = data();
164  int len = qstrlen(str);
165  while (*pos)
166  {
167  if (cs)
168  {
169  if (qstrncmp(pos,str,len)==0) count++;
170  }
171  else
172  {
173  if (qstrnicmp(pos,str,len)==0) count++;
174  }
175  pos++;
176  }
177  return count;
178 }

引用了 data(), length(), qstrlen(), qstrncmp(), qstrnicmp() , 以及 str().

◆ data()

const char* QCString::data ( ) const
inline

Returns a pointer to the contents of the string in the form of a 0-terminated C string

在文件 qcstring.h153 行定义.

153 { return m_rep.c_str(); }

引用了 m_rep.

被这些函数引用 DefinitionImpl::_docsAlreadyAdded(), SectionManager::add(), Qhp::addIndexItem(), GrowBuf::addStr(), SearchIndex::addWord(), MemberGroup::anchor(), buildFileName(), clearBlock(), LatexCodeGenerator::codify(), HtmlCodeGenerator::codify(), ManGenerator::codify(), RTFGenerator::codify(), codify(), FlowChart::codify(), contains(), convertCharEntitiesToUTF8(), convertIndexWordToAnchor(), convertNameToFile(), convertToDocBook(), convertToHtml(), convertToId(), convertToJSString(), convertToPSString(), convertToXML(), ResourceMgr::copyResourceAs(), Portable::correct_path(), countAliasArguments(), VhdlDocGen::createFlowChart(), Markdown::detab(), HtmlCodeGenerator::docify(), ManGenerator::docify(), RTFGenerator::docify(), HtmlGenerator::docify(), encodeDirName(), encodeForOutput(), escapeCharsInString(), escapeCommas(), escapeDoubleQuotes(), escapeSpecialChars(), escapeTooltip(), ExprAstFilter::ExprAstFilter(), ExprAstLiteral::ExprAstLiteral(), ExprAstVariable::ExprAstVariable(), Markdown::extractPageTitle(), HtmlDocVisitor::filter(), RTFDocVisitor::filter(), ManDocVisitor::filter(), TextDocVisitor::filter(), filterId(), filterLatexString(), HtmlDocVisitor::filterQuotedCdataAttr(), Qhp::finalize(), find(), Markdown::findEmphasisChar(), Markdown::findEndOfLine(), findRev(), VhdlDocGen::findVhdlClass(), Portable::fopen(), format_warn(), FormulaManager::generateImages(), generateOutput(), generateXML(), getConvertLatexMacro(), Portable::getenv(), getMscImageMapFromFile(), ParserManager::getParsers(), getPrefixIndex(), SymbolResolver::Private::getResolvedClassRec(), handle_warn_as_error(), DocPara::handleInclude(), Qhp::handlePrevSection(), PerlModOutput::iaddQuoted(), LayoutDocManager::init(), Qhp::initialize(), insert(), DocParser::internalValidatingParseDoc(), Portable::isAbsolutePath(), isExplicitPage(), isLowerCase(), latexEscapeIndexChars(), latexEscapeLabelName(), latexEscapePDFString(), latexFilterURL(), letterToLabel(), loadStylesheet(), operator!=(), operator<(), operator<=(), operator==(), operator>(), operator>=(), CondParser::parse(), LayoutDocManager::parse(), DocInclude::parse(), DocIncOperator::parse(), TemplateParser::parse(), ExpressionParser::parse(), FileCodeParser::parseCode(), parseCommentAsText(), parseTagFile(), VHDLOutlineParser::Private::parseVhdlfile(), Portable::popen(), DotGraph::prepareDotFile(), prepend(), preProcessFile(), RTFGenerator::preProcessFileInplace(), Markdown::process(), Markdown::processBlocks(), DocParser::processCopyDoc(), Markdown::processLink(), Markdown::processQuotations(), Markdown::processSpecialCommand(), qPrint(), qstricmp(), qstrnicmp(), readConfiguration(), TemplateContextImpl::recode(), Portable::recodeUtf8StringToW(), LatexSpaceless::remove(), HtmlSpaceless::remove(), removeEmptyLines(), removeRedundantWhiteSpace(), TemplateNodeBlock::render(), SectionManager::replace(), replaceAliasArguments(), replaceAnonymousScopes(), DotFilePatcher::run(), DotRunner::run(), runPlantumlContent(), Image::save(), ColoredImage::save(), MemberDefImpl::setAnchor(), TemplateContextImpl::setEncoding(), Portable::setenv(), simplifyWhiteSpace(), skipToEndMarker(), OutputGenerator::startPlainFile(), stripIndentation(), stripLeadingAndTrailingEmptyLines(), stripLeadingWhiteSpace(), stripPrefix(), substitute(), Portable::system(), TemplateLexer::tokenize(), toLong(), toUInt64(), toULong(), transcodeCharacterBuffer(), transcodeCharacterStringToUTF8(), unescapeCharsInString(), unescapeCRef(), Portable::unlink(), Portable::unsetenv(), updateLanguageMapping(), validatingParseDoc(), validatingParseText(), HtmlDocVisitor::visit(), LatexDocVisitor::visit(), DocbookDocVisitor::visit(), RTFDocVisitor::visit(), DocbookDocVisitor::visitPre(), writeDEFString(), writeDocbookCodeString(), MemberDefImpl::writeDocumentation(), ClassDefImpl::writeIncludeFilesForSlice(), writeMemberList(), writeMscGraphFromFile(), Image::writeString(), TextGeneratorOLImpl::writeString(), TextGeneratorHtml::writeString() , 以及 writeXMLCodeString().

◆ endsWith() [1/2]

bool QCString::endsWith ( const char *  s) const
inline

在文件 qcstring.h420 行定义.

421  {
422  if (m_rep.empty() || s==0) return s==0;
423  size_t l = strlen(s);
424  return m_rep.length()>=l && m_rep.compare(m_rep.length()-l, l, s, l)==0;
425  }

引用了 m_rep.

被这些函数引用 findUsingDeclarations(), TemplateNodeCreate::TemplateNodeCreate(), TemplateNodeFor::TemplateNodeFor() , 以及 TemplateNodeRange::TemplateNodeRange().

◆ endsWith() [2/2]

bool QCString::endsWith ( const QCString s) const
inline

在文件 qcstring.h427 行定义.

428  {
429  size_t l = s.length();
430  return m_rep.length()>=l && m_rep.compare(m_rep.length()-l, l, s.str())==0;
431  }

引用了 length(), m_rep , 以及 str().

◆ fill()

bool QCString::fill ( char  c,
int  len = -1 
)
inline

Fills a string with a predefined character

参数
[in]cthe character used to fill the string with.
[in]lenthe number of character to fill. Use -1 to fill the whole string.
注解
the string will be resized to contain len characters. The contents of the string will be lost.

在文件 qcstring.h175 行定义.

176  {
177  int l = len==-1 ? (int)m_rep.size() : len;
178  m_rep = std::string(l,c);
179  return TRUE;
180  }

引用了 m_rep , 以及 TRUE.

被这些函数引用 FlowChart::alignCommentNode(), FlowChart::alignFuncProc(), ConfigOption::ConfigOption(), generateJSTree(), DocSets::Private::indent(), printNavTree(), FlowChart::printNode(), readCodeFragment(), ManDocVisitor::visitPre() , 以及 writeTemplateArgumentList().

◆ find() [1/3]

int QCString::find ( char  c,
int  index = 0,
bool  cs = TRUE 
) const

在文件 qcstring.cpp38 行定义.

39 {
40  if (index<0 || index>=(int)length()) return -1; // index outside string
41  const char *pos;
42  if (cs)
43  {
44  pos = strchr(data()+index,c);
45  }
46  else
47  {
48  pos = data()+index;
49  c = (char)tolower((unsigned char)c);
50  while (*pos && tolower((unsigned char)*pos)!=c) pos++;
51  if (!*pos && c) pos=0; // not found
52  }
53  return pos ? (int)(pos - data()) : -1;
54 }

引用了 data() , 以及 length().

被这些函数引用 MemberDefImpl::_computeIsConstructor(), MemberDefImpl::_computeIsDestructor(), DefinitionImpl::_docsAlreadyAdded(), MemberDefImpl::_writeCategoryRelation(), MemberDefImpl::_writeReimplements(), VhdlDocGen::addBaseClass(), addClassToContext(), VHDLOutlineParser::addCompInst(), addConceptToContext(), addHtmlExtensionIfMissing(), addTemplateNames(), ClassDefImpl::addTypeConstraints(), addVariableToFile(), adjustConfiguration(), argListToString(), buildScopeFromQualifiedName(), VHDLOutlineParser::checkInlineCode(), computeClassRelations(), computeQualifiedIndex(), VhdlDocGen::convertFileNameToClassName(), DotFilePatcher::convertMapFile(), MemberList::countEnumValues(), MemberDefImpl::detectUndocumentedParams(), FilterListSort::determineSortKey(), MemberDefImpl::displayDefinition(), DocInternalRef::DocInternalRef(), DocGroup::enterCompound(), escapeAliases(), ExistsOnPath(), extractBlock(), extractClassName(), extractLanguageSpecificTitle(), filterMemberDocumentation(), find(), VhdlDocGen::findAllArchitectures(), DocParser::findDocsForMemberOrCompound(), findGlobalMember(), findMember(), findUsedClassesForClass(), findUsingDeclImports(), generateDEFForClass(), generateFileSources(), FormulaManager::generateImages(), CitationManager::generatePage(), generateXML(), TemplateContextImpl::get(), getDefs(), getDotImageExtension(), getFilterFromList(), getTemplateArgumentsFromName(), DocPara::handleCommand(), DocParser::handleParameterType(), CitationManager::insertCrossReferencesForBibFile(), insertTemplateSpecifierInScope(), ClassDefImpl::internalInsertMember(), MemberDefImpl::isDocumentedFriendClass(), ClassDefImpl::isExtension(), MemberDefImpl::isFunctionPtr(), isRecursiveBaseClass(), DocImage::isSVG(), isVarWithConstructor(), lineBlock(), linkToText(), Htags::loadFilemap(), makeQualifiedNameWithTemplateParameters(), matchExcludedSymbols(), mergeArguments(), mergeCategories(), DirDefImpl::mergeDirectoryInTree(), SymbolResolver::Private::newResolveTypedef(), normalizeNonTemplateArgumentsInString(), VHDLOutlineParser::oneLineComment(), DocIncOperator::parse(), DocLink::parse(), DocParamList::parse(), TemplateParser::parse(), VhdlDocGen::parseFuncProto(), VhdlDocGen::parseUCF(), VhdlDocGen::prepareComment(), Markdown::processLink(), processTagLessClasses(), readAliases(), readTagFile(), replaceRef(), resolveRef(), resolveSymlink(), resolveTypeDef(), DotFilePatcher::run(), searchTemplateSpecs(), MemberList::setAnonymousEnumType(), DefinitionImpl::setName(), split(), splitString(), LatexDocVisitor::startDiaFile(), LatexDocVisitor::startDotFile(), LatexDocVisitor::startMscFile(), stripDeclKeywords(), stripIrrelevantString(), stripTemplateSpecifiersFromScope(), Portable::system(), TemplateNodeCloseSubIndex::TemplateNodeCloseSubIndex(), TemplateNodeCreate::TemplateNodeCreate(), TemplateNodeFor::TemplateNodeFor(), TemplateNodeIndexEntry::TemplateNodeIndexEntry(), TemplateNodeMarkers::TemplateNodeMarkers(), TemplateNodeOpenSubIndex::TemplateNodeOpenSubIndex(), TemplateNodeRange::TemplateNodeRange(), TemplateNodeResource::TemplateNodeResource(), TemplateNodeSet::TemplateNodeSet(), TemplateNodeWith::TemplateNodeWith(), trimBaseClassScope(), Portable::unsetenv(), MemberDefImpl::warnIfUndocumented(), DotNode::writeDEF(), writeDefArgumentList(), FileDefImpl::writeDetailedDescription(), HtmlDocVisitor::writeDiaFile(), DotNode::writeDocbook(), MemberDefImpl::writeDocumentation(), HtmlDocVisitor::writeDotFile(), writeExceptionList(), writeExceptionListImpl(), HtmlGenerator::writeExternalSearchPage(), writeFileIndex(), VhdlDocGen::writeFormatString(), writeGraphInfo(), HtmlDocVisitor::writeMscFile(), LatexDocVisitor::writePlantUMLFile(), VhdlDocGen::writeRecordUnit(), VhdlDocGen::writeSource(), DefinitionImpl::writeSourceDef() , 以及 DotNode::writeXML().

◆ find() [2/3]

int QCString::find ( const char *  str,
int  index = 0,
bool  cs = TRUE 
) const

在文件 qcstring.cpp56 行定义.

57 {
58  int l = length();
59  if (index<0 || index>=l) return -1; // index outside string
60  if (!str) return -1; // no string to search for
61  if (!*str) return index; // empty string matching at index
62  const char *pos;
63  if (cs) // case sensitive
64  {
65  pos = strstr(data()+index,str);
66  }
67  else // case insensitive
68  {
69  pos = data();
70  int len = qstrlen(str);
71  while (*pos)
72  {
73  if (qstrnicmp(pos,str,len)==0) break;
74  pos++;
75  }
76  if (!*pos) pos = 0; // not found
77  }
78  return pos ? (int)(pos - data()) : -1;
79 }

引用了 data(), length(), qstrlen(), qstrnicmp() , 以及 str().

◆ find() [3/3]

int QCString::find ( const QCString str,
int  index = 0,
bool  cs = TRUE 
) const

在文件 qcstring.cpp81 行定义.

82 {
83  return find(str.data(),index,cs);
84 }

引用了 find() , 以及 str().

◆ findRev() [1/2]

int QCString::findRev ( char  c,
int  index = -1,
bool  cs = TRUE 
) const

在文件 qcstring.cpp86 行定义.

87 {
88  const char *b = data();
89  const char *pos;
90  int len = length();
91  if (len==0) return -1; // empty string
92  if (index<0) // start from end
93  {
94  if (cs)
95  {
96  pos = strrchr(b,c);
97  return pos ? (int)(pos - b) : -1;
98  }
99  index=len;
100  }
101  else if (index>len) // bad index
102  {
103  return -1;
104  }
105  pos = b+index;
106  if (cs)
107  {
108  while ( pos>=b && *pos!=c) pos--;
109  }
110  else
111  {
112  c = (char)tolower((unsigned char)c);
113  while ( pos>=b && tolower((unsigned char)*pos)!=c) pos--;
114  }
115  return pos>=b ? (int)(pos - b) : -1;
116 }

引用了 data() , 以及 length().

被这些函数引用 abbreviate(), addClassToContext(), addEnumValuesToEnums(), addMemberFunction(), addTemplateNames(), TooltipManager::addTooltip(), alignText(), FilterStripPath::apply(), buildDirectories(), buildFileList(), computeCommonDirPrefix(), computeQualifiedIndex(), convertFileId2Var(), VhdlDocGen::correctMemberProperties(), MemberList::countEnumValues(), VhdlDocGen::deleteAllChars(), VhdlDocGen::deleteCharRev(), MemberDefImpl::displayDefinition(), LayoutParser::endMemberDecl(), LayoutParser::endMemberDef(), DocInclude::extension(), extractNamespaceName(), DocParser::findAndCopyImage(), findClassRelation(), findDirDocumentation(), DocParser::findDocsForMemberOrCompound(), findEnumDocumentation(), findEnums(), findFileDef(), findGlobalMember(), findParameterList(), findUsedClassesForClass(), findUsingDirectives(), PlantumlManager::generatePlantUMLOutput(), getBaseNameOfOutput(), getCanonicalTypeForIdentifier(), getDefs(), getFileNameExtension(), getParserForFile(), getScopeDefs(), NamespaceDefImpl::isLinkableInProject(), linkifyText(), Htags::loadFilemap(), NamespaceDefImpl::localName(), markdownFileNameToId(), mergeScopes(), SymbolResolver::Private::newResolveTypedef(), parseFile(), VhdlDocGen::parseForBinding(), VhdlDocGen::parseForConfig(), VhdlDocGen::parseFuncProto(), VHDLOutlineParser::popLabel(), readCodeFragment(), relativePathToRoot(), TemplateNodeCreate::render(), resolveRef(), resolveTypeDef(), MemberList::setAnonymousEnumType(), DefinitionImpl::IMPL::setDefFileName(), showFileDefMatches(), LatexDocVisitor::startDiaFile(), LatexDocVisitor::startDotFile(), ManGenerator::startDoxyAnchor(), LatexDocVisitor::startMscFile(), stripPath(), version(), DocbookDocVisitor::visit(), DocbookDocVisitor::visitPost(), HtmlDocVisitor::visitPre(), DocbookDocVisitor::visitPre(), PerlModDocVisitor::visitPre(), DotNode::writeBox(), writeDefArgumentList(), HtmlDocVisitor::writeDiaFile(), RTFDocVisitor::writeDiaFile(), LatexDocVisitor::writeDiaFile(), MemberDefImpl::writeDocumentation(), HtmlDocVisitor::writeDotFile(), RTFDocVisitor::writeDotFile(), MemberDefImpl::writeEnumDeclaration(), HtmlDocVisitor::writeMscFile(), RTFDocVisitor::writeMscFile(), LatexDocVisitor::writeMscFile(), HtmlDocVisitor::writePlantUMLFile(), RTFDocVisitor::writePlantUMLFile(), LatexDocVisitor::writePlantUMLFile(), PlantumlManager::writePlantUMLSource() , 以及 FlowChart::writeShape().

◆ findRev() [2/2]

int QCString::findRev ( const char *  str,
int  index = -1,
bool  cs = TRUE 
) const

在文件 qcstring.cpp118 行定义.

119 {
120  int slen = qstrlen(str);
121  int len = length();
122  if (index<0) index = len-slen; // start from end
123  else if (index>len) return -1; // bad index
124  else if (index+slen>len) index=len-slen; // str would be too long
125  if (index<0) return -1; // no match possible
126  const char *pos = data()+index;
127  if (cs) // case sensitive
128  {
129  for (int i=index; i>=0; i--) if (qstrncmp(pos--,str,slen)==0) return i;
130  }
131  else // case insensitive
132  {
133  for (int i=index; i>=0; i--) if (qstrnicmp(pos,str,slen)==0) return i;
134  }
135  return -1;
136 }

引用了 data(), length(), qstrlen(), qstrncmp(), qstrnicmp() , 以及 str().

◆ insert() [1/3]

QCString& QCString::insert ( size_t  index,
char  c 
)
inline

在文件 qcstring.h312 行定义.

313  {
314  char s[2] = { c, '\0' };
315  return insert(index,s);
316  }

引用了 insert().

◆ insert() [2/3]

QCString& QCString::insert ( size_t  index,
const char *  s 
)
inline

在文件 qcstring.h292 行定义.

293  {
294  size_t len = s ? qstrlen(s) : 0;
295  if (len>0)
296  {
297  size_t ol = m_rep.size();
298  if (index>ol) // insert beyond end of string and fill gap with spaces
299  {
300  m_rep.resize(index+len);
301  std::memset(&m_rep[ol],' ',index-ol);
302  std::memcpy(&m_rep[index],s,len+1);
303  }
304  else // insert inside the string
305  {
306  m_rep.insert(index,s);
307  }
308  }
309  return *this;
310  }

引用了 m_rep , 以及 qstrlen().

◆ insert() [3/3]

QCString& QCString::insert ( size_t  index,
const QCString s 
)
inline

在文件 qcstring.h274 行定义.

275  {
276  if (s.length()>0)
277  {
278  size_t ol = m_rep.size();
279  if (index>ol) // insert beyond end of string and fill gap with spaces
280  {
281  m_rep.resize(index+s.length());
282  std::memset(&m_rep[ol],' ',index-ol);
283  std::memcpy(&m_rep[index],s.data(),s.length()+1);
284  }
285  else // insert inside the string
286  {
287  m_rep.insert(index,s.str());
288  }
289  }
290  return *this;
291  }

引用了 data(), length(), m_rep , 以及 str().

被这些函数引用 SymbolResolver::Private::accessibleViaUsingNamespace(), ConfigContext::Private::createConfigData(), drawClusterOpening(), drawDirectory(), expandAlias(), insert(), SymbolResolver::Private::newResolveTypedef(), prepend(), replace(), resolveClassNestingRelations() , 以及 resolveSymlink().

◆ isEmpty()

bool QCString::isEmpty ( ) const
inline

Returns TRUE iff the string is empty

在文件 qcstring.h144 行定义.

144 { return m_rep.empty(); }

引用了 m_rep.

被这些函数引用 DefinitionImpl::_setBriefDescription(), DefinitionImpl::_setDocumentation(), DefinitionImpl::_setInbodyDocumentation(), MemberDefImpl::_writeCategoryRelation(), HtmlCodeGenerator::_writeCodeLink(), MemberDefImpl::_writeGroupInclude(), DefinitionImpl::_writeSourceRefList(), MemberDefImpl::_writeTemplatePrefix(), abbreviate(), SymbolResolver::Private::accessibleViaUsingClass(), SymbolResolver::Private::accessibleViaUsingNamespace(), FileDefImpl::acquireFileVersion(), DotClassGraph::addClass(), addClassToContext(), addConceptToContext(), Qhp::addContentsItem(), DocSets::addContentsItem(), EclipseHelp::addContentsItem(), HtmlHelp::addContentsItem(), DocGroup::addDocs(), DotGroupCollaboration::addEdge(), addEnumDocs(), addEnumValuesToEnums(), FlowChart::addFlowChart(), DotGfxHierarchyTable::addHierarchy(), addHtmlExtensionIfMissing(), FileDefImpl::addIncludedByDependency(), FileDefImpl::addIncludeDependency(), addIncludeFile(), PerlModGenerator::addIncludeInfo(), Qhp::addIndexItem(), HtmlHelp::addIndexItem(), RTFGenerator::addIndexItem(), LatexGenerator::addIndexItem(), addInstance(), HtmlHelpIndex::addItem(), PerlModDocVisitor::addLink(), addMemberDocs(), addMemberFunction(), addMemberToGroups(), addPerlModDocBlock(), addRefItem(), addRelatedPage(), DefinitionImpl::addSectionsToIndex(), DefinitionImpl::addSourceReferencedBy(), DefinitionImpl::addSourceReferences(), GrowBuf::addStr(), addToMap(), TooltipManager::addTooltip(), ClassDefImpl::addTypeConstraint(), ClassDefImpl::addTypeConstraints(), addVariableToClass(), addVariableToFile(), SearchIndex::addWord(), SearchIndexExternal::addWord(), adjustConfiguration(), MemberGroup::anchor(), FilterDefault::apply(), FilterIsRelativeURL::apply(), FilterIsAbsoluteURL::apply(), FilterDecodeURL::apply(), argListToString(), buildClassDocList(), buildClassList(), buildDefineList(), buildExampleList(), buildFileList(), buildFileName(), buildGroupListFiltered(), buildNamespaceList(), buildPageList(), buildScopeFromQualifiedName(), DocParser::checkArgumentName(), VHDLOutlineParser::checkInlineCode(), DocParser::checkRetvalName(), DocParser::checkUnOrMultipleDocumentedParams(), ClassDefImpl::ClassDefImpl(), ClassDefImpl::className(), clearBlock(), LatexCodeGenerator::codify(), HtmlCodeGenerator::codify(), ManGenerator::codify(), RTFGenerator::codify(), codify(), FlowChart::codify(), combineDeclarationAndDefinition(), computeClassRelations(), DotGraph::computeGraph(), computePageRelations(), DefinitionImpl::computeTooltip(), ConceptDefImpl::ConceptDefImpl(), containsWord(), convertCharEntitiesToUTF8(), DotNode::convertLabel(), convertNameToFile(), convertToDocBook(), convertToHtml(), convertToId(), convertToJSString(), convertToPSString(), convertToXML(), copyLogo(), copyStyleSheet(), Portable::correct_path(), correctId(), correctURL(), MemberGroupInfoContext::Private::createDocs(), ArgumentContext::Private::createDocs(), VHDLOutlineParser::createFunction(), DefinitionContext< FileContext::Private >::createInbodyDocs(), createOutputDirectory(), SymbolContext::Private::createScope(), MemberContext::Private::createTrailingReturnType(), DefinitionContext< FileContext::Private >::DefinitionContext(), deliverablesPresent(), MemberDefImpl::detectUndocumentedParams(), MemberDefImpl::displayDefinition(), MemberGroup::distributeMemberGroupDocumentation(), DocCite::DocCite(), DocFormula::DocFormula(), HtmlCodeGenerator::docify(), ManGenerator::docify(), RTFGenerator::docify(), HtmlGenerator::docify(), DocLink::DocLink(), DocLinkedWord::DocLinkedWord(), DocRef::DocRef(), DocWord::DocWord(), DotClassGraph::DotClassGraph(), TagFileParser::dump(), elemIsVisible(), ConfigString::emptyValueToDefault(), encodeForOutput(), RTFGenerator::endDoxyAnchor(), LayoutParser::endElement(), RTFGenerator::endIndexItem(), HtmlGenerator::endIndexItem(), LatexGenerator::endIndexItem(), RTFGenerator::endIndexSection(), RTFDocVisitor::endLink(), LatexDocVisitor::endLink(), HtmlGenerator::endMemberDeclaration(), HtmlGenerator::endMemberTemplateParams(), RTFGenerator::endPageRef(), LatexGenerator::endPageRef(), endQuickIndexItem(), RTFGenerator::endTitleHead(), LatexGenerator::endTitleHead(), DocbookGenerator::endTitleHead(), DocGroup::enterCompound(), escapeCharsInString(), escapeCommas(), escapeDoubleQuotes(), escapeSpecialChars(), escapeTooltip(), RTFGenerator::exceptionEntry(), LatexGenerator::exceptionEntry(), HtmlGenerator::exceptionEntry(), DocbookGenerator::exceptionEntry(), Htags::execute(), ExistsOnPath(), expandAliasRec(), externalRef(), DefinitionImpl::externalReference(), extractCanonicalArgType(), extractCanonicalType(), extractClassNameFromType(), extractNamespaceName(), field2URL(), MemberDefImpl::fieldType(), FileDefImpl::FileDefImpl(), fileToString(), HtmlDocVisitor::filter(), RTFDocVisitor::filter(), ManDocVisitor::filter(), TextDocVisitor::filter(), filterId(), filterLatexString(), filterMemberDocumentation(), HtmlDocVisitor::filterQuotedCdataAttr(), findClassRelation(), findDefineDocumentation(), DocParser::findDocsForMemberOrCompound(), Markdown::findEmphasisChar(), Markdown::findEndOfLine(), findEnumDocumentation(), findEnums(), DocGroup::findExistingGroup(), findFileDef(), findGlobalMember(), findGroupScope(), FlowChart::findLabel(), findMainPage(), findMember(), findMemberDocumentation(), findMembersWithSpecificName(), findTemplateSpecializationPosition(), findUsedClassesForClass(), findUsingDeclarations(), findUsingDeclImports(), findUsingDirectives(), VariableContext::findVariable(), format_warn(), generateBriefDoc(), generateDEFForMember(), OutputList::generateDoc(), generateFileRef(), FormulaManager::generateImages(), generateJSLink(), generateJSNavTree(), FTVHelp::generateLink(), generateLink(), generateOutput(), CitationManager::generatePage(), PerlModGenerator::generatePerlModForMember(), PerlModGenerator::generatePerlModSection(), generateTemplateFiles(), generateXMLForClass(), generateXMLForMember(), genericCompareMembers(), TemplateContextImpl::get(), DotGfxHierarchyTable::getBaseName(), getCanonicalTemplateSpec(), getCanonicalTypeForIdentifier(), VhdlDocGen::getClass(), getClass(), MemberDefImpl::getClassDefOfAnonymousType(), getConcept(), getConvertLatexMacro(), getCurrentDateTime(), getDefs(), getExtension(), FilterCache::getFileContents(), getFileFilter(), getFileNameExtension(), Qhp::getFullProjectName(), getLanguageFromFileName(), HtmlHelp::getLanguageString(), getMemberFromSymbol(), MemberDefImpl::getOutputFileBase(), ParserManager::getParsers(), getPrefixIndex(), getQchFileName(), MemberDefImpl::getReference(), SymbolResolver::Private::getResolvedClassRec(), getResolvedNamespace(), SymbolResolver::Private::getResolvedSymbol(), getScopeDefs(), getSubdir(), DocPara::handleCommand(), VHDLOutlineParser::handleCommentBlock(), DocPara::handleHtmlStartTag(), DocPara::handleImage(), DocPara::handleInclude(), DocPara::handleLink(), DocParser::handleLinkedWord(), DocPara::handleStartCode(), DefinitionImpl::hasBriefDescription(), DirDefImpl::hasDetailedDescription(), MemberDefImpl::hasDetailedDescription(), DefinitionImpl::hasDocumentation(), MemberDefImpl::hasOneLineInitializer(), PageDefImpl::hasTitle(), DefinitionImpl::hasUserDocumentation(), PerlModOutput::iaddQuoted(), inheritDocumentation(), RTFGenerator::init(), ClassDefImpl::IMPL::init(), MemberDefImpl::IMPL::init(), initDoxygen(), Qhp::initialize(), EclipseHelp::initialize(), initUCF(), CitationManager::insertCrossReferencesForBibFile(), insertTemplateSpecifierInScope(), DocParser::internalValidatingParseDoc(), SymbolResolver::Private::isAccessibleFromWithExpScope(), MemberDefImpl::isBriefSectionVisible(), isClassSection(), ClassDefImpl::isExtension(), FileDefImpl::isIncluded(), NamespaceDefImpl::isLinkableInProject(), ClassDefImpl::isLinkableInProject(), isLinkRef(), isLowerCase(), DefinitionImpl::isReference(), DocImage::isSVG(), isVarWithConstructor(), DiagramItem::label(), CitationManager::latexBibFiles(), latexEscapeIndexChars(), latexEscapeLabelName(), latexEscapePDFString(), latexFilterURL(), Translator::latexFont(), letterToLabel(), HtmlGenerator::lineBreak(), linkifyText(), linkToText(), TemplateEngine::Private::loadByName(), mainPageHasOwnTitle(), makeFileName(), makeIndex(), makeQualifiedNameWithTemplateParameters(), makeRef(), Mapper::map(), matchArgument2(), matchExcludedSymbols(), mergeArguments(), mergeScopes(), NamespaceDefImpl::NamespaceDefImpl(), DefinitionImpl::navigationPathAsString(), TemplateContextImpl::needsRecoding(), node2URL(), DocbookGenerator::openSection(), organizeSubGroupsFiltered(), CondParser::parse(), DocInclude::parse(), DocIncOperator::parse(), DocXRefItem::parse(), DocRef::parse(), DocHtmlDescTitle::parse(), DocSection::parse(), DocSecRefItem::parse(), DocRoot::parse(), TemplateParser::parse(), ExpressionParser::parse(), FileCodeParser::parseCode(), parseCommentAsText(), VHDLOutlineParser::parseInput(), MarkdownOutlineParser::parseInput(), parseInput(), VhdlDocGen::parseUCF(), CondParser::parseVar(), Htags::path2URL(), DefinitionImpl::pathFragment(), printNavTree(), Markdown::process(), Markdown::processBlocks(), Markdown::processLink(), Markdown::processSpecialCommand(), processTagLessClasses(), qPrint(), DefinitionImpl::qualifiedName(), readAliases(), readCodeFragment(), readConfiguration(), readFileOrDirectory(), readInputFile(), readTagFile(), Portable::recodeUtf8StringToW(), ParserManager::registerExtension(), relativePathToRoot(), LatexSpaceless::remove(), HtmlSpaceless::remove(), removeRedundantWhiteSpace(), TemplateNodeExtend::render(), TemplateNodeInclude::render(), TemplateNodeCreate::render(), TemplateNodeIndexEntry::render(), TemplateNodeOpenSubIndex::render(), TemplateNodeCloseSubIndex::render(), TemplateNodeMarkers::render(), TemplateNodeResource::render(), TemplateNodeEncoding::render(), replaceAnonymousScopes(), replaceColorMarkers(), replaceNamespaceAliases(), replaceRef(), resolveClassNestingRelations(), resolveLink(), resolveRef(), resolveTypeDef(), MemberDefImpl::resolveUnnamedParameters(), DotRunner::run(), runPlantumlContent(), searchTemplateSpecs(), MemberDefImpl::setAnchor(), DefinitionImpl::setBriefDescription(), SearchIndex::setCurrentDoc(), SearchIndexExternal::setCurrentDoc(), DefinitionImpl::setDocumentation(), setDotFontPath(), TemplateContextImpl::setEncoding(), Portable::setenv(), TemplateContextImpl::setEscapeIntf(), GroupDefImpl::setGroupTitle(), DefinitionImpl::setInbodyDocumentation(), ConceptDefImpl::setIncludeFile(), ClassDefImpl::setIncludeFile(), DefinitionImpl::setName(), showFileDefMatches(), simplifyWhiteSpace(), XMLCodeGenerator::startCodeLine(), DocbookGenerator::startDescTable(), LatexGenerator::startDoxyAnchor(), DocbookGenerator::startDoxyAnchor(), DocbookGenerator::startFile(), startFile(), HtmlGenerator::startHtmlLink(), HtmlGenerator::startIndexItem(), LatexGenerator::startIndexItem(), RTFGenerator::startIndexSection(), DocbookDocVisitor::startLink(), HtmlDocVisitor::startLink(), RTFDocVisitor::startLink(), XmlDocVisitor::startLink(), LatexDocVisitor::startLink(), LayoutParser::startMemberDeclEntry(), LayoutParser::startMemberDefEntry(), HtmlGenerator::startMemberDescription(), RTFGenerator::startMemberDoc(), LatexGenerator::startMemberDoc(), DocbookGenerator::startMemberDoc(), DocbookGenerator::startMemberDocSimple(), HtmlGenerator::startMemberHeader(), HtmlGenerator::startMemberItem(), LayoutParser::startNavEntry(), HtmlGenerator::startParagraph(), RTFGenerator::startParameterType(), LatexGenerator::startParameterType(), startQuickIndexItem(), LayoutParser::startSectionEntry(), startsWith(), RTFGenerator::startTextLink(), HtmlGenerator::startTextLink(), LatexGenerator::startTextLink(), LatexGenerator::startTitleHead(), stripAnonymousNamespaceScope(), stripIndentation(), stripLeadingAndTrailingEmptyLines(), stripPrefix(), stripProtectionPrefix(), substitute(), substituteHtmlKeywords(), substituteKeywords(), substituteLatexKeywords(), substituteTemplateArgumentsInString(), substituteTemplatesInString(), SymbolResolver::Private::substTypedef(), Portable::system(), TemplateNodeBlock::TemplateNodeBlock(), TemplateNodeCloseSubIndex::TemplateNodeCloseSubIndex(), TemplateNodeCreate::TemplateNodeCreate(), TemplateNodeEncoding::TemplateNodeEncoding(), TemplateNodeExtend::TemplateNodeExtend(), TemplateNodeFor::TemplateNodeFor(), TemplateNodeIf::TemplateNodeIf(), TemplateNodeInclude::TemplateNodeInclude(), TemplateNodeOpenSubIndex::TemplateNodeOpenSubIndex(), TemplateNodeRange::TemplateNodeRange(), TemplateNodeResource::TemplateNodeResource(), TemplateNodeTree::TemplateNodeTree(), PageContext::Private::title(), TemplateLexer::tokenize(), Trace::Trace(), transcodeCharacterBuffer(), transcodeCharacterStringToUTF8(), transferArgumentDocumentation(), TranslatorUkrainian::trCompounds(), TranslatorRussian::trCompounds(), TranslatorArmenian::trCompounds(), TranslatorSlovak::trCompounds(), TranslatorIndonesian::trCompounds(), TranslatorAfrikaans::trCompounds(), TranslatorSerbian::trCompounds(), TranslatorMacedonian::trCompounds(), TranslatorLithuanian::trCompounds(), TranslatorSpanish::trCompounds(), TranslatorTurkish::trCompounds(), TranslatorCatalan::trCompounds(), TranslatorEsperanto::trCompounds(), TranslatorSerbianCyrillic::trCompounds(), TranslatorGreek::trCompounds(), TranslatorLatvian::trCompounds(), TranslatorArabic::trCompounds(), TranslatorRomanian::trCompounds(), TranslatorEnglish::trCompounds(), TranslatorVietnamese::trCompounds(), TranslatorKorean::trCompounds(), TranslatorHungarian::trCompounds(), TranslatorJapanese::trCompounds(), TranslatorCzech::trCompounds(), TranslatorFinnish::trCompounds(), TranslatorSwedish::trCompounds(), TranslatorItalian::trDefines(), TranslatorNorwegian::trEnumerationTypeDocumentation(), TranslatorBrazilian::trEnumerationValues(), TranslatorPortuguese::trFunctions(), TranslatorChinese::trGeneratedAt(), TranslatorPersian::trGeneratedAt(), TranslatorDanish::trGeneratedAt(), TranslatorChinese::trGeneratedAutomatically(), TranslatorPersian::trGeneratedAutomatically(), TranslatorDanish::trGeneratedAutomatically(), TranslatorPolish::trListOfAllMembers(), TranslatorChinesetraditional::trListOfAllMembers(), TranslatorGerman::trListOfAllMembers(), TranslatorBrazilian::trMemberEnumerationDocumentation(), TranslatorDutch::trMemberFunctionDocumentation(), TranslatorSlovene::trMemberFunctionDocumentation(), TranslatorCroatian::trMemberFunctionDocumentation(), TranslatorNorwegian::trMemberFunctionDocumentation(), TranslatorUkrainian::trMemberList(), TranslatorArmenian::trMemberList(), TranslatorRussian::trMemberList(), TranslatorSlovak::trMemberList(), TranslatorIndonesian::trMemberList(), TranslatorAfrikaans::trMemberList(), TranslatorSerbian::trMemberList(), TranslatorMacedonian::trMemberList(), TranslatorLithuanian::trMemberList(), TranslatorArabic::trMemberList(), TranslatorSpanish::trMemberList(), TranslatorTurkish::trMemberList(), TranslatorEnglish::trMemberList(), TranslatorRomanian::trMemberList(), TranslatorCatalan::trMemberList(), TranslatorEsperanto::trMemberList(), TranslatorSerbianCyrillic::trMemberList(), TranslatorGreek::trMemberList(), TranslatorLatvian::trMemberList(), TranslatorVietnamese::trMemberList(), TranslatorKorean::trMemberList(), TranslatorHungarian::trMemberList(), TranslatorJapanese::trMemberList(), TranslatorCzech::trMemberList(), TranslatorSwedish::trMemberList(), TranslatorPolish::trVariableDocumentation(), TranslatorGerman::trVariableDocumentation(), unescapeCharsInString(), unsetDotFontPath(), Portable::unsetenv(), updateLanguageMapping(), LayoutNavEntry::url(), validatingParseDoc(), validatingParseText(), version(), LatexDocVisitor::visit(), HtmlDocVisitor::visit(), DocbookDocVisitor::visit(), ManDocVisitor::visit(), RTFDocVisitor::visit(), XmlDocVisitor::visit(), HtmlDocVisitor::visitPost(), DocbookDocVisitor::visitPost(), LatexDocVisitor::visitPost(), RTFDocVisitor::visitPost(), XmlDocVisitor::visitPost(), ManDocVisitor::visitPost(), PerlModDocVisitor::visitPost(), DocbookDocVisitor::visitPre(), XmlDocVisitor::visitPre(), HtmlDocVisitor::visitPre(), LatexDocVisitor::visitPre(), RTFDocVisitor::visitPre(), ManDocVisitor::visitPre(), PerlModDocVisitor::visitPre(), visitPreStart(), DocbookDocVisitor::visitPreStart(), MemberDefImpl::warnIfUndocumentedParams(), SearchIndexExternal::write(), writeAlphabeticalClassList(), RTFGenerator::writeAnchor(), LatexGenerator::writeAnchor(), DotNode::writeArrow(), DotNode::writeBox(), NamespaceDefImpl::writeBriefDescription(), LatexCodeGenerator::writeCodeLink(), RTFGenerator::writeCodeLink(), writeColumn(), ClassDefImpl::writeDeclaration(), MemberDefImpl::writeDeclaration(), ConceptDefImpl::writeDeclarationLink(), ClassDefImpl::writeDeclarationLink(), MemberGroup::writeDeclarations(), MemberList::writeDeclarations(), DotNode::writeDEF(), writeDefArgumentList(), writeDEFString(), ClassDefImpl::writeDetailedDescription(), DefinitionImpl::writeDocAnchorsToTagFile(), DotNode::writeDocbook(), writeDocbookCodeString(), writeDocbookLink(), GroupDefImpl::writeDocumentation(), FileDefImpl::writeDocumentation(), MemberList::writeDocumentation(), MemberDefImpl::writeDocumentation(), MemberDefImpl::writeEnumDeclaration(), HtmlGenerator::writeExternalSearchPage(), Markdown::writeFencedCodeBlock(), HtmlHelpIndex::writeFields(), writeFileIndex(), FlowChart::writeFlowLinks(), VhdlDocGen::writeFormatString(), VhdlDocGen::writeFunctionProto(), DotGraph::writeGraphHeader(), DotGroupCollaboration::writeGraphHeader(), ConceptDefImpl::writeIncludeFiles(), ClassDefImpl::writeIncludeFiles(), ClassDefImpl::writeIncludeFilesForSlice(), writeIncludeInfo(), writeIndex(), writeIndexHierarchyEntries(), HtmlGenerator::writeInheritedSectionTitle(), writeJavaScriptSearchIndex(), XMLCodeGenerator::writeLineNumber(), LatexCodeGenerator::writeLineNumber(), HtmlCodeGenerator::writeLineNumber(), DocbookCodeGenerator::writeLineNumber(), RTFGenerator::writeLineNumber(), TextGeneratorHtml::writeLink(), TextGeneratorLatex::writeLink(), writeMapArea(), Markdown::writeMarkdownImage(), MemberDefImpl::writeMemberDocSimple(), ClassDefImpl::writeMemberList(), writeMemberList(), writeMemberReference(), ClassDefImpl::writeMoreLink(), writeMscImageMapFromFile(), writeNamespaceTreeElement(), RTFGenerator::writeObjectLink(), HtmlGenerator::writeObjectLink(), LatexGenerator::writeObjectLink(), DocbookGenerator::writeObjectLink(), PageDefImpl::writePageDocumentation(), writePages(), PlantumlManager::writePlantUMLSource(), VhdlDocGen::writeRecordUnit(), FlowChart::writeShape(), writeSingleFileIndex(), VhdlDocGen::writeSource(), FileDefImpl::writeSourceBody(), DefinitionImpl::writeSourceDef(), FileDefImpl::writeSourceHeader(), RTFGenerator::writeStartAnnoItem(), LatexGenerator::writeStartAnnoItem(), HtmlGenerator::writeStartAnnoItem(), Image::writeString(), TextGeneratorOLImpl::writeString(), TextGeneratorHtml::writeString(), HtmlGenerator::writeSummaryLink(), NamespaceDefImpl::writeTagFile(), ConceptDefImpl::writeTagFile(), ClassDefImpl::writeTagFile(), MemberDefImpl::writeTagFile(), writeTagFile(), ClassDefImpl::writeTemplateSpec(), DefinitionImpl::writeToc(), DocSets::writeToken(), HtmlCodeGenerator::writeTooltip(), VhdlDocGen::writeVHDLDeclaration(), VhdlDocGen::writeVHDLDeclarations(), writeVhdlDotLink(), writeVhdlEntityToolTip(), VhdlDocGen::writeVhdlLink(), DotNode::writeXML(), writeXMLCodeString(), writeXMLDocBlock(), writeXMLLink() , 以及 HtmlEntityMapper::writeXMLSchema().

◆ isNull()

bool QCString::isNull ( ) const
inline

Returns TRUE iff the string is empty.

Equivalent to isEmpty().

在文件 qcstring.h141 行定义.

141 { return m_rep.empty(); }

引用了 m_rep.

被这些函数引用 Qhp::handlePrevSection().

◆ left()

QCString QCString::left ( size_t  len) const
inline

在文件 qcstring.h212 行定义.

213  {
214  return m_rep.empty() ? QCString() : QCString(m_rep.substr(0,len));
215  }

引用了 m_rep , 以及 QCString().

被这些函数引用 MemberDefImpl::_computeIsConstructor(), MemberDefImpl::_writeCategoryRelation(), MemberDefImpl::_writeReimplements(), abbreviate(), VhdlDocGen::addBaseClass(), addClassToContext(), VHDLOutlineParser::addCompInst(), addEnumValuesToEnums(), DocSets::addIndexItem(), addMemberFunction(), addRelatedPage(), addTemplateNames(), addVariableToFile(), adjustConfiguration(), alignText(), FilterRelative::apply(), argListToString(), buildDirectories(), buildFileList(), DocParser::checkArgumentName(), DocParser::checkUnOrMultipleDocumentedParams(), HtmlCodeGenerator::codify(), ManGenerator::codify(), RTFGenerator::codify(), computeCommonDirPrefix(), DotFilePatcher::convertMapFile(), convertNameToFile(), ResourceMgr::copyResourceAs(), VhdlDocGen::correctMemberProperties(), createTagLessInstance(), MemberDefImpl::createTemplateInstanceMember(), DocParser::defaultHandleTitleAndSize(), MemberDefImpl::displayDefinition(), DocInternalRef::DocInternalRef(), LayoutParser::endElement(), LayoutParser::endMemberDecl(), LayoutParser::endMemberDef(), DocGroup::enterCompound(), extractClassName(), extractClassNameFromType(), extractLanguageSpecificTitle(), extractNamespaceName(), extractTitleId(), filterMemberDocumentation(), DocParser::findAndCopyImage(), findClassRelation(), findDirDocumentation(), DocParser::findDocsForMemberOrCompound(), findEnumDocumentation(), findEnums(), findFileDef(), findGlobalMember(), findMember(), findScopeFromQualifiedName(), findUsingDeclImports(), findUsingDirectives(), CitationManager::generatePage(), TemplateContextImpl::get(), getBaseNameOfOutput(), MemberDefImpl::getClassDefOfAnonymousType(), getDefs(), getDotImageExtension(), getFileFilter(), getFilterFromList(), getMemberFromSymbol(), ParserManager::getParsers(), SymbolResolver::Private::getResolvedClassRec(), getScopeDefs(), getTemplateArgumentsFromName(), DocPara::handleCommand(), DocParser::handleLinkedWord(), initUCF(), insertTemplateSpecifierInScope(), Markdown::isAtxHeader(), MemberDefImpl::isDocumentedFriendClass(), isRecursiveBaseClass(), isURL(), isVarWithConstructor(), DiagramItem::label(), leftScopeMatch(), linkifyText(), Htags::loadFilemap(), makeDisplayName(), markdownFileNameToId(), matchExcludedSymbols(), mergeArguments(), mergeCategories(), DirDefImpl::mergeDirectoryInTree(), ClassDefImpl::mergeMembers(), mergeScopes(), DefinitionImpl::navigationPathAsString(), SymbolResolver::Private::newResolveTypedef(), normalizeNonTemplateArgumentsInString(), DocLink::parse(), DocPara::parse(), DocParamList::parse(), TemplateParser::parse(), parseCommentAsText(), VhdlDocGen::parseFuncProto(), VhdlDocGen::parseUCF(), VHDLOutlineParser::popLabel(), FlowChart::printNode(), Markdown::processLink(), readAliases(), readTagFile(), replaceNamespaceAliases(), replaceRef(), resolveRef(), resolveSymlink(), resolveTypeDef(), DotFilePatcher::run(), searchInputFiles(), searchTemplateSpecs(), MemberDefImpl::setInitializer(), showFileDefMatches(), simplifyTypeForTable(), splitString(), DocbookDocVisitor::startDiaFile(), LatexDocVisitor::startDiaFile(), DocbookDocVisitor::startDotFile(), LatexDocVisitor::startDotFile(), DocbookDocVisitor::startMscFile(), LatexDocVisitor::startMscFile(), stripAnonymousNamespaceScope(), stripDeclKeywords(), stripExtensionGeneral(), stripFromPath(), stripIrrelevantString(), stripKnownExtensions(), stripWord(), substituteHtmlKeywords(), substituteTemplateArgumentsInString(), substituteTemplatesInString(), TemplateNodeCreate::TemplateNodeCreate(), TemplateNodeFor::TemplateNodeFor(), TemplateNodeIndexEntry::TemplateNodeIndexEntry(), TemplateNodeMarkers::TemplateNodeMarkers(), TemplateNodeRange::TemplateNodeRange(), TemplateNodeResource::TemplateNodeResource(), TemplateNodeSet::TemplateNodeSet(), TemplateNodeWith::TemplateNodeWith(), trimBaseClassScope(), LayoutNavEntry::url(), HtmlDocVisitor::visitPre(), LatexDocVisitor::visitPre(), DotNode::writeBox(), MemberDefImpl::writeDeclaration(), DotNode::writeDEF(), FileDefImpl::writeDetailedDescription(), HtmlDocVisitor::writeDiaFile(), DotNode::writeDocbook(), MemberDefImpl::writeDocumentation(), HtmlDocVisitor::writeDotFile(), writeExceptionListImpl(), HtmlGenerator::writeExternalSearchPage(), HtmlHelpIndex::writeFields(), VhdlDocGen::writeFormatString(), writeGraphInfo(), ClassDefImpl::writeIncludeFilesForSlice(), writeIndexHierarchyEntries(), MemberDefImpl::writeMemberDocSimple(), HtmlDocVisitor::writeMscFile(), HtmlDocVisitor::writePlantUMLFile(), PlantumlManager::writePlantUMLSource(), VhdlDocGen::writeRecordUnit(), VhdlDocGen::writeSource(), DefinitionImpl::writeSourceDef(), DocSets::writeToken(), writeUserGroupStubPage() , 以及 DotNode::writeXML().

◆ length()

uint QCString::length ( ) const
inline

Returns the length of the string, not counting the 0-terminator.

Equivalent to size().

在文件 qcstring.h147 行定义.

147 { return (uint)m_rep.size(); }

引用了 m_rep.

被这些函数引用 DefinitionImpl::_docsAlreadyAdded(), DefinitionImpl::_setBriefDescription(), HtmlCodeGenerator::_writeCodeLink(), MemberDefImpl::_writeReimplements(), MemberDefImpl::_writeTemplatePrefix(), abbreviate(), VhdlDocGen::addBaseClass(), VHDLOutlineParser::addCompInst(), addEnumValuesToEnums(), addIncludeFile(), DocSets::addIndexItem(), addMemberToGroups(), addRelatedPage(), GrowBuf::addStr(), addTemplateNames(), ClassDefImpl::addTypeConstraints(), FlowChart::alignCommentNode(), FlowChart::alignFuncProc(), alignText(), MemberGroup::anchor(), FilterLength::apply(), buildDirectories(), buildFileName(), buildGroupListFiltered(), charsToIndex(), DocParser::checkArgumentName(), checkExtension(), VHDLOutlineParser::checkInlineCode(), DocParser::checkUnOrMultipleDocumentedParams(), computeCommonDirPrefix(), computeQualifiedIndex(), contains(), TranslatorPersian::convertDigitsToFarsi(), DotNode::convertLabel(), DotFilePatcher::convertMapFile(), convertNameToFile(), ResourceMgr::copyResourceAs(), countAliasArguments(), MemberList::countEnumValues(), createOutputDirectory(), createTagLessInstance(), DocParser::defaultHandleTitleAndSize(), Markdown::detab(), FilterListSort::determineSortKey(), DotClassGraph::determineVisibleNodes(), MemberDefImpl::displayDefinition(), DocAnchor::DocAnchor(), DocEmoji::DocEmoji(), DocInternalRef::DocInternalRef(), DocLink::DocLink(), elemIsVisible(), encodeDirName(), encodeForOutput(), LayoutParser::endElement(), endsWith(), escapeAliases(), escapeId(), expandAliasRec(), DocInclude::extension(), externalRef(), DefinitionImpl::externalReference(), extractAliasArgs(), extractBlock(), extractCanonicalType(), extractClassNameFromType(), extractLanguageSpecificTitle(), extractNamespaceName(), filterMemberDocumentation(), find(), DocParser::findAndCopyImage(), findClassRelation(), findDirDocumentation(), DocParser::findDocsForMemberOrCompound(), Markdown::findEmphasisChar(), findEndOfCommand(), Markdown::findEndOfLine(), findEndOfTemplate(), findEnumDocumentation(), findEnums(), findFileDef(), findMember(), findRev(), findScopeFromQualifiedName(), findTemplateSpecializationPosition(), findUsingDeclImports(), findUsingDirectives(), format_warn(), VhdlDocGen::formatString(), CitationManager::generatePage(), PerlModGenerator::generatePerlModForMember(), PlantumlManager::generatePlantUMLOutput(), TemplateContextImpl::get(), getCanonicalTemplateSpec(), MemberDefImpl::getClassDefOfAnonymousType(), getConvertLatexMacro(), getDefs(), getExtension(), getFileFilter(), getMemberFromSymbol(), getParserForFile(), ParserManager::getParsers(), SymbolResolver::Private::getResolvedClassRec(), getScopeDefs(), getScopeFragment(), handle_warn_as_error(), DocParser::handleLinkedWord(), DocPara::handleStartCode(), DocParser::handleStyleArgument(), insert(), insertTemplateSpecifierInScope(), Portable::isAbsolutePath(), Markdown::isAtxHeader(), isConstraintFile(), DocFormula::isInline(), DocImage::isSVG(), isVarWithConstructor(), DiagramItem::label(), latexEscapeIndexChars(), latexEscapeLabelName(), leftScopeMatch(), linkToText(), makeDisplayName(), matchArgument2(), matchExcludedSymbols(), DirDefImpl::matchPath(), mergeArguments(), ClassDefImpl::mergeMembers(), mergeScopes(), ArgumentContext::Private::namePart(), DefinitionImpl::navigationPathAsString(), SymbolResolver::Private::newResolveTypedef(), VHDLOutlineParser::oneLineComment(), DocInclude::parse(), DocLink::parse(), FileCodeParser::parseCode(), parseCommentAsText(), parseFile(), VhdlDocGen::parseFuncProto(), Htags::path2URL(), DotGraph::prepareDotFile(), Markdown::process(), Markdown::processBlocks(), DocParser::processCopyDoc(), Markdown::processLink(), Markdown::processQuotations(), Markdown::processSpecialCommand(), processTagLessClasses(), readAliases(), readCodeFragment(), readTagFile(), TemplateContextImpl::recode(), Portable::recodeUtf8StringToW(), removeEmptyLines(), removeRedundantWhiteSpace(), removeSpacesAroundEquals(), TemplateNodeCreate::render(), replaceAliasArguments(), replaceNamespaceAliases(), resolveRef(), resolveSymlink(), resolveTypeDef(), resolveUserReferences(), rightScopeMatch(), rtfFormatBmkStr(), DotFilePatcher::run(), runPlantumlContent(), searchInputFiles(), searchTemplateSpecs(), MemberDefImpl::setAnchor(), MemberList::setAnonymousEnumType(), MemberDefImpl::setInitializer(), showFileDefMatches(), simplifyTypeForTable(), simplifyWhiteSpace(), skipToEndMarker(), split(), sprintf(), LatexDocVisitor::startDiaFile(), LatexDocVisitor::startDotFile(), ManGenerator::startDoxyAnchor(), LatexDocVisitor::startMscFile(), stripAnonymousNamespaceScope(), stripExtensionGeneral(), stripFromPath(), stripIrrelevantString(), stripKnownExtensions(), stripLeadingAndTrailingEmptyLines(), stripPrefix(), stripScope(), stripTemplateSpecifiers(), stripTemplateSpecifiersFromScope(), stripWord(), substitute(), tempArgListToString(), TemplateNodeFor::TemplateNodeFor(), TemplateNodeMarkers::TemplateNodeMarkers(), TemplateNodeRange::TemplateNodeRange(), toLong(), toUInt64(), toULong(), transcodeCharacterStringToUTF8(), trimBaseClassScope(), validatingParseDoc(), ManDocVisitor::visit(), HtmlDocVisitor::visit(), LatexDocVisitor::visit(), XmlDocVisitor::visit(), DocbookDocVisitor::visit(), RTFDocVisitor::visit(), DocbookDocVisitor::visitPost(), RTFDocVisitor::visitPre(), HtmlDocVisitor::visitPre(), DocbookDocVisitor::visitPre(), LatexDocVisitor::visitPre(), PerlModDocVisitor::visitPre(), DotNode::writeBox(), XMLCodeGenerator::writeCodeLink(), LatexCodeGenerator::writeCodeLink(), DocbookCodeGenerator::writeCodeLink(), DocbookCodeGenerator::writeCodeLinkLine(), MemberDefImpl::writeDeclaration(), writeDefArgumentList(), FileDefImpl::writeDetailedDescription(), HtmlDocVisitor::writeDiaFile(), RTFDocVisitor::writeDiaFile(), LatexDocVisitor::writeDiaFile(), MemberDefImpl::writeDocumentation(), HtmlDocVisitor::writeDotFile(), RTFDocVisitor::writeDotFile(), MemberDefImpl::writeEnumDeclaration(), HtmlGenerator::writeExternalSearchPage(), ClassDefImpl::writeIncludeFilesForSlice(), HtmlDocVisitor::writeMscFile(), RTFDocVisitor::writeMscFile(), LatexDocVisitor::writeMscFile(), HtmlDocVisitor::writeObfuscatedMailAddress(), HtmlDocVisitor::writePlantUMLFile(), RTFDocVisitor::writePlantUMLFile(), LatexDocVisitor::writePlantUMLFile(), PlantumlManager::writePlantUMLSource(), FlowChart::writeShape(), writeSingleFileIndex(), DefinitionImpl::writeSourceDef(), writeString(), ClassDefImpl::writeTemplateSpec(), DocSets::writeToken(), writeUCFLink() , 以及 HtmlEntityMapper::writeXMLSchema().

◆ lower()

◆ mid()

QCString QCString::mid ( size_t  index,
size_t  len = static_cast<size_t>(-1) 
) const
inline

在文件 qcstring.h224 行定义.

225  {
226  size_t slen = m_rep.size();
227  if (len==static_cast<uint>(-1)) len = slen-index;
228  return m_rep.empty() || index>slen || len==0 ? QCString() :
229  QCString(m_rep.substr(index,len));
230  }

引用了 m_rep , 以及 QCString().

被这些函数引用 MemberDefImpl::_writeCategoryRelation(), abbreviate(), addClassToContext(), addIncludeFile(), addMemberFunction(), addTemplateNames(), TemplateLexer::addToken(), addToMap(), ClassDefImpl::addTypeConstraints(), addVariableToClass(), addVariableToFile(), adjustConfiguration(), FilterStripPath::apply(), FilterDecodeURL::apply(), argListToString(), buildScopeFromQualifiedName(), VHDLOutlineParser::checkInlineCode(), convertFileId2Var(), FilterListSort::determineSortKey(), MemberDefImpl::displayDefinition(), elemIsVisible(), escapeAliases(), ExistsOnPath(), expandAliasRec(), extractAliasArgs(), extractBlock(), extractCanonicalType(), extractClassNameFromType(), extractLanguageSpecificTitle(), Markdown::extractPageTitle(), VhdlDocGen::findAllArchitectures(), findClassRelation(), findGlobalMember(), findParameterList(), findScopeFromQualifiedName(), SymbolResolver::Private::followPath(), CitationManager::generatePage(), PerlModGenerator::generatePerlModForMember(), generateXMLForMember(), TemplateContextImpl::get(), getDefs(), getExtension(), getFileNameExtension(), getFilterFromList(), getLanguageFromCodeLang(), getMemberFromSymbol(), SymbolResolver::Private::getResolvedClassRec(), DocPara::handleCommand(), DocPara::handleImage(), DocParser::handleParameterType(), DocPara::handleStartCode(), CitationManager::insertCrossReferencesForBibFile(), ClassDefImpl::isExtension(), DocImage::isSVG(), linkifyText(), Htags::loadFilemap(), NamespaceDefImpl::localName(), makeFileName(), matchExcludedSymbols(), ArgumentContext::Private::namePart(), SymbolResolver::Private::newResolveTypedef(), node2URL(), normalizeNonTemplateArgumentsInString(), DocIncOperator::parse(), DocPara::parse(), DocParamList::parse(), TemplateParser::parse(), FileCodeParser::parseCode(), VhdlDocGen::parseFuncProto(), Htags::path2URL(), Markdown::process(), replaceAliasArguments(), replaceRef(), resolveRef(), resolveSymlink(), resolveTypeDef(), DotFilePatcher::run(), TemplateContextImpl::setEscapeIntf(), split(), stripAnonymousNamespaceScope(), stripDeclKeywords(), stripLeadingAndTrailingEmptyLines(), stripPath(), stripProtectionPrefix(), stripTemplateSpecifiersFromScope(), stripTrailingReturn(), substituteTemplateArgumentsInString(), substituteTemplatesInString(), TemplateNodeCreate::TemplateNodeCreate(), TemplateNodeFor::TemplateNodeFor(), TemplateNodeIndexEntry::TemplateNodeIndexEntry(), TemplateNodeMarkers::TemplateNodeMarkers(), TemplateNodeRange::TemplateNodeRange(), TemplateNodeResource::TemplateNodeResource(), TemplateNodeSet::TemplateNodeSet(), TemplateNodeWith::TemplateNodeWith(), LayoutNavEntry::url(), HtmlDocVisitor::visit(), LatexDocVisitor::visit(), XmlDocVisitor::visit(), HtmlDocVisitor::visitPre(), DocbookDocVisitor::visitPre(), DotNode::writeDEF(), writeDefArgumentList(), DotNode::writeDocbook(), MemberDefImpl::writeDocumentation(), writeExceptionList(), writeExceptionListImpl(), Markdown::writeFencedCodeBlock(), writeGraphInfo(), Markdown::writeMarkdownImage(), MemberDefImpl::writeMemberDocSimple(), HtmlDocVisitor::writeObfuscatedMailAddress(), DefinitionImpl::writeSourceDef(), DotNode::writeXML() , 以及 HtmlEntityMapper::writeXMLSchema().

◆ operator+=() [1/4]

QCString& QCString::operator+= ( char  c)
inline

Appends character c to this string and returns a reference to the result.

在文件 qcstring.h469 行定义.

470  {
471  m_rep+=c;
472  return *this;
473  }

引用了 m_rep.

◆ operator+=() [2/4]

QCString& QCString::operator+= ( const char *  s)
inline

Appends string str to this string and returns a reference to the result.

在文件 qcstring.h460 行定义.

461  {
462  if (s) m_rep+=s;
463  return *this;
464  }

引用了 m_rep.

◆ operator+=() [3/4]

QCString& QCString::operator+= ( const QCString s)
inline

在文件 qcstring.h447 行定义.

448  {
449  m_rep+=s.str();
450  return *this;
451  }

引用了 m_rep , 以及 str().

被这些函数引用 append().

◆ operator+=() [4/4]

QCString& QCString::operator+= ( const std::string &  s)
inline

在文件 qcstring.h453 行定义.

454  {
455  m_rep+=s;
456  return *this;
457  }

引用了 m_rep.

◆ operator=() [1/4]

QCString& QCString::operator= ( const char *  str)
inline

replaces the contents by that of C string str.

在文件 qcstring.h136 行定义.

136 { m_rep = str?str:""; return *this; }

引用了 m_rep , 以及 str().

◆ operator=() [2/4]

QCString& QCString::operator= ( const QCString s)
default

◆ operator=() [3/4]

QCString& QCString::operator= ( const std::string &  s)
inline

在文件 qcstring.h138 行定义.

138 { m_rep = s; return *this; }

引用了 m_rep.

◆ operator=() [4/4]

QCString& QCString::operator= ( QCString &&  s)
default

◆ operator[]() [1/2]

char& QCString::operator[] ( int  i)
inline

Indexing operator.

Equivalent to at().

在文件 qcstring.h488 行定义.

489  {
490  return m_rep[i];
491  }

引用了 m_rep.

◆ operator[]() [2/2]

const char& QCString::operator[] ( int  i) const
inline

在文件 qcstring.h493 行定义.

494  {
495  return m_rep[i];
496  }

引用了 m_rep.

◆ prepend() [1/3]

QCString& QCString::prepend ( const char *  s)
inline

在文件 qcstring.h339 行定义.

340  {
341  return insert(0,s);
342  }

引用了 insert().

被这些函数引用 DefinitionImpl::_writeSourceRefList(), addClassToContext(), addConceptToContext(), MemberDefImpl::addListReference(), addMemberFunction(), DefinitionImpl::addSourceReferencedBy(), DefinitionImpl::addSourceReferences(), addSTLClass(), ClassDefImpl::addUsedByClass(), ClassDefImpl::addUsedClass(), FlowChart::alignFuncProc(), MemberDefImpl::anchor(), convertNameToFile(), correctURL(), VHDLOutlineParser::createFlow(), createOutputDirectory(), MemberDefImpl::displayDefinition(), DocEmoji::DocEmoji(), externalRef(), DefinitionImpl::externalReference(), MemberDefImpl::fieldType(), FileDefImpl::FileDefImpl(), filterMemberDocumentation(), findClassRelation(), DocParser::findDocsForMemberOrCompound(), findEnumDocumentation(), findEnums(), findMember(), generateDEFForMember(), generateOutput(), MemberDefImpl::getDeclType(), getExtension(), getLanguageFromFileName(), FlowChart::getNodeName(), getScopeDefs(), MemberContext::Private::handleNameWithContextFor(), SymbolResolver::Private::newResolveTypedef(), MarkdownOutlineParser::parseInput(), parseInput(), processTagLessClasses(), TemplateNodeCreate::render(), replaceRef(), MemberDefImpl::setAnchor(), SearchIndex::setCurrentDoc(), setDotFontPath(), DocbookDocVisitor::startDiaFile(), LatexDocVisitor::startDiaFile(), DocbookDocVisitor::startDotFile(), LatexDocVisitor::startDotFile(), DocbookDocVisitor::startMscFile(), LatexDocVisitor::startMscFile(), substituteHtmlKeywords(), updateLanguageMapping(), HtmlDocVisitor::visit(), MemberDefImpl::writeDeclaration(), MemberGroup::writeDeclarations(), writeDefArgumentList(), HtmlDocVisitor::writeDiaFile(), MemberDefImpl::writeDocumentation(), HtmlDocVisitor::writeDotFile(), writeIndexHierarchyEntries(), HtmlGenerator::writeInheritedSectionTitle(), VhdlDocGen::writeInlineClassLink(), LatexCodeGenerator::writeLineNumber(), RTFGenerator::writeLineNumber(), MemberDefImpl::writeLink(), writeMemberReference(), HtmlDocVisitor::writeMscFile(), PlantumlManager::writePlantUMLSource(), writeSingleFileIndex(), VhdlDocGen::writeSource(), VhdlDocGen::writeVHDLDeclaration() , 以及 VhdlDocGen::writeVhdlLink().

◆ prepend() [2/3]

QCString& QCString::prepend ( const QCString s)
inline

在文件 qcstring.h344 行定义.

345  {
346  return insert(0,s.data());
347  }

引用了 data() , 以及 insert().

◆ prepend() [3/3]

QCString& QCString::prepend ( const std::string &  s)
inline

在文件 qcstring.h349 行定义.

350  {
351  return insert(0,s.c_str());
352  }

引用了 insert().

◆ rawData()

◆ remove()

QCString& QCString::remove ( size_t  index,
size_t  len 
)
inline

◆ removeWhiteSpace()

QCString QCString::removeWhiteSpace ( ) const
inline

returns a copy of this string with all whitespace removed

在文件 qcstring.h255 行定义.

256  {
257  size_t sl = m_rep.size();
258  if (sl==0) return *this;
259  std::string result = m_rep;
260  size_t src=0,dst=0;
261  while (src<sl)
262  {
263  if (!qisspace(m_rep[src])) result[dst++]=m_rep[src];
264  src++;
265  }
266  if (dst<m_rep.size()) result.resize(dst);
267  return QCString(result);
268  }

引用了 m_rep, QCString() , 以及 qisspace().

◆ replace()

QCString & QCString::replace ( size_t  index,
size_t  len,
const char *  s 
)

在文件 qcstring.cpp207 行定义.

208 {
209  remove( index, len );
210  insert( index, s );
211  return *this;
212 }

引用了 insert() , 以及 remove().

被这些函数引用 VhdlDocGen::convertFileNameToClassName(), VhdlDocGen::formatString(), version(), writeClassTreeInsideNamespaceElement(), writeNamespaceIndex() , 以及 writeNamespaceTreeElement().

◆ resize()

bool QCString::resize ( size_t  newlen)
inline

◆ right()

QCString QCString::right ( size_t  len) const
inline

在文件 qcstring.h217 行定义.

218  {
219  return m_rep.empty() ? QCString() :
220  len<m_rep.size() ? QCString(m_rep.substr(m_rep.size()-len,len)) :
221  *this;
222  }

引用了 m_rep , 以及 QCString().

被这些函数引用 MemberDefImpl::_writeReimplements(), VhdlDocGen::addBaseClass(), VHDLOutlineParser::addCompInst(), addEnumValuesToEnums(), DocSets::addIndexItem(), addRelatedPage(), addTemplateNames(), ClassDefImpl::addTypeConstraints(), buildFileName(), DocParser::checkArgumentName(), checkExtension(), DocParser::checkUnOrMultipleDocumentedParams(), computeClassRelations(), computeCommonDirPrefix(), DotFilePatcher::convertMapFile(), MemberList::countEnumValues(), createTagLessInstance(), MemberDefImpl::detectUndocumentedParams(), FilterListSort::determineSortKey(), DocInternalRef::DocInternalRef(), DocLink::DocLink(), TagFileParser::endDocAnchor(), LayoutParser::endElement(), expandAliasRec(), DocInclude::extension(), extractCanonicalType(), extractNamespaceName(), filterMemberDocumentation(), DocParser::findAndCopyImage(), findClassRelation(), DocParser::findDocsForMemberOrCompound(), findEnumDocumentation(), findEnums(), findFileDef(), findMember(), findScopeFromQualifiedName(), findUsedClassesForClass(), findUsingDeclImports(), findUsingDirectives(), generateDiskNames(), CitationManager::generatePage(), PerlModGenerator::generatePerlModForMember(), PlantumlManager::generatePlantUMLOutput(), getCanonicalTemplateSpec(), getDefs(), getFileFilter(), getParserForFile(), getScopeDefs(), guessSection(), MemberDefImpl::IMPL::init(), insertTemplateSpecifierInScope(), isConstraintFile(), FileDefImpl::isDocumentationFile(), DotFilePatcher::isSVGFile(), isVarWithConstructor(), DiagramItem::label(), CitationManager::latexBibFiles(), linkToText(), makeDisplayName(), matchArgument2(), mergeArguments(), mergeScopes(), DefinitionImpl::navigationPathAsString(), SymbolResolver::Private::newResolveTypedef(), VHDLOutlineParser::oneLineComment(), DocDotFile::parse(), DocMscFile::parse(), DocDiaFile::parse(), DocLink::parse(), parseFile(), processTagLessClasses(), readAliases(), readTagFile(), TemplateNodeCreate::render(), replaceAliasArguments(), replaceNamespaceAliases(), resolveRef(), resolveTypeDef(), rightScopeMatch(), DotFilePatcher::run(), searchTemplateSpecs(), MemberList::setAnonymousEnumType(), showFileDefMatches(), simplifyTypeForTable(), DocbookDocVisitor::startDiaFile(), LatexDocVisitor::startDiaFile(), DocbookDocVisitor::startDotFile(), LatexDocVisitor::startDotFile(), ManGenerator::startDoxyAnchor(), RTFGenerator::startFile(), LatexGenerator::startFile(), DocbookGenerator::startFile(), DocbookDocVisitor::startMscFile(), LatexDocVisitor::startMscFile(), stripAnonymousNamespaceScope(), stripExtensionGeneral(), stripFromPath(), stripIrrelevantString(), stripKnownExtensions(), stripScope(), stripTemplateSpecifiersFromScope(), stripWord(), tempArgListToString(), TemplateNodeMarkers::TemplateNodeMarkers(), TemplateNodeRange::TemplateNodeRange(), trimBaseClassScope(), DocbookDocVisitor::visit(), DocbookDocVisitor::visitPost(), HtmlDocVisitor::visitPre(), RTFDocVisitor::visitPre(), DocbookDocVisitor::visitPre(), LatexDocVisitor::visitPre(), PerlModDocVisitor::visitPre(), DotNode::writeBox(), MemberDefImpl::writeDeclaration(), FileDefImpl::writeDetailedDescription(), HtmlDocVisitor::writeDiaFile(), DocbookDocVisitor::writeDiaFile(), RTFDocVisitor::writeDiaFile(), LatexDocVisitor::writeDiaFile(), HtmlDocVisitor::writeDotFile(), RTFDocVisitor::writeDotFile(), DocbookDocVisitor::writeDotFile(), MemberDefImpl::writeEnumDeclaration(), HtmlGenerator::writeExternalSearchPage(), HtmlHelpIndex::writeFields(), ClassDefImpl::writeIncludeFilesForSlice(), DocbookDocVisitor::writeMscFile(), HtmlDocVisitor::writeMscFile(), RTFDocVisitor::writeMscFile(), LatexDocVisitor::writeMscFile(), HtmlDocVisitor::writePlantUMLFile(), DocbookDocVisitor::writePlantUMLFile(), RTFDocVisitor::writePlantUMLFile(), LatexDocVisitor::writePlantUMLFile(), PlantumlManager::writePlantUMLSource(), DefinitionImpl::writeSourceDef(), DocSets::writeToken() , 以及 HtmlEntityMapper::writeXMLSchema().

◆ setNum() [1/6]

QCString& QCString::setNum ( int  n)
inline

在文件 qcstring.h384 行定义.

385  {
386  m_rep = std::to_string(n);
387  return *this;
388  }

引用了 m_rep.

◆ setNum() [2/6]

QCString& QCString::setNum ( long  n)
inline

在文件 qcstring.h396 行定义.

397  {
398  m_rep = std::to_string(n);
399  return *this;
400  }

引用了 m_rep.

◆ setNum() [3/6]

◆ setNum() [4/6]

QCString& QCString::setNum ( uint  n)
inline

在文件 qcstring.h390 行定义.

391  {
392  m_rep = std::to_string(n);
393  return *this;
394  }

引用了 m_rep.

◆ setNum() [5/6]

QCString& QCString::setNum ( ulong  n)
inline

在文件 qcstring.h402 行定义.

403  {
404  m_rep = std::to_string(n);
405  return *this;
406  }

引用了 m_rep.

◆ setNum() [6/6]

QCString& QCString::setNum ( ushort  n)
inline

在文件 qcstring.h378 行定义.

379  {
380  m_rep = std::to_string(n);
381  return *this;
382  }

引用了 m_rep.

◆ simplifyWhiteSpace()

QCString QCString::simplifyWhiteSpace ( ) const

return a copy of this string with leading and trailing whitespace removed and multiple whitespace characters replaced by a single space

在文件 qcstring.cpp180 行定义.

181 {
182  if ( isEmpty() ) // nothing to do
183  return *this;
184 
185  QCString result( length()+1 );
186  const char *from = data();
187  char *to = result.rawData();
188  char *first = to;
189  while ( TRUE )
190  {
191  while ( *from && qisspace(*from) )
192  from++;
193  while ( *from && !qisspace(*from) )
194  *to++ = *from++;
195  if ( *from )
196  *to++ = 0x20; // ' '
197  else
198  break;
199  }
200  if ( to > first && *(to-1) == 0x20 )
201  to--;
202  *to = '\0';
203  result.resize( (int)(to - result.data()) + 1 );
204  return result;
205 }

引用了 data(), isEmpty(), length(), qisspace(), rawData(), resize() , 以及 TRUE.

被这些函数引用 DefinitionImpl::_docsAlreadyAdded(), VHDLOutlineParser::checkInlineCode(), findAndRemoveWord(), Markdown::processLink(), MemberDefImpl::setBitfields(), MemberDefImpl::writeDeclaration(), MemberDefImpl::writeDocumentation() , 以及 FlowChart::writeFlowLinks().

◆ size()

uint QCString::size ( ) const
inline

Returns the length of the string, not counting the 0-terminator.

在文件 qcstring.h150 行定义.

150 { return (uint)m_rep.size(); }

引用了 m_rep.

被这些函数引用 Markdown::extractPageTitle(), DocParser::findDocsForMemberOrCompound(), findGlobalMember(), generateDEF(), isExplicitPage(), QCString(), searchInputFiles() , 以及 writeTable().

◆ sprintf()

QCString & QCString::sprintf ( const char *  format,
  ... 
)

在文件 qcstring.cpp24 行定义.

25 {
26  va_list ap;
27  va_start( ap, format );
28  const int minlen=256;
29  int l = length();
30  if (l<minlen) { resize(minlen); l=minlen; }
31  int n=vsnprintf( rawData(), l, format, ap);
32  if (n<0) n=l;
33  resize(n+1);
34  va_end( ap );
35  return *this;
36 }

引用了 length(), rawData() , 以及 resize().

被这些函数引用 addDependencies(), addIncludeFile(), FilterHex::apply(), buildFileList(), DocParser::checkArgumentName(), clearSubDirs(), convertNameToFile(), createSubDirs(), dateToRTFDateString(), DocFormula::DocFormula(), encodeForOutput(), expandAliasRec(), extractTitleId(), DocParser::findAndCopyImage(), FormulaManager::generateImages(), generateOutput(), DotGfxHierarchyTable::getBaseName(), parseInput(), runPlantumlContent(), LayoutParser::startNavEntry(), RTFGenerator::startSection(), TranslatorDanish::trDateTime(), TranslatorChinese::trDateTime(), TranslatorPersian::trDateTime(), TranslatorEsperanto::trDateTime(), TranslatorDutch::trFileIn(), TranslatorBrazilian::trGlobalNamespace(), TranslatorCroatian::trIncludesFileIn(), TranslatorArmenian::trIncludesFileIn(), TranslatorSlovak::trIncludesFileIn(), TranslatorRussian::trIncludesFileIn(), TranslatorUkrainian::trIncludesFileIn(), TranslatorIndonesian::trIncludesFileIn(), TranslatorChinesetraditional::trIncludesFileIn(), TranslatorTurkish::trIncludesFileIn(), TranslatorJapanese::trIncludesFileIn(), TranslatorCatalan::trIncludesFileIn(), TranslatorLatvian::trIncludesFileIn(), TranslatorEnglish::trIncludesFileIn(), TranslatorRomanian::trIncludesFileIn(), TranslatorGreek::trIncludesFileIn(), TranslatorKorean::trIncludesFileIn(), TranslatorHungarian::trIncludesFileIn(), TranslatorSpanish::trIncludesFileIn(), TranslatorCzech::trIncludesFileIn(), TranslatorSwedish::trIncludesFileIn(), TranslatorPortuguese::trLoading(), TranslatorBrazilian::trSearching(), TranslatorItalian::trSubprogram(), TranslatorFrench::trTypeConstraints(), HtmlDocVisitor::visit(), DocbookDocVisitor::visit(), LatexDocVisitor::visit(), RTFDocVisitor::visit(), RTFDocVisitor::visitPre(), PerlModDocVisitor::visitPre(), writeDiaGraphFromFile(), ClassDiagram::writeFigure(), writeJavaScriptSearchIndex(), LatexCodeGenerator::writeLineNumber(), DocbookCodeGenerator::writeLineNumber(), RTFGenerator::writeLineNumber(), writeMscGraphFromFile(), Markdown::writeOneLineHeaderOrRuler() , 以及 DefinitionImpl::writeSourceDef().

◆ startsWith() [1/2]

bool QCString::startsWith ( const char *  s) const
inline

在文件 qcstring.h408 行定义.

409  {
410  if (m_rep.empty() || s==0) return s==0;
411  return m_rep.rfind(s,0)==0; // looking "backward" starting and ending at index 0
412  }

引用了 m_rep.

被这些函数引用 DocHtmlCell::alignment(), DocParser::findDocsForMemberOrCompound(), getCanonicalTypeForIdentifier(), DocPara::handleImage(), CitationManager::insertCrossReferencesForBibFile(), DocFormula::isInline(), DocSection::parse(), DocRoot::parse(), stripTrailingReturn(), RTFDocVisitor::visitPre() , 以及 DefinitionImpl::writeDocAnchorsToTagFile().

◆ startsWith() [2/2]

bool QCString::startsWith ( const QCString s) const
inline

在文件 qcstring.h414 行定义.

415  {
416  if (m_rep.empty() || s.isEmpty()) return s.isEmpty();
417  return m_rep.rfind(s.str(),0)==0; // looking "backward" starting and ending at index 0
418  }

引用了 isEmpty(), m_rep , 以及 str().

◆ str()

std::string QCString::str ( ) const
inline

在文件 qcstring.h442 行定义.

443  {
444  return m_rep;
445  }

引用了 m_rep.

被这些函数引用 DefinitionImpl::_setBriefDescription(), MemberDefImpl::_writeReimplementedBy(), DefinitionImpl::_writeSourceRefList(), SymbolResolver::Private::accessibleViaUsingNamespace(), LinkedMap< DirDef >::add(), LinkedRefMap< const ConceptDef >::add(), TemplateBlockContext::add(), UsesClassDef::addAccessor(), ConstraintClassDef::addAccessor(), VhdlDocGen::addBaseClass(), DotClassGraph::addClass(), addClassMemberNameToIndex(), addFileMemberNameToIndex(), DotGfxHierarchyTable::addHierarchy(), HtmlHelp::addImageFile(), FileDefImpl::addIncludedByDependency(), FileDefImpl::addIncludeDependency(), TemplateContextImpl::addIndexEntry(), HtmlHelp::addIndexFile(), DocSets::addIndexItem(), HtmlHelpIndex::addItem(), DotRunner::addJob(), addMemberToSearchIndex(), addNamespaceMemberNameToIndex(), VHDLOutlineParser::addProto(), DefinitionImpl::addSourceReferencedBy(), DefinitionImpl::addSourceReferences(), addToIndices(), VariableContext::addVariable(), addVariableToFile(), VHDLOutlineParser::addVhdlType(), SearchIndex::addWord(), FlowChart::alignCommentNode(), TemplateFilterFactory::apply(), DotInclDepGraph::buildGraph(), DotCallGraph::buildGraph(), buildListOfUsingDecls(), DocParser::checkArgumentName(), VHDLOutlineParser::checkInlineCode(), DocParser::checkRetvalName(), DocParser::checkUnOrMultipleDocumentedParams(), RTFGenerator::cleanup(), ManGenerator::cleanup(), HtmlGenerator::cleanup(), LatexGenerator::cleanup(), DocbookGenerator::cleanup(), clearSubDirs(), TemplateContextImpl::closeSubIndex(), computeTemplateClassRelations(), contains(), containsWord(), convertMapFile(), DotFilePatcher::convertMapFile(), convertNameToFile(), copyFile(), copyLogo(), ResourceMgr::copyResourceAs(), copyStyleSheet(), TemplateNodeFactory::create(), DotManager::createFilePatcher(), VHDLOutlineParser::createFunction(), createOutputDirectory(), PerlModGenerator::createOutputFile(), HtmlHelp::Private::createProjectFile(), DotManager::createRunner(), createSubDirs(), LinkedRefMap< const ConceptDef >::del(), deliverablesPresent(), determineInkscapeVersion(), FilterAlphaIndex::determineSortKey(), MemberDefImpl::displayDefinition(), DocEmoji::DocEmoji(), DotCallGraph::DotCallGraph(), DotClassGraph::DotClassGraph(), DotGroupCollaboration::DotGroupCollaboration(), DotInclDepGraph::DotInclDepGraph(), drawClusterOpening(), drawDirectory(), TagFileParser::endClass(), TagFileParser::endConcept(), TagFileParser::endDir(), LayoutParser::endElement(), TagFileParser::endElement(), TagFileParser::endEnumValue(), TagFileParser::endFile(), TagFileParser::endNamespace(), TagFileParser::endPage(), TagFileParser::endSubgroup(), endsWith(), TagFileParser::endTemplateArg(), escapeAliases(), CondParser::evalVariable(), ExistsOnPath(), expandAlias(), expandAliasRec(), externalRef(), DefinitionImpl::externalReference(), extractCanonicalType(), extractClassNameFromType(), extractDirection(), extractTitleId(), fileToString(), filterMemberDocumentation(), filterTitle(), Qhp::finalize(), EclipseHelp::finalize(), CitationManager::find(), SectionRefs::find(), find(), LinkedRefMap< const ConceptDef >::find(), DocParser::findAndCopyImage(), findAndRemoveWord(), VhdlDocGen::findArchitecture(), findBaseClassesForClass(), findClassEntries(), findClassRelation(), findFileDef(), VhdlDocGen::findKeyWord(), VhdlDocGen::findMemberDef(), findRev(), findTemplateInstanceRelation(), findUsedClassesForClass(), VariableContext::findVariable(), formatBriefNote(), generateDEF(), generateFileSources(), FormulaManager::generateImages(), generateJSNavTree(), generateJSTree(), generateOutput(), generateOutputViaTemplate(), CitationManager::generatePage(), PerlModGenerator::generatePerlModForPage(), generateTemplateFiles(), generateXML(), generateXMLForClass(), generateXMLForConcept(), generateXMLForDir(), generateXMLForFile(), generateXMLForGroup(), generateXMLForNamespace(), generateXMLForPage(), ResourceMgr::get(), PropertyMap< DefinitionContext< MemberContext::Private > >::get(), TemplateStruct::get(), ConfigContext::Private::get(), TemplateImmutableStruct::get(), ConfigImpl::get(), TemplateBlockContext::get(), MemberDefImpl::getClassDefOfAnonymousType(), getConvertLatexMacro(), Portable::getenv(), FilterCache::getFileContents(), getFilterFromList(), VhdlDocGen::getIndexWord(), getLanguageFromFileName(), HtmlHelp::getLanguageString(), getMscImageMapFromFile(), TemplateContextImpl::getRef(), SymbolResolver::Private::getResolvedClassRec(), getResolvedNamespace(), RTFDocVisitor::getStyle(), DocPara::handleCommand(), DocPara::handleImage(), DocPara::handleInclude(), DocParser::handleStyleArgument(), RTFGenerator::init(), ManGenerator::init(), HtmlGenerator::init(), LatexGenerator::init(), DocbookGenerator::init(), EclipseHelp::initialize(), HtmlHelp::initialize(), initUCF(), CitationManager::insert(), insert(), CitationManager::insertCrossReferencesForBibFile(), insertMapFile(), ClassDefImpl::internalInsertMember(), FileDefImpl::isIncluded(), isVarWithConstructor(), labelToEnumValue(), CitationManager::latexBibFiles(), linkifyText(), TemplateEngine::Private::loadByName(), loadExtensions(), Htags::loadFilemap(), loadStylesheet(), Mapper::map(), markdownFileNameToId(), matchExcludedSymbols(), TemplateNodeCreator< TemplateNodeBlock >::mkpath(), HtmlEntityMapper::name2sym(), SymbolResolver::Private::newResolveTypedef(), normalizeNonTemplateArgumentsInString(), openOutputFile(), TemplateContextImpl::openSubIndex(), operator+(), operator+=(), TextStream::operator<<(), operator<<(), operator=(), TemplateParser::parse(), parseFile(), VhdlDocGen::parseForBinding(), VhdlDocGen::parseForConfig(), MarkdownOutlineParser::parseInput(), parseInput(), VhdlDocGen::parseUCF(), Htags::path2URL(), patternMatch(), TemplateBlockContext::pop(), LinkedMap< DirDef >::prepend(), LinkedRefMap< const ConceptDef >::prepend(), preProcessFile(), RTFGenerator::preProcessFileInplace(), FlowChart::printNode(), Markdown::processLink(), TemplateBlockContext::push(), readAliases(), readConfiguration(), readFileOrDirectory(), FormulaManager::readFormulas(), readInputFile(), readSVGSize(), readTagFile(), DocParser::readTextFileByName(), ParserManager::registerExtension(), TemplateFilterFactory::registerFilter(), ParserManager::registerParser(), TemplateNodeFactory::registerTemplateNode(), TemplateStruct::remove(), TemplateNodeCreate::render(), TemplateNodeMarkers::render(), TemplateNodeResource::render(), replaceAnonymousScopes(), replaceColorMarkers(), replaceNamespaceAliases(), resetPDFSize(), resolveLink(), resolveSymlink(), RTFGenerator::rtf_BList_DepthStyle(), RTFGenerator::rtf_CList_DepthStyle(), RTFGenerator::rtf_Code_DepthStyle(), RTFGenerator::rtf_DList_DepthStyle(), RTFGenerator::rtf_EList_DepthStyle(), RTFGenerator::rtf_LCList_DepthStyle(), rtfFormatBmkStr(), DotFilePatcher::run(), runPlantumlContent(), sameMd5Signature(), searchId(), TemplateContextImpl::selectEscapeIntf(), TemplateStruct::set(), TemplateContextImpl::set(), SearchIndex::setCurrentDoc(), SearchIndexExternal::setCurrentDoc(), Portable::setenv(), TemplateContextImpl::setEscapeIntf(), simplifyTypeForTable(), ManGenerator::startDoxyAnchor(), LayoutParser::startElement(), TagFileParser::startElement(), RTFGenerator::startSection(), startsWith(), substitute(), substituteHtmlKeywords(), substituteLatexKeywords(), substituteTemplateArgumentsInString(), substituteTemplatesInString(), TemplateVariant::TemplateVariant(), toStdString(), Portable::unsetenv(), updateLanguageMapping(), HtmlDocVisitor::visit(), LatexDocVisitor::visit(), DocbookDocVisitor::visit(), RTFDocVisitor::visit(), ManDocVisitor::visit(), XmlDocVisitor::visit(), RTFDocVisitor::visitPre(), SearchIndex::write(), SearchIndexExternal::write(), writeAlphabeticalClassList(), DotNode::writeBox(), ResourceMgr::writeCategory(), writeCombineScript(), MemberDefImpl::writeDeclaration(), writeDiaGraphFromFile(), MemberDefImpl::writeDocumentation(), MemberList::writeDocumentationPage(), writeDotDirDepGraph(), writeDotGraphFromFile(), writeDotImageMapFromFile(), FlowChart::writeEdge(), writeExamples(), HtmlGenerator::writeExternalSearchPage(), ClassDiagram::writeFigure(), writeFileIndex(), FlowChart::writeFlowChart(), VhdlDocGen::writeFormatString(), DotGfxHierarchyTable::writeGraph(), DotGraph::writeGraph(), ClassDefImpl::writeInheritanceGraph(), VhdlDocGen::writeInlineClassLink(), writeJavaScriptSearchIndex(), writeLatexMakefile(), writeMakeBat(), ClassDefImpl::writeMemberList(), writeMenuData(), VhdlDocGen::writeOverview(), writePages(), VhdlDocGen::writePlainVHDLDeclarations(), PlantumlManager::writePlantUMLSource(), VhdlDocGen::writeRecUnitDocu(), HtmlGenerator::writeSearchData(), HtmlGenerator::writeSearchPage(), FlowChart::writeShape(), HtmlGenerator::writeStyleInfo() , 以及 writeTagFile().

◆ stripPrefix() [1/2]

bool QCString::stripPrefix ( const char *  prefix)
inline

在文件 qcstring.h207 行定义.

208  {
209  return stripPrefix(QCString(prefix));
210  }

引用了 QCString() , 以及 stripPrefix().

◆ stripPrefix() [2/2]

◆ stripWhiteSpace()

QCString QCString::stripWhiteSpace ( ) const
inline

returns a copy of this string with leading and trailing whitespace removed

在文件 qcstring.h243 行定义.

244  {
245  size_t sl = m_rep.size();
246  if (sl==0 || (!qisspace(m_rep[0]) && !qisspace(m_rep[sl-1]))) return *this;
247  size_t start=0,end=sl-1;
248  while (start<sl && qisspace(m_rep[start])) start++;
249  if (start==sl) return QCString(); // only whitespace
250  while (end>start && qisspace(m_rep[end])) end--;
251  return QCString(m_rep.substr(start,1+end-start));
252  }

引用了 end(), m_rep, QCString() , 以及 qisspace().

被这些函数引用 DefinitionImpl::_setBriefDescription(), abbreviate(), FileDefImpl::acquireFileVersion(), DocGroup::addDocs(), addIncludeFile(), addPerlModDocBlock(), addRelatedPage(), TemplateLexer::addToken(), ClassDefImpl::addTypeConstraints(), adjustConfiguration(), buildPageList(), DocParser::checkArgumentName(), DocParser::checkUnOrMultipleDocumentedParams(), compareString(), TagFileParser::endEnumValue(), extractCanonicalArgType(), extractCanonicalType(), findMainPage(), findMember(), VhdlDocGen::formatString(), getCanonicalTemplateSpec(), DocPara::handleCommand(), VHDLOutlineParser::handleFlowComment(), DocPara::handleImage(), DocPara::handleInclude(), initUCF(), CitationManager::insertCrossReferencesForBibFile(), ConfigString::isDefault(), ClassDefImpl::isExtension(), isURL(), Htags::loadFilemap(), mergeArguments(), DocGroup::open(), DocIndexEntry::parse(), parseCommentAsText(), VhdlDocGen::parseFuncProto(), MarkdownOutlineParser::parseInput(), VhdlDocGen::parseUCF(), VhdlDocGen::prepareComment(), FlowChart::printNode(), FlowChart::printPlantUmlNode(), Markdown::processLink(), readAliases(), readTagFile(), split(), stripIrrelevantString(), stripTrailingReturn(), substituteTemplateArgumentsInString(), Portable::system(), TemplateNodeCloseSubIndex::TemplateNodeCloseSubIndex(), TemplateNodeCreate::TemplateNodeCreate(), TemplateNodeOpenSubIndex::TemplateNodeOpenSubIndex(), TemplateNodeRange::TemplateNodeRange(), LayoutNavEntry::url(), MemberList::writeDeclarations(), writeExceptionList(), HtmlGenerator::writeExternalSearchPage(), VhdlDocGen::writeFunctionProto(), VhdlDocGen::writeVHDLTypeDocumentation() , 以及 writeXMLDocBlock().

◆ toInt()

int QCString::toInt ( bool *  ok = 0,
int  base = 10 
) const

◆ toLong()

long QCString::toLong ( bool *  ok = 0,
int  base = 10 
) const

在文件 qcstring.cpp255 行定义.

256 {
257  const char *p = data();
258  long val=0;
259  int l = length();
260  const long max_mult = INT_MAX / base;
261  bool is_ok = FALSE;
262  int neg = 0;
263  if ( !p )
264  goto bye;
265  while ( l && qisspace(*p) ) // skip leading space
266  l--,p++;
267  if ( l && *p == '-' ) {
268  l--;
269  p++;
270  neg = 1;
271  } else if ( *p == '+' ) {
272  l--;
273  p++;
274  }
275 
276  // NOTE: toULong() code is similar
277  if ( !l || !ok_in_base(*p,base) )
278  goto bye;
279  while ( l && ok_in_base(*p,base) ) {
280  l--;
281  int dv;
282  if ( *p>='0' && *p<='9' ) {
283  dv = *p-'0';
284  } else {
285  if ( *p >= 'a' && *p <= 'z' )
286  dv = *p - 'a' + 10;
287  else
288  dv = *p - 'A' + 10;
289  }
290  if ( val > max_mult || (val == max_mult && dv > (INT_MAX%base)+neg) )
291  goto bye;
292  val = base*val + dv;
293  p++;
294  }
295  if ( neg )
296  val = -val;
297  while ( l && qisspace(*p) ) // skip trailing space
298  l--,p++;
299  if ( !l )
300  is_ok = TRUE;
301 bye:
302  if ( ok )
303  *ok = is_ok;
304  return is_ok ? val : 0;
305 }

引用了 data(), FALSE, length(), ok_in_base(), qisspace() , 以及 TRUE.

被这些函数引用 toInt() , 以及 toShort().

◆ toShort()

short QCString::toShort ( bool *  ok = 0,
int  base = 10 
) const

在文件 qcstring.cpp224 行定义.

225 {
226  long v = toLong( ok, base );
227  if ( ok && *ok && (v < -32768 || v > 32767) ) {
228  *ok = FALSE;
229  v = 0;
230  }
231  return (short)v;
232 }

引用了 FALSE , 以及 toLong().

◆ toUInt()

uint QCString::toUInt ( bool *  ok = 0,
int  base = 10 
) const

在文件 qcstring.cpp249 行定义.

250 {
251  return (uint)toULong( ok, base );
252 }

引用了 toULong().

◆ toUInt64()

uint64 QCString::toUInt64 ( bool *  ok = 0,
int  base = 10 
) const

在文件 qcstring.cpp351 行定义.

352 {
353  const char *p = data();
354  uint64 val=0;
355  int l = length();
356  const uint64 max_mult = 1844674407370955161ULL; // ULLONG_MAX/10, rounded down
357  bool is_ok = FALSE;
358  if ( !p )
359  goto bye;
360  while ( l && qisspace(*p) ) // skip leading space
361  l--,p++;
362  if ( *p == '+' )
363  l--,p++;
364 
365  // NOTE: toULong() code is similar
366  if ( !l || !ok_in_base(*p,base) )
367  goto bye;
368  while ( l && ok_in_base(*p,base) ) {
369  l--;
370  uint dv;
371  if ( *p>='0' && *p<='9' ) {
372  dv = *p-'0';
373  } else {
374  if ( *p >= 'a' && *p <= 'z' )
375  dv = *p - 'a' + 10;
376  else
377  dv = *p - 'A' + 10;
378  }
379  if ( val > max_mult || (val == max_mult && dv > (ULLONG_MAX%base)) )
380  goto bye;
381  val = base*val + dv;
382  p++;
383  }
384 
385  while ( l && qisspace(*p) ) // skip trailing space
386  l--,p++;
387  if ( !l )
388  is_ok = TRUE;
389 bye:
390  if ( ok )
391  *ok = is_ok;
392  return is_ok ? val : 0;
393 }

引用了 data(), FALSE, length(), ok_in_base(), qisspace() , 以及 TRUE.

被这些函数引用 getCurrentDateTime().

◆ toULong()

ulong QCString::toULong ( bool *  ok = 0,
int  base = 10 
) const

在文件 qcstring.cpp307 行定义.

308 {
309  const char *p = data();
310  ulong val=0;
311  int l = length();
312  const ulong max_mult = 429496729; // UINT_MAX/10, rounded down
313  bool is_ok = FALSE;
314  if ( !p )
315  goto bye;
316  while ( l && qisspace(*p) ) // skip leading space
317  l--,p++;
318  if ( *p == '+' )
319  l--,p++;
320 
321  // NOTE: toLong() code is similar
322  if ( !l || !ok_in_base(*p,base) )
323  goto bye;
324  while ( l && ok_in_base(*p,base) ) {
325  l--;
326  uint dv;
327  if ( *p>='0' && *p<='9' ) {
328  dv = *p-'0';
329  } else {
330  if ( *p >= 'a' && *p <= 'z' )
331  dv = *p - 'a' + 10;
332  else
333  dv = *p - 'A' + 10;
334  }
335  if ( val > max_mult || (val == max_mult && dv > (UINT_MAX%base)) )
336  goto bye;
337  val = base*val + dv;
338  p++;
339  }
340 
341  while ( l && qisspace(*p) ) // skip trailing space
342  l--,p++;
343  if ( !l )
344  is_ok = TRUE;
345 bye:
346  if ( ok )
347  *ok = is_ok;
348  return is_ok ? val : 0;
349 }

引用了 data(), FALSE, length(), ok_in_base(), qisspace() , 以及 TRUE.

被这些函数引用 toUInt() , 以及 toUShort().

◆ toUShort()

ushort QCString::toUShort ( bool *  ok = 0,
int  base = 10 
) const

在文件 qcstring.cpp234 行定义.

235 {
236  ulong v = toULong( ok, base );
237  if ( ok && *ok && (v > 65535) ) {
238  *ok = FALSE;
239  v = 0;
240  }
241  return (ushort)v;
242 }

引用了 FALSE , 以及 toULong().

◆ truncate()

bool QCString::truncate ( size_t  pos)
inline

Truncates the string at position pos.

在文件 qcstring.h167 行定义.

167 { return resize( pos + 1 ); }

引用了 resize().

被这些函数引用 readCodeFragment().

◆ upper()

QCString QCString::upper ( ) const
inline

在文件 qcstring.h237 行定义.

238  {
240  }

引用了 convertUTF8ToUpper(), m_rep , 以及 QCString().

被这些函数引用 FilterUpper::apply() , 以及 VhdlDocGen::findMember().

类成员变量说明

◆ m_rep


该类的文档由以下文件生成:
QCString::QCString
QCString()=default
QCString::rawData
char * rawData()
Returns a writable pointer to the data.
Definition: qcstring.h:157
convertUTF8ToLower
std::string convertUTF8ToLower(const std::string &input)
Converts the input string into a lower case version, also taking into account non-ASCII characters th...
Definition: utf8.cpp:187
QCString::length
uint length() const
Returns the length of the string, not counting the 0-terminator.
Definition: qcstring.h:147
QCString::isEmpty
bool isEmpty() const
Returns TRUE iff the string is empty
Definition: qcstring.h:144
QCString::size
uint size() const
Returns the length of the string, not counting the 0-terminator.
Definition: qcstring.h:150
QCString::str
std::string str() const
Definition: qcstring.h:442
QCString::find
int find(char c, int index=0, bool cs=TRUE) const
Definition: qcstring.cpp:38
qstrncmp
int qstrncmp(const char *str1, const char *str2, size_t len)
Definition: qcstring.h:91
end
DirIterator end(const DirIterator &) noexcept
Definition: dir.cpp:128
QCString::operator+=
QCString & operator+=(const QCString &s)
Definition: qcstring.h:447
uint
unsigned uint
Definition: qcstring.h:40
QCString::insert
QCString & insert(size_t index, const QCString &s)
Definition: qcstring.h:274
ulong
unsigned long ulong
Definition: qcstring.h:41
qstrnicmp
int qstrnicmp(const char *str1, const char *str2, size_t len)
Definition: qcstring.cpp:447
TRUE
#define TRUE
Definition: qcstring.h:36
ushort
unsigned short ushort
Definition: qcstring.h:39
QCString::toULong
ulong toULong(bool *ok=0, int base=10) const
Definition: qcstring.cpp:307
QCString::m_rep
std::string m_rep
Definition: qcstring.h:499
QCString::toLong
long toLong(bool *ok=0, int base=10) const
Definition: qcstring.cpp:255
QCString::remove
QCString & remove(size_t index, size_t len)
Definition: qcstring.h:354
qisspace
bool qisspace(char c)
Definition: qcstring.h:97
QCString::data
const char * data() const
Returns a pointer to the contents of the string in the form of a 0-terminated C string
Definition: qcstring.h:153
convertUTF8ToUpper
std::string convertUTF8ToUpper(const std::string &input)
Converts the input string into a upper case version, also taking into account non-ASCII characters th...
Definition: utf8.cpp:192
QCString::stripPrefix
bool stripPrefix(const QCString &prefix)
Definition: qcstring.h:197
uint64
uint64_t uint64
Definition: qcstring.h:43
QCString::resize
bool resize(size_t newlen)
Resizes the string to hold newlen characters (this value should also count the 0-terminator).
Definition: qcstring.h:164
qstrlen
uint qstrlen(const char *str)
Definition: qcstring.h:65
FALSE
#define FALSE
Definition: qcstring.h:33
ok_in_base
static bool ok_in_base(char c, int base)
Definition: qcstring.cpp:214
QCString
This is an alternative implementation of QCString.
Definition: qcstring.h:108