Doxygen
Loading...
Searching...
No Matches
qcstring.h File Reference
#include <string>
#include <string_view>
#include <algorithm>
#include <cctype>
#include <cstring>
#include <cstdio>
#include <cstdlib>
#include <cstdint>
#include <ostream>
#include "utf8.h"
Include dependency graph for qcstring.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  QCString
 This is an alternative implementation of QCString. More...

Macros

#define FALSE   false
#define TRUE   true
#define ASSERT(x)
#define qsnprintf   snprintf
#define HAS_IMPLICIT_CAST_TO_PLAIN_C_STRING   0
#define HAS_CHARACTER_APPEND_OPERATOR   1

Typedefs

using JavaCCString = std::basic_string<JAVACC_CHAR_TYPE>

Functions

void * qmemmove (void *dst, const void *src, size_t len)
char * qstrdup (const char *s)
void qstrfree (const char *s)
 Frees the memory allocated using qstrdup().
uint32_t qstrlen (const char *str)
 Returns the length of string str, or 0 if a null pointer is passed.
char * qstrcpy (char *dst, const char *src)
char * qstrncpy (char *dst, const char *src, size_t len)
bool qisempty (const char *s)
int qstrcmp (const char *str1, const char *str2)
int qstrncmp (const char *str1, const char *str2, size_t len)
bool qisspace (char c)
int qstricmp (const char *str1, const char *str2)
int qstricmp_sort (const char *str1, const char *str2)
int qstrnicmp (const char *str1, const char *str2, size_t len)
bool operator== (const QCString &s1, const QCString &s2)
bool operator== (const QCString &s1, const char *s2)
bool operator== (const char *s1, const QCString &s2)
bool operator!= (const QCString &s1, const QCString &s2)
bool operator!= (const QCString &s1, const char *s2)
bool operator!= (const char *s1, const QCString &s2)
bool operator< (const QCString &s1, const QCString &s2)
bool operator< (const QCString &s1, const char *s2)
bool operator< (const char *s1, const QCString &s2)
bool operator<= (const QCString &s1, const char *s2)
bool operator<= (const char *s1, const QCString &s2)
bool operator> (const QCString &s1, const char *s2)
bool operator> (const char *s1, const QCString &s2)
bool operator>= (const QCString &s1, const char *s2)
bool operator>= (const char *s1, const QCString &s2)
QCString operator+ (const QCString &s1, const QCString &s2)
QCString operator+ (const QCString &s1, const char *s2)
QCString operator+ (const char *s1, const QCString &s2)
const char * qPrint (const char *s)
const char * qPrint (const QCString &s)
const char * qPrint (const std::string &s)
std::string toStdString (const QCString &s)
int qstrcmp (const QCString &str1, const char *str2)
int qstrcmp (const char *str1, const QCString &str2)
int qstrcmp (const QCString &str1, const QCString &str2)
int qstricmp (const QCString &str1, const char *str2)
int qstricmp (const char *str1, const QCString &str2)
int qstricmp (const QCString &str1, const QCString &str2)
int qstricmp_sort (const QCString &str1, const char *str2)
int qstricmp_sort (const char *str1, const QCString &str2)
int qstricmp_sort (const QCString &str1, const QCString &str2)
int qstrnicmp (const QCString &str1, const char *str2, size_t len)
int qstrnicmp (const char *str1, const QCString &str2, size_t len)
int qstrnicmp (const QCString &str1, const QCString &str2, size_t len)
QCString substitute (const QCString &str, const QCString &find, const QCString &replace)
 substitute all occurrences of src in s by dst
QCString substitute (const QCString &str, const char *find, const char *replace)
QCString substitute (const QCString &s, const QCString &src, const QCString &dst, int skip_seq)
 substitute all occurrences of src in s by dst, but skip each consecutive sequence of src where the number consecutive src matches skip_seq; if skip_seq is negative, skip any number of consecutive src
QCString substitute (const QCString &s, char srcChar, char dstChar)
std::ostream & operator<< (std::ostream &os, const QCString &s)

Macro Definition Documentation

◆ ASSERT

#define ASSERT ( x)
Value:
if ( !(x) )\
fprintf(stderr,"ASSERT: \"%s\" in %s (%d)\n",#x,__FILE__,__LINE__)

Definition at line 39 of file qcstring.h.

39#define ASSERT(x) if ( !(x) )\
40 fprintf(stderr,"ASSERT: \"%s\" in %s (%d)\n",#x,__FILE__,__LINE__)

Referenced by anonymous_namespace{tagreader.cpp}::TagFileParser::addIncludes(), addMembersToMemberGroup(), RTFGenerator::beginRTFDocument(), DirDefImpl::createNewDir(), FTVHelp::decContentsDepth(), DocCite::DocCite(), DocRef::DocRef(), DotInclDepGraph::DotInclDepGraph(), HtmlGenerator::endSection(), ManGenerator::endSection(), generateDEFForMember(), generateXMLForClass(), generateXMLForMember(), DotClassGraph::getBaseName(), DotClassGraph::getImgAltText(), RTFDocVisitor::getListTable(), DotClassGraph::getMapLabel(), DefinitionImpl::getSourceFileBase(), DocPara::handleHtmlEndTag(), DocPara::handleHtmlStartTag(), DocPara::handleXRefItem(), MemberDefImpl::isConstructor(), MemberDefImpl::isDestructor(), MemberDefImpl::isLinkableInProject(), matchArguments2(), MemberList::numDecMembers(), MemberList::numDocMembers(), DocbookDocVisitor::operator()(), HtmlDocVisitor::operator()(), LatexDocVisitor::operator()(), ManDocVisitor::operator()(), RTFDocVisitor::operator()(), XmlDocVisitor::operator()(), DocXRefItem::parse(), parseFilesMultiThreading(), parseFilesSingleThreading(), resolveRef(), setDotFontPath(), setOutput(), HtmlGenerator::startSection(), LatexGenerator::startSection(), ManGenerator::startSection(), RTFGenerator::startSection(), MemberDefImpl::writeDeclaration(), DotNode::writeDEF(), DotNode::writeDocbook(), writeMemberList(), writeObjCMethodCall(), VhdlDocGen::writeVHDLDeclaration(), and DotNode::writeXML().

◆ FALSE

#define FALSE   false

Definition at line 34 of file qcstring.h.

Referenced by DefinitionImpl::_docsAlreadyAdded(), MemberDefImpl::_hasVisibleCallerGraph(), MemberDefImpl::_hasVisibleCallGraph(), DefinitionImpl::_setBriefDescription(), MemberDefImpl::_writeCallGraph(), MemberDefImpl::_writeEnumValues(), MemberDefImpl::_writeMultiLineInitializer(), MemberDefImpl::_writeTemplatePrefix(), DotClassGraph::addClass(), GroupDefImpl::addClass(), addClassToContext(), GroupDefImpl::addConcept(), FTVHelp::addContentsItem(), IndexList::addContentsItem(), addIncludeFile(), HtmlHelp::addIndexItem(), VHDLOutlineParser::addLibUseClause(), addMemberFunction(), addMembersToIndex(), addMemberToGroups(), addPerlModDocBlock(), addRelatedPage(), addRelatedPage(), addToIndices(), addToSearchIndex(), addToSearchIndex(), addToSearchIndex(), ClassDefImpl::addUsedInterfaceClasses(), DirDefImpl::addUsesDependency(), addVariable(), addVariableToClass(), addVariableToFile(), SearchIndex::addWord(), SearchIndex::addWordRec(), DocSimpleSect::appendLinkWord(), Definition::briefDescription(), DefinitionAliasMixin< Base >::briefDescription(), DefinitionMixin< Base >::briefDescription(), buildDefineList(), buildExampleList(), buildFileList(), buildFunctionList(), DotCallGraph::buildGraph(), DotClassGraph::buildGraph(), DotInclDepGraph::buildGraph(), buildGroupList(), buildGroupListFiltered(), buildNamespaceList(), CharAroundSpace::CharAroundSpace(), Config::checkAndCorrect(), checkAndOpenFile(), DocParser::checkArgumentName(), checkConfiguration(), checkForKnRstyleC(), checkIfTypedef(), DocParser::checkUnOrMultipleDocumentedParams(), ClassDefImpl::ClassDefImpl(), classHasVisibleChildren(), DotNode::clearWriteFlag(), EclipseHelp::Private::closedTag(), XMLCodeGenerator::codify(), codifyLines(), codifyLines(), codifyLines(), FlowChart::colTextNodes(), Config::compareDoxyfile(), computeClassRelations(), computeCommonDirPrefix(), computeExpression(), TreeDiagram::computeExtremes(), DotGraph::computeGraph(), computeIndentExcludingListMarkers(), computeTemplateClassRelations(), DotCallGraph::computeTheGraph(), DotGfxHierarchyTable::computeTheGraph(), DotGroupCollaboration::computeTheGraph(), DotInclDepGraph::computeTheGraph(), VhdlDocGen::convertArgumentListToString(), convertCppComments(), DotFilePatcher::convertMapFile(), convertToId(), ResourceMgr::copyResourceAs(), ClassDefImpl::countAdditionalInheritedMembers(), ClassDefImpl::countInheritedDecMembers(), DotGfxHierarchyTable::createGraph(), MemberList::declVisible(), DocParser::defaultHandleToken(), DefinitionImpl::DefinitionImpl(), VhdlDocGen::deleteAllChars(), VhdlDocGen::deleteCharRev(), determineIfNeedsTag(), DotCallGraph::determineTruncatedNodes(), DotClassGraph::determineTruncatedNodes(), DotInclDepGraph::determineTruncatedNodes(), DotClassGraph::determineVisibleNodes(), dirHasVisibleChildren(), IndexList::disable(), DocAnchor::DocAnchor(), DocCite::DocCite(), DocHtmlCaption::DocHtmlCaption(), HtmlGenerator::docify(), ManGenerator::docify(), RTFGenerator::docify(), DocIncOperator::DocIncOperator(), DocPara::DocPara(), DocParamSect::DocParamSect(), DocRef::DocRef(), DotCallGraph::DotCallGraph(), DotClassGraph::DotClassGraph(), DotGfxHierarchyTable::DotGfxHierarchyTable(), DotGraph::DotGraph(), TreeDiagram::drawBoxes(), TreeDiagram::drawConnectors(), dupOfParent(), elemIsVisible(), encodeForOutput(), ManGenerator::endAnonTypeScope(), ManGenerator::endBold(), ManGenerator::endBoldEmphasis(), endBrief(), DocbookGenerator::endCallGraph(), RTFGenerator::endCallGraph(), DocbookGenerator::endClassDiagram(), RTFGenerator::endClassDiagram(), DocbookCodeGenerator::endCodeLine(), HtmlCodeGenerator::endCodeLine(), LatexCodeGenerator::endCodeLine(), XMLCodeGenerator::endCodeLine(), endCondSection(), endCondSection(), DocbookGenerator::endDescTable(), DocbookGenerator::endDirDepGraph(), RTFGenerator::endDirDepGraph(), DocbookGenerator::endDotGraph(), RTFGenerator::endDotGraph(), ManGenerator::endEmphasis(), RTFGenerator::endExamples(), DocbookGenerator::endFile(), DocbookCodeGenerator::endFontClass(), XMLCodeGenerator::endFontClass(), DocbookGenerator::endGroupCollaboration(), LatexGenerator::endGroupHeader(), ManGenerator::endGroupHeader(), DocbookGenerator::endInclDepGraph(), RTFGenerator::endInclDepGraph(), LatexGenerator::endIndexSection(), RTFGenerator::endIndexSection(), RTFGenerator::endIndexValue(), ManGenerator::endInlineHeader(), RTFDocVisitor::endLink(), ManGenerator::endMemberDescription(), LatexGenerator::endMemberDoc(), ClassDefImpl::endMemberDocumentation(), FileDefImpl::endMemberDocumentation(), GroupDefImpl::endMemberDocumentation(), ModuleDefImpl::endMemberDocumentation(), NamespaceDefImpl::endMemberDocumentation(), ManGenerator::endMemberGroup(), LatexGenerator::endMemberHeader(), ManGenerator::endMemberHeader(), RTFGenerator::endMemberHeader(), LatexGenerator::endMemberItem(), DocbookGenerator::endMemberList(), ManGenerator::endMemberList(), LayoutParser::endNavEntry(), endScope(), ManGenerator::endSection(), RTFGenerator::endSection(), DocbookGenerator::endTextBlock(), OutputGenIntf::endTextBlock(), OutputList::endTextBlock(), ManGenerator::endTitleHead(), ManGenerator::endTypewriter(), Entry::Entry(), escapeSpecialChars(), CondParser::evalOperator(), Htags::execute(), expandExpression(), extractBlock(), extractCopyDocId(), Markdown::extractPageTitle(), Portable::fileSystemIsCaseSensitive(), filterMemberDocumentation(), findArgument(), findAttribute(), findClassRelation(), findDefineDocumentation(), DocParser::findDocsForMemberOrCompound(), findEndOfTemplate(), findEnums(), findFileDef(), findGlobalMember(), GroupDefImpl::findGroup(), findInheritedTemplateInstances(), findMember(), findMemberLink(), FlowChart::findNode(), findObjCMethodDefinitions(), findScopeFromQualifiedName(), findTemplateInstanceRelation(), findUsedClassesForClass(), forceEndCondSection(), generateBriefDoc(), generateClassMemberLink(), generateClassMemberLink(), generateClassOrGlobalLink(), DotGraph::generateCode(), generateConfigFile(), generateDEFForMember(), generateExampleDocs(), generateJSNavTree(), generateJSTree(), FTVHelp::Private::generateLink(), generateOutput(), CitationManager::generatePage(), PerlModGenerator::generatePerlModForMember(), generateSqlite3(), generateSqlite3ForFile(), generateSqlite3ForMember(), generateXML(), generateXMLForFile(), generateXMLForMember(), genericPatternMatch(), getCanonicalTypeForIdentifier(), getCurrentDateTime(), getDefsOld(), getFileFilter(), getFilterFromList(), getFortranNamespaceDefs(), getFortranTypeDefs(), getGenericProcedureLink(), getLanguageFromFileName(), getLink(), getLink(), getLink(), getLinkInScope(), getLinkInScope(), DotClassGraph::getMapLabel(), DotDirDeps::getMapLabel(), DotGfxHierarchyTable::getMapLabel(), DotGroupCollaboration::getMapLabel(), DotInclDepGraph::getMapLabel(), getParagraphContext(), getScopeDefs(), getSQLDocBlock(), handleAddIndex(), DocParser::handleAHref(), DocParser::handleAnchor(), handleAnchor(), handleBrief(), handleBug(), handleCallergraph(), handleCallgraph(), handleCite(), handleCollaborationgraph(), DocPara::handleCommand(), handleCommentBlock(), handleCommentBlock(), handleCommentBlock(), VHDLOutlineParser::handleCommentBlock(), handleCopyBrief(), handleCopyDetails(), handleCopyDoc(), handleDeprecated(), handleDetails(), handleDirectoryGraph(), handleElse(), handleElseIf(), handleEndIf(), handleEndParBlock(), handleExtends(), handleFormatBlock(), handleGroupgraph(), handleHeaderFile(), handleHideCallergraph(), handleHideCallgraph(), handleHideCollaborationgraph(), handleHideDirectoryGraph(), handleHideEnumValues(), handleHideGroupgraph(), handleHideIncludedBygraph(), handleHideIncludegraph(), handleHideInheritanceGraph(), handleHideInitializer(), handleHideInlineSource(), handleHideReferencedByRelation(), handleHideReferencesRelation(), DocPara::handleHtmlEndTag(), DocPara::handleHtmlStartTag(), handleHtmlTag(), handleIf(), handleIFile(), handleIfNot(), handleILine(), handleImage(), DocParser::handleImg(), handleIncludedBygraph(), handleIncludegraph(), handleIngroup(), handleInherit(), handleInheritanceGraph(), handleInternal(), handleIPrefix(), handleIRaise(), handleLineInfo(), DocPara::handleLink(), DocParser::handleLinkedWord(), handleMemberOf(), handleNoop(), handleNoSubGrouping(), handleOverload(), handleParam(), handleParametersCommentBlocks(), DocPara::handleParamSection(), handleParBlock(), DocParser::handlePendingStyleCommands(), handlePrivate(), handlePrivateSection(), handleProtected(), handleProtectedSection(), handlePublic(), handlePublicSection(), handlePure(), handleQualifier(), handleRaiseWarning(), handleReferencedByRelation(), handleReferencesRelation(), handleRefItem(), handleRelated(), handleRelatedAlso(), handleRetval(), handleSection(), handleShowEnumValues(), handleShowInitializer(), handleShowInlineSource(), DocPara::handleSimpleSection(), DocPara::handleStartCode(), handleStatic(), DocParser::handleStyleLeave(), handleSubpage(), handleTest(), handleToc(), handleTodo(), handleXRefItem(), hasNonReferenceSuperClassRec(), DefinitionImpl::hasSections(), haveEqualFileNames(), PrintDocVisitor::indent(), DefinitionImpl::Private::init(), DocTokenizer::init(), MemberDefImpl::init(), initEntry(), initEntry(), VHDLOutlineParser::initEntry(), initParser(), initParser(), initParser(), initSpecialBlock(), initTriDoubleQuoteBlock(), initTriSingleQuoteBlock(), ClassDefImpl::insertBaseClass(), GroupDef::insertMember(), GroupDefImpl::insertMember(), MemberGroup::insertMember(), OutputGenIntf::insertMemberAlign(), OutputList::insertMemberAlign(), OutputGenIntf::insertMemberAlignLeft(), OutputList::insertMemberAlignLeft(), insertRefid(), ClassDefImpl::insertSubClass(), ClassDefImpl::insertTemplateInstance(), insideBlockQuote(), insideDetails(), insideDL(), insideLI(), insideOL(), insidePRE(), insideStyleChangeThatIsOutsideParagraph(), insideTable(), insideUL(), ClassDefImpl::internalInsertMember(), DocParser::internalValidatingParseDoc(), MemberDefImpl::invalidateTypedefValCache(), DefinitionMixin< Base >::isAlias(), isCastKeyword(), isClassSection(), isCodeBlock(), isCopyBriefOrDetailsCmd(), MemberDefImpl::isCSharpProperty(), isDocIncludeVisible(), isDocIncOperatorVisible(), isDocVerbatimVisible(), isFencedCodeBlock(), VHDLOutlineParser::isFuncProcProced(), DocHtmlRow::isHeading(), FileDefImpl::isIncluded(), MemberDefImpl::isObjCMethod(), MemberDefImpl::isObjCProperty(), DirDefImpl::isParentOf(), MemberDefImpl::isReimplementedBy(), isSeparatedParagraph(), isSpecialization(), ClassDefImpl::isSubClass(), VhdlDocGen::isSubClass(), isTableBlock(), DotCallGraph::isTrivial(), isVarWithConstructor(), LatexDocVisitor::LatexDocVisitor(), TreeDiagram::layoutTree(), linkifyText(), ManDocVisitor::ManDocVisitor(), VHDLOutlineParser::mapLibPackage(), matchArgument2(), matchArguments2(), matchExcludedSymbols(), DirDefImpl::matchPath(), MemberList::MemberList(), membersHaveSpecificType(), ClassDefImpl::mergeCategory(), ClassDefImpl::mergeMembersFromBaseClasses(), mergeScopes(), mustBeOutsideParagraph(), nameIsOperator(), MarkdownOutlineParser::needsPreprocessing(), NullOutlineParser::needsPreprocessing(), PythonOutlineParser::needsPreprocessing(), RTFGenerator::newParagraph(), SymbolResolver::Private::newResolveTypedef(), node2URL(), normalizeNonTemplateArgumentsInString(), EclipseHelp::Private::openedTag(), openOutputFile(), DocbookDocVisitor::operator()(), DocbookDocVisitor::operator()(), DocbookDocVisitor::operator()(), HtmlDocVisitor::operator()(), HtmlDocVisitor::operator()(), HtmlDocVisitor::operator()(), HtmlDocVisitor::operator()(), HtmlDocVisitor::operator()(), HtmlDocVisitor::operator()(), LatexDocVisitor::operator()(), LatexDocVisitor::operator()(), LatexDocVisitor::operator()(), LatexDocVisitor::operator()(), LatexDocVisitor::operator()(), LatexDocVisitor::operator()(), LatexDocVisitor::operator()(), ManDocVisitor::operator()(), ManDocVisitor::operator()(), ManDocVisitor::operator()(), ManDocVisitor::operator()(), ManDocVisitor::operator()(), ManDocVisitor::operator()(), ManDocVisitor::operator()(), ManDocVisitor::operator()(), ManDocVisitor::operator()(), ManDocVisitor::operator()(), ManDocVisitor::operator()(), ManDocVisitor::operator()(), PerlModDocVisitor::operator()(), PerlModDocVisitor::operator()(), RTFDocVisitor::operator()(), RTFDocVisitor::operator()(), RTFDocVisitor::operator()(), RTFDocVisitor::operator()(), RTFDocVisitor::operator()(), RTFDocVisitor::operator()(), RTFDocVisitor::operator()(), RTFDocVisitor::operator()(), RTFDocVisitor::operator()(), RTFDocVisitor::operator()(), RTFDocVisitor::operator()(), RTFDocVisitor::operator()(), RTFDocVisitor::operator()(), RTFDocVisitor::operator()(), RTFDocVisitor::operator()(), RTFDocVisitor::operator()(), RTFDocVisitor::operator()(), RTFDocVisitor::operator()(), RTFDocVisitor::operator()(), RTFDocVisitor::operator()(), RTFDocVisitor::operator()(), RTFDocVisitor::operator()(), RTFDocVisitor::operator()(), RTFDocVisitor::operator()(), RTFDocVisitor::operator()(), RTFDocVisitor::operator()(), XmlDocVisitor::operator()(), XmlDocVisitor::operator()(), XmlDocVisitor::operator()(), XmlDocVisitor::operator()(), XmlDocVisitor::operator()(), XmlDocVisitor::operator()(), XmlDocVisitor::operator()(), XmlDocVisitor::operator()(), XmlDocVisitor::operator()(), DefinitionImpl::operator=(), organizeSubGroups(), PageDefImpl::PageDefImpl(), DocAutoListItem::parse(), DocHtmlBlockQuote::parse(), DocHtmlCell::parse(), DocHtmlDescData::parse(), DocHtmlDescTitle::parse(), DocHtmlDetails::parse(), DocHtmlListItem::parse(), DocHtmlRow::parse(), DocIncOperator::parse(), DocInternal::parse(), DocLink::parse(), DocParBlock::parse(), DocRef::parse(), DocRoot::parse(), DocSection::parse(), DocSimpleSect::parse(), DocXRefItem::parse(), CCodeParser::parseCode(), CodeParserInterface::parseCode(), FortranCodeParser::parseCode(), PythonCodeParser::parseCode(), parseCommentAsText(), CommentScanner::parseCommentBlock(), parseCompounds(), DocTitle::parseFromString(), parseFuncDecl(), VhdlDocGen::parseFuncProto(), MarkdownOutlineParser::parseInput(), parseInput(), VHDLOutlineParser::parseInput(), CondParser::parseLevel3(), parseMain(), FortranOutlineParser::parsePrototype(), parsePrototype(), FileDefImpl::parseSource(), ConfigImpl::parseString(), CondParser::parseVar(), DocHtmlCell::parseXml(), DocHtmlListItem::parseXml(), DocHtmlRow::parseXml(), DocHtmlTable::parseXml(), DocParamList::parseXml(), PerlModDocVisitor::PerlModDocVisitor(), DocTokenizer::popContext(), DotGraph::prepareDotFile(), prepassFixedForm(), preProcessFile(), RTFGenerator::preProcessFileInplace(), Statistics::print(), PrintDocVisitor::PrintDocVisitor(), Preprocessor::processFile(), Markdown::Private::processHtmlTagWrite(), Markdown::Private::processLink(), quickLinkVisible(), quickLinkVisible(), readIncludeFile(), readInputFile(), readSVGSize(), recodeString(), recognizeFixedForm(), recursivelyAddGroupListToTitle(), RefList::RefList(), ParserManager::registerExtension(), removeIdsAndMarkers(), renderMemberIndicesAsJs(), renderQuickLinksAsJs(), replaceComment(), replaceFunctionMacro(), ArgumentList::reset(), FortranCodeParser::resetCodeParserState(), PythonCodeParser::resetCodeParserState(), resetPDFSize(), resolveClassNestingRelations(), resolveLink(), resolveRef(), DotFilePatcher::run(), DotManager::run(), DotRunner::run(), runQHelpGenerator(), scanner_abort(), scopeIsTemplate(), searchFoundClass(), searchFoundDef(), searchInputFiles(), setCurrentDoc(), setCurrentDoc(), setCurrentDoc(), DefinitionImpl::setDocumentation(), MemberDefMutable::setEnumScope(), GroupDefImpl::setGroupTitleLocal(), ClassDefImpl::showUsedFiles(), ClassDefMutable::sortAllMembersList(), ClassDefImpl::sortMemberLists(), FileDefImpl::sortMemberLists(), GroupDefImpl::sortMemberLists(), ModuleDefImpl::sortMemberLists(), NamespaceDefImpl::sortMemberLists(), ManGenerator::startBold(), ManGenerator::startBoldEmphasis(), startCodeLine(), startCodeLine(), startCodeLine(), ManGenerator::startCompoundTemplateParams(), ManGenerator::startConstraintList(), ManGenerator::startDescForItem(), ManGenerator::startDescTable(), DocbookGenerator::startDoxyAnchor(), ManGenerator::startEmphasis(), ManGenerator::startExamples(), DocbookGenerator::startGroupHeader(), ManGenerator::startGroupHeader(), LatexGenerator::startIndexSection(), RTFGenerator::startIndexSection(), HtmlGenerator::startInlineHeader(), ManGenerator::startItemListItem(), RTFDocVisitor::startLink(), HtmlGenerator::startMemberDescription(), ManGenerator::startMemberDescription(), ManGenerator::startMemberDoc(), HtmlGenerator::startMemberHeader(), HtmlGenerator::startMemberItem(), ManGenerator::startMemberItem(), ManGenerator::startMemberList(), HtmlGenerator::startMemberSubtitle(), LayoutParser::startNavEntry(), startQuickIndexItem(), startQuickIndexList(), OutputGenIntf::startTextBlock(), OutputList::startTextBlock(), ManGenerator::startTitle(), ManGenerator::startTypewriter(), stateToString(), stateToString(), step(), stringize(), stripIrrelevantString(), QCString::stripPrefix(), stripQualifiers(), stripScope(), stripWord(), substituteHtmlKeywords(), substituteTemplateArgumentsInString(), substituteTemplatesInString(), SymbolModifiers::SymbolModifiers(), Portable::system(), QCString::toLong(), QCString::toShort(), QCString::toUInt64(), QCString::toULong(), QCString::toUShort(), TranslatorCroatian::trGeneratedFromFiles(), tryAddEnumDocsToGroupMember(), updateLanguageMapping(), validatingParseDoc(), validatingParseText(), validatingParseTitle(), visitPostEnd(), visitPreStart(), visitPreStart(), DotGroupCollaboration::Edge::write(), DotNode::write(), ClassDefImpl::writeAdditionalInheritedMembers(), writeAlphabeticalExceptionIndex(), writeAlphabeticalIndex(), writeAlphabeticalInterfaceIndex(), writeAlphabeticalStructIndex(), writeAnnotatedClassList(), writeBitmapBox(), writeBoxMemberList(), ClassDefImpl::writeBriefDescription(), ConceptDefImpl::writeBriefDescription(), DirDefImpl::writeBriefDescription(), FileDefImpl::writeBriefDescription(), GroupDefImpl::writeBriefDescription(), ModuleDefImpl::writeBriefDescription(), NamespaceDefImpl::writeBriefDescription(), ResourceMgr::writeCategory(), ManGenerator::writeChar(), FileDefImpl::writeClassDeclarations(), ModuleDefImpl::writeClassDeclarations(), GroupDefImpl::writeClasses(), writeClassHierarchy(), writeClassMemberIndexFiltered(), writeClassTree(), writeClassTreeForList(), writeClassTreeInsideNamespaceElement(), writeClassTreeToOutput(), VhdlDocGen::writeClassType(), XMLCodeGenerator::writeCodeLink(), writeConceptIndex(), writeConceptList(), FileDefImpl::writeConcepts(), GroupDefImpl::writeConcepts(), ModuleDefImpl::writeConcepts(), writeConceptTreeInsideNamespaceElement(), ClassDefImpl::writeDeclaration(), ClassLinkedRefMap::writeDeclaration(), ConceptLinkedRefMap::writeDeclaration(), MemberDefImpl::writeDeclaration(), ModuleLinkedRefMap::writeDeclaration(), NamespaceLinkedRefMap::writeDeclaration(), ClassDefImpl::writeDeclarationLink(), ConceptDefImpl::writeDeclarationLink(), ModuleDefImpl::writeDeclarationLink(), MemberGroup::writeDeclarations(), MemberList::writeDeclarations(), writeDefArgumentList(), ConceptDefImpl::writeDetailedDescription(), DirDefImpl::writeDetailedDescription(), FileDefImpl::writeDetailedDescription(), GroupDefImpl::writeDetailedDescription(), ModuleDefImpl::writeDetailedDescription(), NamespaceDefImpl::writeDetailedDescription(), ClassDefImpl::writeDetailedDocumentationBody(), writeDiaGraphFromFile(), writeDirHierarchy(), GroupDefImpl::writeDirs(), writeDirTreeNode(), ManGenerator::writeDoc(), DotInclDepGraph::writeDocbook(), ClassLinkedRefMap::writeDocumentation(), GroupDefImpl::writeDocumentation(), MemberDefImpl::writeDocumentation(), MemberDefMutable::writeDocumentation(), PageDefImpl::writeDocumentation(), writeExampleIndex(), ModuleDefImpl::writeExports(), HtmlGenerator::writeExternalSearchPage(), HtmlHelpIndex::writeFields(), ClassDiagram::writeFigure(), DirDefImpl::writeFileList(), writeFileMemberIndexFiltered(), GroupDefImpl::writeFiles(), ModuleDefImpl::writeFiles(), VhdlDocGen::writeFuncProcDocu(), VhdlDocGen::writeFunctionProto(), DotLegendGraph::writeGraph(), writeGraphicalClassHierarchy(), writeGraphicalExceptionHierarchy(), writeGraphicalInterfaceHierarchy(), writeGraphInfo(), writeGroupTreeNode(), ClassDiagram::writeImage(), FileDefImpl::writeIncludeGraph(), writeIndex(), writeIndexHierarchyEntries(), ClassDefImpl::writeInheritanceGraph(), ClassDefImpl::writeInheritedMemberDeclarations(), HtmlGenerator::writeInheritedSectionTitle(), ManGenerator::writeInheritedSectionTitle(), DefinitionImpl::writeInlineCode(), ClassDefImpl::writeInlineDocumentation(), writeJavasScriptSearchDataPage(), DotNode::writeLabel(), MemberDef::writeLink(), MemberDefAliasImpl::writeLink(), ClassDef::writeMemberDeclarations(), ClassDefAliasImpl::writeMemberDeclarations(), ClassDefImpl::writeMemberDeclarations(), MemberDefImpl::writeMemberDocSimple(), ClassDefImpl::writeMemberDocumentation(), ClassDefImpl::writeMemberList(), writeMemberList(), writeMemberToIndex(), writeModuleIndex(), writeModuleMemberIndexFiltered(), GroupDefImpl::writeModules(), writeModuleTreeNode(), writeMultiLineCodeLink(), writeMultiLineCodeLink(), writeMultiLineCodeLink(), writeNamespaceIndex(), writeNamespaceMemberIndexFiltered(), writeNamespaceTreeElement(), PageDefImpl::writePageDocumentation(), MemberList::writePlainDeclarations(), VhdlDocGen::writePlainVHDLDeclarations(), VhdlDocGen::writeProcedureProto(), VhdlDocGen::writeProcessProto(), writeQuickMemberIndex(), VhdlDocGen::writeRecUnitDocu(), DocbookGenerator::writeRuler(), writeSingleFileIndex(), VhdlDocGen::writeSource(), FileDefImpl::writeSourceBody(), DefinitionImpl::writeSourceReffedBy(), ConfigOption::writeStringList(), DirDefImpl::writeSubDirList(), ClassDefImpl::writeSummaryLinks(), FileDefImpl::writeSummaryLinks(), GroupDefImpl::writeSummaryLinks(), ModuleDefImpl::writeSummaryLinks(), NamespaceDefImpl::writeSummaryLinks(), DotFilePatcher::writeSVGFigureLink(), ManGenerator::writeSynopsis(), Markdown::Private::writeTableBlock(), VhdlDocGen::writeTagFile(), ClassDefImpl::writeTemplateSpec(), DefinitionImpl::writeToc(), writeTopicIndex(), writeTypeConstraints(), DotFilePatcher::writeVecGfxFigure(), writeVectorBox(), VhdlDocGen::writeVHDLDeclaration(), VhdlDocGen::writeVHDLDeclarations(), VhdlDocGen::writeVhdlDeclarations(), VhdlDocGen::writeVHDLTypeDocumentation(), DotInclDepGraph::writeXML(), writeXMLCodeBlock(), writeXMLDocBlock(), and XmlDocVisitor::XmlDocVisitor().

◆ HAS_CHARACTER_APPEND_OPERATOR

#define HAS_CHARACTER_APPEND_OPERATOR   1

Definition at line 582 of file qcstring.h.

◆ HAS_IMPLICIT_CAST_TO_PLAIN_C_STRING

#define HAS_IMPLICIT_CAST_TO_PLAIN_C_STRING   0

Definition at line 543 of file qcstring.h.

◆ qsnprintf

◆ TRUE

#define TRUE   true

Definition at line 37 of file qcstring.h.

Referenced by DefinitionImpl::_docsAlreadyAdded(), MemberDefImpl::_hasVisibleCallerGraph(), DefinitionImpl::_setBriefDescription(), MemberDefImpl::_writeCallerGraph(), MemberDefImpl::_writeEnumValues(), MemberDefImpl::_writeMultiLineInitializer(), GroupDefImpl::addClass(), addClassToContext(), GroupDefImpl::addConcept(), EclipseHelp::addContentsItem(), HtmlHelp::addContentsItem(), addDefine(), addEnumValuesToEnums(), addGroupListToTitle(), addIncludeFile(), HtmlHelp::addIndexItem(), VHDLOutlineParser::addLibUseClause(), MemberDefImpl::addListReference(), addListReferences(), FileDefImpl::addListReferences(), GroupDefImpl::addListReferences(), ModuleDefImpl::addListReferences(), NamespaceDefImpl::addListReferences(), addMemberDocs(), addMemberFunction(), addMemberSpecialization(), addMembersToIndex(), addMemberToGroups(), addRelatedPage(), addToIndices(), ClassDefImpl::addTypeConstraint(), DirDefImpl::addUsesDependency(), addVariable(), addVariable(), SearchIndex::addWordRec(), DocSimpleSect::appendLinkWord(), applyModifiers(), anonymous_namespace{tagreader.cpp}::TagFileParser::buildClassEntry(), buildExampleList(), buildFunctionList(), DotClassGraph::buildGraph(), DotInclDepGraph::buildGraph(), buildGroupList(), anonymous_namespace{tagreader.cpp}::TagFileParser::buildLists(), anonymous_namespace{tagreader.cpp}::TagFileParser::buildMemberList(), buildScopeFromQualifiedName(), MemberDefImpl::cacheTypedefVal(), CharAroundSpace::CharElem::CharElem(), Config::checkAndCorrect(), checkAndOpenFile(), DocParser::checkArgumentName(), checkForKnRstyleC(), checkIfTypedef(), DocParser::checkUnOrMultipleDocumentedParams(), ClassDefImpl::ClassDefImpl(), classHasVisibleChildren(), codifyLines(), codifyLines(), codifyLines(), FlowChart::colTextNodes(), combineDeclarationAndDefinition(), ConfigBool::compareDoxyfile(), ConfigEnum::compareDoxyfile(), ConfigInt::compareDoxyfile(), ConfigList::compareDoxyfile(), ConfigString::compareDoxyfile(), compounddefExists(), computeCommonDirPrefix(), TreeDiagram::computeExtremes(), DotGraph::computeGraph(), computeIndentExcludingListMarkers(), TreeDiagram::computeLayout(), computeMemberRelationsForBaseClass(), computeTemplateClassRelations(), DotClassGraph::computeTheGraph(), DotGfxHierarchyTable::computeTheGraph(), DotGroupCollaboration::computeTheGraph(), DotLegendGraph::computeTheGraph(), VhdlDocGen::convertArgumentListToString(), convertMapFile(), DotFilePatcher::convertMapFile(), ResourceMgr::copyResourceAs(), ClassDefImpl::countAdditionalInheritedMembers(), ClassDefImpl::countInheritedDecMembers(), DotGfxHierarchyTable::createGraph(), MemberList::declVisible(), DocParser::defaultHandleToken(), DefinitionImpl::DefinitionImpl(), DefinitionMixin< Base >::DefinitionMixin(), VhdlDocGen::deleteCharRev(), DotNode::deleteNode(), MemberDefImpl::detectUndocumentedParams(), determineAbsoluteIncludeName(), determineIfNeedsTag(), DotCallGraph::determineTruncatedNodes(), DotClassGraph::determineTruncatedNodes(), DotInclDepGraph::determineTruncatedNodes(), DotClassGraph::determineVisibleNodes(), dirHasVisibleChildren(), MemberDefImpl::displayDefinition(), ClassDefAliasImpl::displayName(), Definition::displayName(), DirDefImpl::displayName(), FileDefImpl::displayName(), GroupDefImpl::displayName(), MemberDefAliasImpl::displayName(), ModuleDefImpl::displayName(), NamespaceDefAliasImpl::displayName(), PageDefImpl::displayName(), DocAnchor::DocAnchor(), DocCite::DocCite(), DocHtmlCaption::DocHtmlCaption(), DocRef::DocRef(), DotCallGraph::DotCallGraph(), DotClassGraph::DotClassGraph(), DotGfxHierarchyTable::DotGfxHierarchyTable(), DotGraph::DotGraph(), DotGroupCollaboration::DotGroupCollaboration(), DotInclDepGraph::DotInclDepGraph(), TreeDiagram::drawBoxes(), TreeDiagram::drawConnectors(), dupOfParent(), elemIsVisible(), IndexList::enable(), encodeForOutput(), HtmlGenerator::endCallGraph(), XMLCodeGenerator::endCodeLine(), ManGenerator::endConstraintDocs(), RTFGenerator::endConstraintList(), HtmlGenerator::endDirDepGraph(), DocbookGenerator::endDotGraph(), HtmlGenerator::endDotGraph(), RTFGenerator::endDotGraph(), RTFGenerator::endExamples(), endFileWithNavPath(), HtmlGenerator::endGroupCollaboration(), ManGenerator::endGroupHeader(), HtmlGenerator::endInclDepGraph(), RTFGenerator::endIndexItem(), RTFGenerator::endIndexList(), DocbookGenerator::endIndexSection(), LatexGenerator::endIndexSection(), RTFGenerator::endIndexSection(), ManGenerator::endInlineMemberDoc(), RTFGenerator::endItemList(), RTFGenerator::endMemberDescription(), DocbookGenerator::endMemberDocList(), ManGenerator::endMemberDocSimple(), ManGenerator::endMemberGroupHeader(), ManGenerator::endMemberHeader(), LayoutParser::endNavIndex(), RTFGenerator::endParagraph(), endScope(), ManGenerator::endSection(), ManGenerator::endTitleHead(), expandExpression(), extractCopyDocId(), Portable::fileSystemIsCaseSensitive(), filterMemberDocumentation(), findAttribute(), findBaseClassesForClass(), findClassRelation(), findDEV(), findEndOfTemplate(), findEnumDocumentation(), findEnums(), findFile(), findFriends(), findGlobalMember(), GroupDefImpl::findGroup(), findMember(), findMemberLink(), findMembersWithSpecificName(), findObjCMethodDefinitions(), findTemplateInstanceRelation(), findUsedClassesForClass(), findUsedTemplateInstances(), findUsingDeclarations(), findUsingDirectives(), FTVNode::FTVNode(), generateBriefDoc(), generateClassMemberLink(), generateClassMemberLink(), generateClassOrGlobalLink(), generateDEFForMember(), generateExampleDocs(), generateJSLink(), generateJSNavTree(), generateJSTree(), FTVHelp::Private::generateLink(), generateOutput(), CitationManager::generatePage(), RefList::generatePage(), PerlModGenerator::generatePerlModForMember(), generateSqlite3(), generateSqlite3ForDir(), generateSqlite3ForFile(), generateSqlite3ForMember(), generateXML(), generateXMLForFile(), generateXMLForMember(), VhdlDocGen::getClassTitle(), getCurrentDateTime(), getDefsOld(), FilterCache::getFileContents(), getFilterFromList(), getFortranNamespaceDefs(), getFortranTypeDefs(), MemberDefImpl::getLabels(), getLink(), getLink(), getLink(), getLinkInScope(), getLinkInScope(), getParagraphContext(), SymbolResolver::Private::getResolvedSymbolRec(), SymbolResolver::Private::getResolvedTypeRec(), getScopeDefs(), DocParser::handleAHref(), DocPara::handleCommand(), VHDLOutlineParser::handleCommentBlock(), DocPara::handleHtmlStartTag(), handleHtmlTag(), DocParser::handleImg(), handleInternal(), DocPara::handleLink(), DocParser::handleLinkedWord(), handleName(), handleParBlock(), DocPara::handleSimpleSection(), handleStatic(), DocParser::handleStyleEnter(), hasNonReferenceSuperClassRec(), DefinitionImpl::hasSections(), RTFDocVisitor::includePicturePreRTF(), PrintDocVisitor::indent_leaf(), MemberDefImpl::init(), initParser(), initPredefined(), initSpecialBlock(), initTriDoubleQuoteBlock(), initTriSingleQuoteBlock(), ClassDefImpl::insertMember(), GroupDefImpl::insertMember(), insertMemberDefineParams(), insertMemberFunctionParams(), insertPath(), insertRefid(), ClassDefImpl::insertTemplateInstance(), insideBlockQuote(), insideDetails(), insideDL(), insideLI(), insideOL(), insidePRE(), insideStyleChangeThatIsOutsideParagraph(), insideTable(), insideUL(), ClassDefImpl::internalInsertMember(), DocParser::internalValidatingParseDoc(), SymbolResolver::Private::isAccessibleFrom(), SymbolResolver::Private::isAccessibleFromWithExpScope(), ClassDefImpl::isAccessibleMember(), DefinitionAliasMixin< Base >::isAlias(), isClassSection(), isCopyBriefOrDetailsCmd(), MemberDefImpl::isCSharpProperty(), isDocIncludeVisible(), isDocIncOperatorVisible(), isDocVerbatimVisible(), VHDLOutlineParser::isFuncProcProced(), DocHtmlRow::isHeading(), NamespaceDefImpl::isLinkableInProject(), MemberDefImpl::isObjCMethod(), MemberDefImpl::isObjCProperty(), DirDefImpl::isParentOf(), MemberDefImpl::isReimplementedBy(), isSpecialization(), DotCallGraph::isTrivial(), isVarWithConstructor(), TreeDiagram::layoutTree(), RTFGenerator::lineBreak(), linkifyText(), MemberDefImpl::makeImplementationDetail(), ClassDefMutable::makeTemplateArgument(), VHDLOutlineParser::mapLibPackage(), DotNode::markAsTruncated(), DotNode::markAsVisible(), DocHtmlCell::markFirst(), DocIncOperator::markFirst(), DocPara::markFirst(), DocParamList::markFirst(), DocHtmlCell::markLast(), DocIncOperator::markLast(), DocPara::markLast(), DocParamList::markLast(), matchArgument2(), matchArguments2(), matchExcludedSymbols(), DirDefImpl::matchPath(), memberdefExists(), memberdefIncomplete(), membersHaveSpecificType(), ClassDefImpl::mergeCategory(), ClassDefImpl::mergeMembers(), ClassDefImpl::mergeMembersFromBaseClasses(), mergeScopes(), mustBeOutsideParagraph(), nameIsOperator(), LexOutlineParser::needsPreprocessing(), VHDLOutlineParser::needsPreprocessing(), ManGenerator::newParagraph(), newVariable(), normalizeNonTemplateArgumentsInString(), VHDLOutlineParser::oneLineComment(), DocbookDocVisitor::operator()(), DocbookDocVisitor::operator()(), DocbookDocVisitor::operator()(), DocbookDocVisitor::operator()(), HtmlDocVisitor::operator()(), HtmlDocVisitor::operator()(), HtmlDocVisitor::operator()(), HtmlDocVisitor::operator()(), HtmlDocVisitor::operator()(), HtmlDocVisitor::operator()(), HtmlDocVisitor::operator()(), LatexDocVisitor::operator()(), LatexDocVisitor::operator()(), LatexDocVisitor::operator()(), LatexDocVisitor::operator()(), LatexDocVisitor::operator()(), LatexDocVisitor::operator()(), LatexDocVisitor::operator()(), LatexDocVisitor::operator()(), ManDocVisitor::operator()(), ManDocVisitor::operator()(), ManDocVisitor::operator()(), ManDocVisitor::operator()(), ManDocVisitor::operator()(), ManDocVisitor::operator()(), ManDocVisitor::operator()(), ManDocVisitor::operator()(), ManDocVisitor::operator()(), ManDocVisitor::operator()(), ManDocVisitor::operator()(), ManDocVisitor::operator()(), ManDocVisitor::operator()(), ManDocVisitor::operator()(), ManDocVisitor::operator()(), ManDocVisitor::operator()(), ManDocVisitor::operator()(), ManDocVisitor::operator()(), ManDocVisitor::operator()(), ManDocVisitor::operator()(), ManDocVisitor::operator()(), PerlModDocVisitor::operator()(), PrintDocVisitor::operator()(), RTFDocVisitor::operator()(), RTFDocVisitor::operator()(), RTFDocVisitor::operator()(), RTFDocVisitor::operator()(), RTFDocVisitor::operator()(), RTFDocVisitor::operator()(), RTFDocVisitor::operator()(), RTFDocVisitor::operator()(), RTFDocVisitor::operator()(), RTFDocVisitor::operator()(), RTFDocVisitor::operator()(), RTFDocVisitor::operator()(), RTFDocVisitor::operator()(), RTFDocVisitor::operator()(), RTFDocVisitor::operator()(), RTFDocVisitor::operator()(), RTFDocVisitor::operator()(), RTFDocVisitor::operator()(), RTFDocVisitor::operator()(), RTFDocVisitor::operator()(), RTFDocVisitor::operator()(), RTFDocVisitor::operator()(), RTFDocVisitor::operator()(), RTFDocVisitor::operator()(), TextDocVisitor::operator()(), XmlDocVisitor::operator()(), XmlDocVisitor::operator()(), XmlDocVisitor::operator()(), XmlDocVisitor::operator()(), XmlDocVisitor::operator()(), XmlDocVisitor::operator()(), DefinitionImpl::operator=(), SymbolModifiers::operator|=(), organizeSubGroups(), otherCaseDone(), MemberDefImpl::overrideCallerGraph(), MemberDefImpl::overrideCallGraph(), MemberDefImpl::overrideReferencedByRelation(), MemberDefImpl::overrideReferencesRelation(), PageDefImpl::PageDefImpl(), DocAutoListItem::parse(), DocHtmlBlockQuote::parse(), DocHtmlCell::parse(), DocHtmlDescData::parse(), DocHtmlDescTitle::parse(), DocHtmlDetails::parse(), DocHtmlListItem::parse(), DocHtmlRow::parse(), DocIncOperator::parse(), DocInternal::parse(), DocParamList::parse(), DocParamSect::parse(), DocParBlock::parse(), DocRef::parse(), DocRoot::parse(), DocSection::parse(), DocXRefItem::parse(), CCodeParser::parseCode(), CodeParserInterface::parseCode(), CodeFragmentManager::parseCodeFragment(), parseCompounds(), parseCompounds(), DocTitle::parseFromString(), parseInput(), VHDLOutlineParser::parseInput(), parseMain(), parseMain(), parseMain(), FortranOutlineParser::parsePrototype(), parsePrototype(), parsePrototype(), VHDLOutlineParser::parsePrototype(), FileDefImpl::parseSource(), ConfigImpl::parseString(), DocHtmlCell::parseXml(), DocHtmlListItem::parseXml(), DocHtmlRow::parseXml(), DocHtmlTable::parseXml(), DocParamList::parseXml(), DocTokenizer::popContext(), DotGraph::prepareDotFile(), prepassFixedForm(), preProcessFile(), RTFGenerator::preProcessFileInplace(), Statistics::print(), Markdown::Private::processBlocks(), DocParser::processCopyDoc(), Markdown::Private::processHtmlTagWrite(), Markdown::Private::processLink(), DiagramItem::putInList(), quickLinkVisible(), quickLinkVisible(), readCodeFragment(), readConfiguration(), readIncludeFile(), recodeString(), recognizeFixedForm(), RefList::RefList(), ParserManager::registerExtension(), removeIdsAndMarkers(), renderMemberIndicesAsJs(), renderQuickLinksAsJs(), renderQuickLinksAsTabs(), replaceFunctionMacro(), replaceRef(), resetPDFSize(), resolveClassNestingRelations(), resolveLink(), resolveRef(), resolveUserReferences(), DotFilePatcher::run(), DotManager::run(), DotRunner::run(), runPlantumlContent(), ColoredImage::save(), Image::save(), scanner_abort(), searchInputFiles(), SearchIndex::setCurrentDoc(), setCurrentDoc(), setCurrentDoc(), setCurrentDoc(), DefinitionMixin< Base >::setDocumentation(), DefinitionMutable::setDocumentation(), ClassDefImpl::setGroupDefForAllMembers(), GroupDefImpl::setGroupTitleLocal(), ClassDefImpl::showUsedFiles(), QCString::simplifyWhiteSpace(), ClassDefMutable::sortAllMembersList(), ManGenerator::startAnonTypeScope(), DocbookCodeGenerator::startCodeLine(), HtmlCodeGenerator::startCodeLine(), LatexCodeGenerator::startCodeLine(), startCodeLine(), startCodeLine(), XMLCodeGenerator::startCodeLine(), anonymous_namespace{tagreader.cpp}::TagFileParser::startCompound(), startCondSection(), startCondSection(), ManGenerator::startConstraintList(), ManGenerator::startDescForItem(), DocbookGenerator::startDescTable(), ManGenerator::startDescTable(), ManGenerator::startDescTableData(), ManGenerator::startExamples(), ManGenerator::startFile(), DocbookCodeGenerator::startFontClass(), XMLCodeGenerator::startFontClass(), DocbookGenerator::startGroupHeader(), LatexGenerator::startGroupHeader(), ManGenerator::startGroupHeader(), HtmlGenerator::startIndexItem(), RTFGenerator::startIndexItem(), RTFGenerator::startIndexList(), LatexGenerator::startIndexSection(), RTFGenerator::startIndexSection(), ManGenerator::startItemListItem(), RTFGenerator::startItemListItem(), anonymous_namespace{tagreader.cpp}::TagFileParser::startMember(), ClassDefImpl::startMemberDocumentation(), FileDefImpl::startMemberDocumentation(), GroupDefImpl::startMemberDocumentation(), ModuleDefImpl::startMemberDocumentation(), NamespaceDefImpl::startMemberDocumentation(), DocbookGenerator::startMemberHeader(), HtmlGenerator::startMemberHeader(), LatexGenerator::startMemberHeader(), DocbookGenerator::startMemberItem(), HtmlGenerator::startMemberSections(), LayoutParser::startNavEntry(), ManGenerator::startParagraph(), startQuickIndexList(), DocbookGenerator::startTextBlock(), stringize(), stringToArgumentList(), stripIrrelevantString(), QCString::stripPrefix(), stripQualifiers(), stripQualifiers(), stripScope(), stripWord(), substituteTemplateArgumentsInString(), substituteTemplatesInString(), QCString::toLong(), QCString::toUInt64(), QCString::toULong(), transferFunctionReferences(), transferRelatedFunctionDocumentation(), tryAddEnumDocsToGroupMember(), updateLanguageMapping(), LayoutNavEntry::url(), visitPreStart(), MemberDefImpl::warnIfUndocumented(), DotGroupCollaboration::Edge::write(), DotNode::write(), ClassDefImpl::writeAdditionalInheritedMembers(), writeAlphabeticalExceptionIndex(), writeAlphabeticalIndex(), writeAlphabeticalInterfaceIndex(), writeAlphabeticalStructIndex(), writeAnnotatedClassList(), writeAnnotatedIndexGeneric(), ClassDefImpl::writeAuthorSection(), ConceptDefImpl::writeAuthorSection(), FileDefImpl::writeAuthorSection(), GroupDefImpl::writeAuthorSection(), ModuleDefImpl::writeAuthorSection(), NamespaceDefImpl::writeAuthorSection(), ClassDefImpl::writeBriefDescription(), ConceptDefImpl::writeBriefDescription(), DirDefImpl::writeBriefDescription(), FileDefImpl::writeBriefDescription(), GroupDefImpl::writeBriefDescription(), ModuleDefImpl::writeBriefDescription(), NamespaceDefImpl::writeBriefDescription(), ResourceMgr::writeCategory(), NamespaceDefImpl::writeClassDeclarations(), writeClassMemberIndex(), writeClassMemberIndexFiltered(), writeClassTree(), writeClassTreeForList(), writeClassTreeInsideNamespaceElement(), writeClassTreeToOutput(), VhdlDocGen::writeClassType(), writeConceptIndex(), NamespaceDefImpl::writeConcepts(), writeConceptTreeInsideNamespaceElement(), MemberDefImpl::writeDeclaration(), NamespaceLinkedRefMap::writeDeclaration(), ClassDefImpl::writeDeclarationLink(), ConceptDefImpl::writeDeclarationLink(), ModuleDefImpl::writeDeclarationLink(), writeDefArgumentList(), writeDefaultQuickLinks(), ConceptDefImpl::writeDetailedDescription(), DirDefImpl::writeDetailedDescription(), FileDefImpl::writeDetailedDescription(), GroupDefImpl::writeDetailedDescription(), ModuleDefImpl::writeDetailedDescription(), NamespaceDefImpl::writeDetailedDescription(), ClassDefImpl::writeDetailedDocumentationBody(), writeDirHierarchy(), GroupDefImpl::writeDirs(), writeDirTreeNode(), RTFGenerator::writeDoc(), DotClassGraph::writeDocbook(), ClassLinkedRefMap::writeDocumentation(), GroupDefImpl::writeDocumentation(), MemberDefImpl::writeDocumentation(), PageDefImpl::writeDocumentation(), writeDotImageMapFromFile(), writeExampleIndex(), ModuleDefImpl::writeExports(), HtmlGenerator::writeExternalSearchPage(), HtmlHelpIndex::writeFields(), ClassDiagram::writeFigure(), writeFileIndex(), DirDefImpl::writeFileList(), writeFileMemberIndexFiltered(), GroupDefImpl::writeFiles(), ModuleDefImpl::writeFiles(), VhdlDocGen::writeFuncProcDocu(), VhdlDocGen::writeFunctionProto(), DotDirDeps::writeGraph(), writeGroupTreeNode(), writeHierarchicalExceptionIndex(), writeHierarchicalIndex(), writeHierarchicalInterfaceIndex(), ClassDiagram::writeImage(), FileDefImpl::writeIncludedByGraph(), FileDefImpl::writeIncludeFiles(), FileDefImpl::writeIncludeGraph(), writeIndex(), writeIndexHierarchyEntries(), ClassDefImpl::writeInheritanceGraph(), ClassDefImpl::writeInheritedMemberDeclarations(), HtmlGenerator::writeInheritedSectionTitle(), VhdlDocGen::writeInlineClassLink(), DefinitionImpl::writeInlineCode(), ClassDefImpl::writeInlineDocumentation(), writeJavasScriptSearchDataPage(), DotNode::writeLabel(), DocbookCodeGenerator::writeLineNumber(), HtmlCodeGenerator::writeLineNumber(), LatexCodeGenerator::writeLineNumber(), MemberDefImpl::writeLink(), writeMapArea(), MemberDefImpl::writeMemberDocSimple(), ClassDefImpl::writeMemberList(), writeMemberList(), writeMenuData(), writeModuleIndex(), writeModuleMemberIndexFiltered(), writeModuleTreeNode(), writeMultiLineCodeLink(), writeMultiLineCodeLink(), writeMultiLineCodeLink(), NamespaceDefImpl::writeNamespaceDeclarations(), writeNamespaceIndex(), writeNamespaceMemberIndexFiltered(), ClassDefImpl::writeNestedClasses(), Markdown::Private::writeOneLineHeaderOrRuler(), PageDefImpl::writePageDocumentation(), writePages(), MemberList::writePlainDeclarations(), VhdlDocGen::writePlainVHDLDeclarations(), VhdlDocGen::writeProcedureProto(), VhdlDocGen::writeProcessProto(), writeQuickMemberIndex(), VhdlDocGen::writeRecUnitDocu(), FlowChart::writeShape(), writeSingleFileIndex(), VhdlDocGen::writeSource(), FileDefImpl::writeSourceBody(), DefinitionImpl::writeSourceRefs(), ConfigOption::writeStringList(), DirDefImpl::writeSubDirList(), ClassDefImpl::writeSummaryLinks(), FileDefImpl::writeSummaryLinks(), GroupDefImpl::writeSummaryLinks(), ModuleDefImpl::writeSummaryLinks(), NamespaceDefImpl::writeSummaryLinks(), DotFilePatcher::writeSVGFigureLink(), ManGenerator::writeSynopsis(), Markdown::Private::writeTableBlock(), PageDefImpl::writeTagFile(), VhdlDocGen::writeTagFile(), writeTemplateArgumentList(), DefinitionImpl::writeToc(), writeTopicIndex(), writeTypeConstraints(), DotFilePatcher::writeVecGfxFigure(), VhdlDocGen::writeVHDLDeclaration(), VhdlDocGen::writeVHDLDeclarations(), VhdlDocGen::writeVhdlDeclarations(), DotClassGraph::writeXML(), and writeXMLCodeBlock().

Typedef Documentation

◆ JavaCCString

using JavaCCString = std::basic_string<JAVACC_CHAR_TYPE>

Definition at line 95 of file qcstring.h.

Function Documentation

◆ operator!=() [1/3]

bool operator!= ( const char * s1,
const QCString & s2 )
inline

Definition at line 637 of file qcstring.h.

638{ return qstrcmp(s1,s2.data()) != 0; }
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:172
int qstrcmp(const char *str1, const char *str2)
Definition qcstring.h:69

References QCString::data(), and qstrcmp().

◆ operator!=() [2/3]

bool operator!= ( const QCString & s1,
const char * s2 )
inline

Definition at line 634 of file qcstring.h.

635{ return qstrcmp(s1.data(),s2) != 0; }

References QCString::data(), and qstrcmp().

◆ operator!=() [3/3]

bool operator!= ( const QCString & s1,
const QCString & s2 )
inline

Definition at line 631 of file qcstring.h.

632{ return s1.str() != s2.str(); }
const std::string & str() const
Definition qcstring.h:552

References QCString::str().

◆ operator+() [1/3]

QCString operator+ ( const char * s1,
const QCString & s2 )
inline

Definition at line 680 of file qcstring.h.

681{
682 QCString tmp(s1);
683 tmp.append(s2);
684 return tmp;
685}
This is an alternative implementation of QCString.
Definition qcstring.h:101

References QCString::append().

◆ operator+() [2/3]

QCString operator+ ( const QCString & s1,
const char * s2 )
inline

Definition at line 673 of file qcstring.h.

674{
675 QCString tmp(s1);
676 tmp.append(s2);
677 return tmp;
678}

References QCString::append().

◆ operator+() [3/3]

QCString operator+ ( const QCString & s1,
const QCString & s2 )
inline

Definition at line 667 of file qcstring.h.

668{
669 return QCString(s1.str()+s2.str());
670}

References QCString::str().

◆ operator<() [1/3]

bool operator< ( const char * s1,
const QCString & s2 )
inline

Definition at line 646 of file qcstring.h.

647{ return qstrcmp(s1,s2.data()) < 0; }

References QCString::data(), and qstrcmp().

◆ operator<() [2/3]

bool operator< ( const QCString & s1,
const char * s2 )
inline

Definition at line 643 of file qcstring.h.

644{ return qstrcmp(s1.data(),s2) < 0; }

References QCString::data(), and qstrcmp().

◆ operator<() [3/3]

bool operator< ( const QCString & s1,
const QCString & s2 )
inline

Definition at line 640 of file qcstring.h.

641{ return qstrcmp(s1.data(),s2.data()) < 0; }

References QCString::data(), and qstrcmp().

◆ operator<<()

std::ostream & operator<< ( std::ostream & os,
const QCString & s )
inline

Definition at line 785 of file qcstring.h.

786{
787 os << s.str();
788 return os;
789}

References QCString::str().

◆ operator<=() [1/2]

bool operator<= ( const char * s1,
const QCString & s2 )
inline

Definition at line 652 of file qcstring.h.

653{ return qstrcmp(s1,s2.data()) <= 0; }

References QCString::data(), and qstrcmp().

◆ operator<=() [2/2]

bool operator<= ( const QCString & s1,
const char * s2 )
inline

Definition at line 649 of file qcstring.h.

650{ return qstrcmp(s1.data(),s2) <= 0; }

References QCString::data(), and qstrcmp().

◆ operator==() [1/3]

bool operator== ( const char * s1,
const QCString & s2 )
inline

Definition at line 628 of file qcstring.h.

629{ return qstrcmp(s1,s2.data()) == 0; }

References QCString::data(), and qstrcmp().

◆ operator==() [2/3]

bool operator== ( const QCString & s1,
const char * s2 )
inline

Definition at line 625 of file qcstring.h.

626{ return qstrcmp(s1.data(),s2) == 0; }

References QCString::data(), and qstrcmp().

◆ operator==() [3/3]

bool operator== ( const QCString & s1,
const QCString & s2 )
inline

Definition at line 622 of file qcstring.h.

623{ return s1.str() == s2.str(); }

References QCString::str().

◆ operator>() [1/2]

bool operator> ( const char * s1,
const QCString & s2 )
inline

Definition at line 658 of file qcstring.h.

659{ return qstrcmp(s1,s2.data()) > 0; }

References QCString::data(), and qstrcmp().

◆ operator>() [2/2]

bool operator> ( const QCString & s1,
const char * s2 )
inline

Definition at line 655 of file qcstring.h.

656{ return qstrcmp(s1.data(),s2) > 0; }

References QCString::data(), and qstrcmp().

◆ operator>=() [1/2]

bool operator>= ( const char * s1,
const QCString & s2 )
inline

Definition at line 664 of file qcstring.h.

665{ return qstrcmp(s1,s2.data()) >= 0; }

References QCString::data(), and qstrcmp().

◆ operator>=() [2/2]

bool operator>= ( const QCString & s1,
const char * s2 )
inline

Definition at line 661 of file qcstring.h.

662{ return qstrcmp(s1.data(),s2) >= 0; }

References QCString::data(), and qstrcmp().

◆ qisempty()

bool qisempty ( const char * s)
inline

Definition at line 66 of file qcstring.h.

67{ return s==nullptr || *s=='\0'; }

Referenced by qstrcmp(), and qstrncmp().

◆ qisspace()

◆ qmemmove()

void * qmemmove ( void * dst,
const void * src,
size_t len )

Definition at line 407 of file qcstring.cpp.

408{
409 if ( dst > src ) {
410 char *d = static_cast<char *>(dst) + len - 1;
411 const char *s = static_cast<const char *>(src) + len - 1;
412 while ( len-- )
413 *d-- = *s--;
414 }
415 else if ( dst < src ) {
416 char *d = static_cast<char *>(dst);
417 const char *s = static_cast<const char *>(src);
418 while ( len-- )
419 *d++ = *s++;
420 }
421 return dst;
422}

◆ qPrint() [1/3]

const char * qPrint ( const char * s)
inline

Definition at line 687 of file qcstring.h.

688{
689 if (s) return s; else return "";
690}

Referenced by addIncludeFile(), ModuleDefImpl::addMemberToModule(), addModule(), addSubprogram(), DirDefImpl::addUsesDependency(), addVariable(), addXRefItem(), buildFileList(), Config::checkAndCorrect(), DocParser::checkArgumentName(), XMLCodeGenerator::codify(), codifyLines(), convertCppComments(), createCroppedEPS(), createCroppedPDF(), createDVIFile(), createEPSbboxFile(), createPNG(), createPostscriptFile(), createSVGFromPDF(), createSVGFromPDFviaInkscape(), DebugLex::DebugLex(), dumpDocNodeList(), encodeForOutput(), DocParser::errorHandleDefaultToken(), DocParser::findAndCopyImage(), findGlobalMember(), findMemberLink(), DocTokenizer::findSections(), VhdlDocGen::findVhdlClass(), generateClassMemberLink(), generateClassMemberLink(), generateClassOrGlobalLink(), generateClassOrGlobalLink(), generateFunctionLink(), generateFunctionLink(), generateMemberLink(), generatePHPVariableLink(), generateSqlite3ForClass(), generateSqlite3ForFile(), generateSqlite3ForMember(), DotGfxHierarchyTable::getBaseName(), getDefs(), getLink(), getLinkInScope(), handle_warn_as_error(), handleCommentBlock(), DocPara::handleRef(), handleToc(), mergeArguments(), DocbookDocVisitor::operator()(), HtmlDocVisitor::operator()(), LatexDocVisitor::operator()(), PerlModDocVisitor::operator()(), PerlModDocVisitor::operator()(), PrintDocVisitor::operator()(), PrintDocVisitor::operator()(), PrintDocVisitor::operator()(), PrintDocVisitor::operator()(), PrintDocVisitor::operator()(), PrintDocVisitor::operator()(), PrintDocVisitor::operator()(), PrintDocVisitor::operator()(), PrintDocVisitor::operator()(), PrintDocVisitor::operator()(), PrintDocVisitor::operator()(), PrintDocVisitor::operator()(), PrintDocVisitor::operator()(), PrintDocVisitor::operator()(), PrintDocVisitor::operator()(), PrintDocVisitor::operator()(), PrintDocVisitor::operator()(), PrintDocVisitor::operator()(), PrintDocVisitor::operator()(), PrintDocVisitor::operator()(), PrintDocVisitor::operator()(), PrintDocVisitor::operator()(), PrintDocVisitor::operator()(), PrintDocVisitor::operator()(), PrintDocVisitor::operator()(), PrintDocVisitor::operator()(), PrintDocVisitor::operator()(), RTFDocVisitor::operator()(), ConfigImpl::parse(), DocMscFile::parse(), DocSecRefList::parse(), LayoutDocManager::parse(), CCodeParser::parseCode(), FortranCodeParser::parseCode(), LexCodeParser::parseCode(), PythonCodeParser::parseCode(), SQLCodeParser::parseCode(), VHDLCodeParser::parseCode(), XMLCodeParser::parseCode(), CommentScanner::parseCommentBlock(), COutlineParser::parseInput(), FortranOutlineParser::parseInput(), LexOutlineParser::parseInput(), parseInput(), PythonOutlineParser::parseInput(), popScope(), FlowChart::printNode(), Markdown::process(), Preprocessor::processFile(), pushBuffer(), pushScope(), readIncludeFile(), DotNode::renumberNodes(), SymbolResolver::resolveSymbol(), runHtmlHelpCompiler(), saveObjCContext(), scanner_abort(), setCallContextForVar(), setClassScope(), setTranslator(), startCodeLine(), stripClassName(), writeDiaGraphFromFile(), DirDefImpl::writeDocumentation(), ClassDiagram::writeFigure(), FileDefImpl::writeIncludedByGraph(), FileDefImpl::writeIncludeGraph(), writeMscGraphFromFile(), writeMultiLineCodeLink(), writeObjCMethodCall(), and DebugLex::~DebugLex().

◆ qPrint() [2/3]

const char * qPrint ( const QCString & s)
inline

Definition at line 692 of file qcstring.h.

693{
694 if (!s.isEmpty()) return s.data(); else return "";
695}
bool isEmpty() const
Returns TRUE iff the string is empty.
Definition qcstring.h:163

References QCString::data(), and QCString::isEmpty().

◆ qPrint() [3/3]

const char * qPrint ( const std::string & s)
inline

Definition at line 697 of file qcstring.h.

698{
699 return s.c_str();
700}

◆ qstrcmp() [1/4]

int qstrcmp ( const char * str1,
const char * str2 )
inline

Definition at line 69 of file qcstring.h.

70{ return (str1 && str2) ? strcmp(str1,str2) : // both non-empty
71 (qisempty(str1) && qisempty(str2)) ? 0 : // both empty
72 qisempty(str1) ? -1 : 1; // one empty, other non-empty
73}
bool qisempty(const char *s)
Definition qcstring.h:66

References qisempty().

Referenced by convertMapFile(), KeywordHash::find(), operator!=(), operator!=(), operator<(), operator<(), operator<(), operator<=(), operator<=(), operator==(), operator==(), operator>(), operator>(), operator>=(), operator>=(), qstrcmp(), qstrcmp(), qstrcmp(), qstricmp_sort(), readConfiguration(), startFontClass(), startFontClass(), and startFontClass().

◆ qstrcmp() [2/4]

int qstrcmp ( const char * str1,
const QCString & str2 )
inline

Definition at line 714 of file qcstring.h.

715{
716 return qstrcmp(str1,str2.data());
717}

References QCString::data(), and qstrcmp().

◆ qstrcmp() [3/4]

int qstrcmp ( const QCString & str1,
const char * str2 )
inline

Definition at line 709 of file qcstring.h.

710{
711 return qstrcmp(str1.data(),str2);
712}

References QCString::data(), and qstrcmp().

◆ qstrcmp() [4/4]

int qstrcmp ( const QCString & str1,
const QCString & str2 )
inline

Definition at line 719 of file qcstring.h.

720{
721 return qstrcmp(str1.data(),str2.data());
722}

References QCString::data(), and qstrcmp().

◆ qstrcpy()

char * qstrcpy ( char * dst,
const char * src )
inline

Definition at line 61 of file qcstring.h.

62{ return src ? strcpy(dst, src) : nullptr; }

Referenced by SymbolResolver::Private::getResolvedTypeRec(), substitute(), and substitute().

◆ qstrdup()

char * qstrdup ( const char * s)

Returns a copy of a string s. Note that memory is passed to the caller, use qstrfree() to release.

Definition at line 424 of file qcstring.cpp.

425{
426 if ( !str )
427 return nullptr;
428 char *dst = new char[qstrlen(str)+1];
429 return strcpy( dst, str );
430}
uint32_t qstrlen(const char *str)
Returns the length of string str, or 0 if a null pointer is passed.
Definition qcstring.h:58

References qstrlen().

◆ qstrfree()

void qstrfree ( const char * s)

Frees the memory allocated using qstrdup().

Definition at line 432 of file qcstring.cpp.

433{
434 delete[](str);
435}

◆ qstricmp() [1/4]

int qstricmp ( const char * str1,
const char * str2 )

Definition at line 447 of file qcstring.cpp.

448{
449 if ( !s1 || !s2 )
450 {
451 return s1 == s2 ? 0 : static_cast<int>(s2 - s1);
452 }
453 int res = 0;
454 char c = 0;
455 for ( ; !(res = ((c=toLowerChar(*s1)) - toLowerChar(*s2))); s1++, s2++ )
456 {
457 if ( !c ) // strings are equal
458 break;
459 }
460 return res;
461}
char toLowerChar(char c)
Definition qcstring.cpp:24

References toLowerChar().

Referenced by compareString(), VhdlDocGen::findAllArchitectures(), DocGroup::findExistingGroup(), FlowChart::findLabel(), VhdlDocGen::findVhdlClass(), mainPageHasOwnTitle(), qstricmp(), qstricmp(), qstricmp(), qstricmp_sort(), readConfiguration(), stripFromPath(), transcodeCharacterBuffer(), transcodeCharacterStringToUTF8(), FlowChart::writeFlowLinks(), ClassDefImpl::writeIncludeFilesForSlice(), writeIndex(), and VhdlDocGen::writeProcedureProto().

◆ qstricmp() [2/4]

int qstricmp ( const char * str1,
const QCString & str2 )
inline

Definition at line 729 of file qcstring.h.

730{
731 return qstricmp(str1,str2.data());
732}
int qstricmp(const char *str1, const char *str2)
Definition qcstring.cpp:447

References QCString::data(), and qstricmp().

◆ qstricmp() [3/4]

int qstricmp ( const QCString & str1,
const char * str2 )
inline

Definition at line 724 of file qcstring.h.

725{
726 return qstricmp(str1.data(),str2);
727}

References QCString::data(), and qstricmp().

◆ qstricmp() [4/4]

int qstricmp ( const QCString & str1,
const QCString & str2 )
inline

Definition at line 734 of file qcstring.h.

735{
736 return qstricmp(str1.data(),str2.data());
737}

References QCString::data(), and qstricmp().

◆ qstricmp_sort() [1/4]

◆ qstricmp_sort() [2/4]

int qstricmp_sort ( const char * str1,
const QCString & str2 )
inline

Definition at line 744 of file qcstring.h.

745{
746 return qstricmp_sort(str1,str2.data());
747}
int qstricmp_sort(const char *str1, const char *str2)
Definition qcstring.h:86

References QCString::data(), and qstricmp_sort().

◆ qstricmp_sort() [3/4]

int qstricmp_sort ( const QCString & str1,
const char * str2 )
inline

Definition at line 739 of file qcstring.h.

740{
741 return qstricmp_sort(str1.data(),str2);
742}

References QCString::data(), and qstricmp_sort().

◆ qstricmp_sort() [4/4]

int qstricmp_sort ( const QCString & str1,
const QCString & str2 )
inline

Definition at line 749 of file qcstring.h.

750{
751 return qstricmp_sort(str1.data(),str2.data());
752}

References QCString::data(), and qstricmp_sort().

◆ qstrlen()

uint32_t qstrlen ( const char * str)
inline

◆ qstrncmp()

int qstrncmp ( const char * str1,
const char * str2,
size_t len )
inline

◆ qstrncpy()

char * qstrncpy ( char * dst,
const char * src,
size_t len )

Definition at line 437 of file qcstring.cpp.

438{
439 if ( !src )
440 return nullptr;
441 strncpy( dst, src, len );
442 if ( len > 0 )
443 dst[len-1] = '\0';
444 return dst;
445}

◆ qstrnicmp() [1/4]

int qstrnicmp ( const char * str1,
const char * str2,
size_t len )

Definition at line 463 of file qcstring.cpp.

464{
465 if ( !s1 || !s2 )
466 {
467 return static_cast<int>(s2 - s1);
468 }
469 for ( ; len--; s1++, s2++ )
470 {
471 char c = toLowerChar(*s1);
472 int res = c-toLowerChar(*s2);
473 if ( res!=0 ) // strings are not equal
474 return res;
475 if ( c==0 ) // strings are equal
476 break;
477 }
478 return 0;
479}

References toLowerChar().

Referenced by QCString::contains(), QCString::find(), QCString::findRev(), qstrnicmp(), qstrnicmp(), and qstrnicmp().

◆ qstrnicmp() [2/4]

int qstrnicmp ( const char * str1,
const QCString & str2,
size_t len )
inline

Definition at line 760 of file qcstring.h.

761{
762 return qstrnicmp(str1,str2.data(),len);
763}
int qstrnicmp(const char *str1, const char *str2, size_t len)
Definition qcstring.cpp:463

References QCString::data(), and qstrnicmp().

◆ qstrnicmp() [3/4]

int qstrnicmp ( const QCString & str1,
const char * str2,
size_t len )
inline

Definition at line 755 of file qcstring.h.

756{
757 return qstrnicmp(str1.data(),str2,len);
758}

References QCString::data(), and qstrnicmp().

◆ qstrnicmp() [4/4]

int qstrnicmp ( const QCString & str1,
const QCString & str2,
size_t len )
inline

Definition at line 765 of file qcstring.h.

766{
767 return qstrnicmp(str1.data(),str2.data(),len);
768}

References QCString::data(), and qstrnicmp().

◆ substitute() [1/4]

QCString substitute ( const QCString & s,
char srcChar,
char dstChar )
inline

Definition at line 778 of file qcstring.h.

779{
780 std::string ss = s.str();
781 std::replace(ss.begin(),ss.end(),srcChar,dstChar);
782 return QCString(ss);
783}

References QCString::str().

◆ substitute() [2/4]

QCString substitute ( const QCString & s,
const QCString & src,
const QCString & dst,
int skip_seq )

substitute all occurrences of src in s by dst, but skip each consecutive sequence of src where the number consecutive src matches skip_seq; if skip_seq is negative, skip any number of consecutive src

Definition at line 523 of file qcstring.cpp.

524{
525 if (s.isEmpty() || src.isEmpty()) return s;
526 const char *p = nullptr, *q = nullptr;
527 size_t srcLen = src.length();
528 size_t dstLen = dst.length();
529 size_t resLen = 0;
530 if (srcLen!=dstLen)
531 {
532 int count = 0;
533 for (p=s.data(); (q=strstr(p,src.data()))!=nullptr; p=q+srcLen) count++;
534 resLen = s.length()+count*(dstLen-srcLen);
535 }
536 else // result has same size as s
537 {
538 resLen = s.length();
539 }
540 QCString result(resLen, QCString::ExplicitSize);
541 char *r = result.rawData();
542 for (p = s.data(); (q=strstr(p,src.data()))!=nullptr; p=q+srcLen)
543 {
544 // search a consecutive sequence of src
545 int seq = 0, skip = 0;
546 if (skip_seq)
547 {
548 for (const char *n=q+srcLen; qstrncmp(n,src.data(),srcLen)==0; seq=1+skip, n+=srcLen)
549 ++skip; // number of consecutive src after the current one
550
551 // verify the allowed number of consecutive src to skip
552 if (skip_seq > 0 && skip_seq != seq)
553 seq = skip = 0;
554 }
555
556 // skip a consecutive sequence of src when necessary
557 int l = static_cast<int>((q + seq * srcLen)-p);
558 memcpy(r,p,l);
559 r+=l;
560
561 if (skip)
562 {
563 // skip only the consecutive src found after the current one
564 q += skip * srcLen;
565 // the next loop will skip the current src, aka (p=q+srcLen)
566 continue;
567 }
568
569 if (dstLen>0) memcpy(r,dst.data(),dstLen);
570 r+=dstLen;
571 }
572 qstrcpy(r,p);
573 result.resize(strlen(result.data()));
574 //printf("substitute(%s,%s,%s)->%s\n",s,src,dst,result.data());
575 return result;
576}
size_t length() const
Returns the length of the string, not counting the 0-terminator.
Definition qcstring.h:166
@ ExplicitSize
Definition qcstring.h:146
int qstrncmp(const char *str1, const char *str2, size_t len)
Definition qcstring.h:75
char * qstrcpy(char *dst, const char *src)
Definition qcstring.h:61

References QCString::data(), QCString::ExplicitSize, QCString::isEmpty(), QCString::length(), qstrcpy(), qstrncmp(), QCString::rawData(), and QCString::resize().

◆ substitute() [3/4]

QCString substitute ( const QCString & str,
const char * find,
const char * replace )
inline

Definition at line 772 of file qcstring.h.

773{
774 return substitute(str,QCString(find),QCString(replace));
775}
QCString substitute(const QCString &str, const QCString &find, const QCString &replace)
substitute all occurrences of src in s by dst
Definition qcstring.cpp:482

References substitute().

◆ substitute() [4/4]

QCString substitute ( const QCString & str,
const QCString & find,
const QCString & replace )

substitute all occurrences of src in s by dst

Definition at line 482 of file qcstring.cpp.

483{
484 if (s.isEmpty() || src.isEmpty()) return s;
485 const char *q = nullptr, *p = nullptr;
486 size_t srcLen = src.length();
487 size_t dstLen = dst.length();
488 size_t resLen = 0;
489 if (srcLen!=dstLen)
490 {
491 int count = 0;
492 for (p = s.data(); (q=strstr(p,src.data()))!=nullptr; p=q+srcLen) count++;
493 resLen = s.length()+count*(dstLen-srcLen);
494 }
495 else // result has same size as s
496 {
497 resLen = s.length();
498 }
499 QCString result(resLen, QCString::ExplicitSize);
500 char *r = result.rawData();
501 for (p = s.data(); (q=strstr(p,src.data()))!=nullptr; p=q+srcLen)
502 {
503 int l = static_cast<int>(q-p);
504 memcpy(r,p,l);
505 r+=l;
506
507 if (dstLen>0) memcpy(r,dst.data(),dstLen);
508 r+=dstLen;
509 }
510 if (r)
511 {
512 qstrcpy(r,p);
513 }
514 //printf("substitute(%s,%s,%s)->%s\n",s,src,dst,result.data());
515 return result;
516}

References QCString::data(), QCString::ExplicitSize, QCString::isEmpty(), QCString::length(), qstrcpy(), and QCString::rawData().

Referenced by abbreviate(), addEnumValuesToEnums(), FlowChart::addFlowChart(), addFrom(), addGlobalFunction(), HtmlHelpIndex::addItem(), MemberDefImpl::addListReference(), addMemberFunction(), addMethodToClass(), addModule(), addPageToContext(), Markdown::Private::addStrEscapeUtf8Nbsp(), addVariable(), addVariableToClass(), buildListOfUsingDecls(), buildNamespaceList(), convertFileId2Var(), Portable::correctPath(), MemberDefImpl::displayDefinition(), findDirDocumentation(), DocParser::findDocsForMemberOrCompound(), findGroupScope(), findMember(), findUsingDeclarations(), findUsingDirectives(), fixSpaces(), format_warn(), generateClassOrGlobalLink(), generateClassOrGlobalLink(), generateJSNavTree(), RefList::generatePage(), VhdlDocGen::getClassName(), getDefsOld(), DocPara::handleStartCode(), HtmlGenerator::init(), linkifyText(), linkToText(), makeDisplayName(), makeDisplayName(), matchExcludedSymbols(), Markdown::process(), Markdown::Private::processLink(), processTagLessClasses(), resolveRef(), DotFilePatcher::run(), SearchIndex::setCurrentDoc(), stripIndentation(), substitute(), substituteHtmlKeywords(), substituteLatexKeywords(), Portable::system(), ConfigImpl::takeStartComment(), ConfigImpl::takeStoreRepl(), ConfigImpl::takeUserComment(), unescapeCRef(), validatingParseDoc(), warn_line(), MemberDefImpl::warnIfUndocumented(), writeAlphabeticalClassList(), MemberDefImpl::writeDeclaration(), MemberList::writeDeclarations(), writeDefArgumentList(), writeDefaultLayoutFile(), MemberDefImpl::writeDocumentation(), writeJavaScriptSearchIndex(), HtmlGenerator::writeNavigationPath(), PlantumlManager::writePlantUMLSource(), HtmlGenerator::writeSearchData(), HtmlGenerator::writeSearchPage(), and VhdlDocGen::writeVHDLTypeDocumentation().

◆ toStdString()

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

Definition at line 702 of file qcstring.h.

703{
704 return s.str();
705}

References QCString::str().

Referenced by SectionRefs::add(), expandExpression(), and replaceFunctionMacro().