|
Doxygen
|
#include <string>#include <string_view>#include <algorithm>#include <cctype>#include <cstring>#include <cstdio>#include <cstdlib>#include <cstdint>#include <ostream>#include "utf8.h"Go to the source code of this file.
Classes | |
| class | DString |
| A String class for use with Doxygen wrapping std::string and adding some additional functionality offered by QCString. More... | |
| struct | std::hash< DString > |
Namespaces | |
| namespace | std |
Macros | |
| #define | ASSERT(x) |
| #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 | |
| char * | dstrdup (const char *s) |
| void | dstrfree (const char *s) |
| Frees the memory allocated using dstrdup(). | |
| uint32_t | dstrlen (const char *str) |
| Returns the length of string str, or 0 if a null pointer is passed. | |
| char * | dstrcpy (char *dst, const char *src) |
| char * | dstrncpy (char *dst, const char *src, size_t len) |
| bool | disempty (const char *s) |
| int | dstrcmp (const char *str1, const char *str2) |
| int | dstrncmp (const char *str1, const char *str2, size_t len) |
| bool | disspace (char c) |
| int | dstricmp (const char *str1, const char *str2) |
| int | dstricmp_sort (const char *str1, const char *str2) |
| int | dstrnicmp (const char *str1, const char *str2, size_t len) |
| bool | operator== (const DString &s1, const DString &s2) |
| bool | operator== (const DString &s1, const char *s2) |
| bool | operator== (const char *s1, const DString &s2) |
| bool | operator!= (const DString &s1, const DString &s2) |
| bool | operator!= (const DString &s1, const char *s2) |
| bool | operator!= (const char *s1, const DString &s2) |
| bool | operator< (const DString &s1, const DString &s2) |
| bool | operator< (const DString &s1, const char *s2) |
| bool | operator< (const char *s1, const DString &s2) |
| bool | operator<= (const DString &s1, const char *s2) |
| bool | operator<= (const char *s1, const DString &s2) |
| bool | operator> (const DString &s1, const char *s2) |
| bool | operator> (const char *s1, const DString &s2) |
| bool | operator>= (const DString &s1, const char *s2) |
| bool | operator>= (const char *s1, const DString &s2) |
| DString | operator+ (const DString &s1, const DString &s2) |
| DString | operator+ (const DString &s1, const char *s2) |
| DString | operator+ (const char *s1, const DString &s2) |
| const char * | qPrint (const char *s) |
| const char * | qPrint (const DString &s) |
| const char * | qPrint (const std::string &s) |
| std::string | toStdString (const DString &s) |
| int | dstrcmp (const DString &str1, const char *str2) |
| int | dstrcmp (const char *str1, const DString &str2) |
| int | dstrcmp (const DString &str1, const DString &str2) |
| int | dstricmp (const DString &str1, const char *str2) |
| int | dstricmp (const char *str1, const DString &str2) |
| int | dstricmp (const DString &str1, const DString &str2) |
| int | dstricmp_sort (const DString &str1, const char *str2) |
| int | dstricmp_sort (const char *str1, const DString &str2) |
| int | dstricmp_sort (const DString &str1, const DString &str2) |
| int | dstrnicmp (const DString &str1, const char *str2, size_t len) |
| int | dstrnicmp (const char *str1, const DString &str2, size_t len) |
| int | dstrnicmp (const DString &str1, const DString &str2, size_t len) |
| DString | substitute (const DString &str, const DString &find, const DString &replace) |
| substitute all occurrences of src in s by dst | |
| DString | substitute (const DString &str, const char *find, const char *replace) |
| DString | substitute (const DString &s, const DString &src, const DString &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 | |
| DString | substitute (const DString &s, char srcChar, char dstChar) |
| std::ostream & | operator<< (std::ostream &os, const DString &s) |
| void | swap (DString &s1, DString &s2) |
| #define ASSERT | ( | x | ) |
Definition at line 29 of file dstring.h.
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().
| using JavaCCString = std::basic_string<JAVACC_CHAR_TYPE> |
|
inline |
Definition at line 52 of file dstring.h.
References disempty().
Referenced by disempty(), dstrcmp(), and dstrncmp().
|
inline |
Definition at line 67 of file dstring.h.
References disspace().
Referenced by disspace(), AnchorGenerator::generate(), Markdown::Private::processQuotations(), DString::quoted(), removeRedundantWhiteSpace(), DString::removeWhiteSpace(), DString::simplifyWhiteSpace(), DString::stripWhiteSpace(), DString::toLong(), DString::toUInt64(), DString::toULong(), and DotAttributes::updateValue().
|
inline |
Definition at line 55 of file dstring.h.
References disempty(), and dstrcmp().
Referenced by convertMapFile(), dstrcmp(), dstrcmp(), dstrcmp(), dstrcmp(), dstricmp_sort(), KeywordHash::find(), operator!=(), operator!=(), operator<(), operator<(), operator<(), operator<=(), operator<=(), operator==(), operator==(), operator>(), operator>(), operator>=(), operator>=(), readConfiguration(), startFontClass(), startFontClass(), and startFontClass().
|
inline |
Definition at line 796 of file dstring.h.
References DString::data(), and dstrcmp().
|
inline |
|
inline |
Definition at line 47 of file dstring.h.
References dstrcpy().
Referenced by dstrcpy(), SymbolResolver::Private::getResolvedTypeRec(), substitute(), and substitute().
| char * dstrdup | ( | const char * | s | ) |
Returns a copy of a string s. Note that memory is passed to the caller, use dstrfree() to release.
Definition at line 415 of file dstring.cpp.
References dstrdup(), and dstrlen().
Referenced by dstrdup().
| void dstrfree | ( | const char * | s | ) |
Frees the memory allocated using dstrdup().
Definition at line 422 of file dstring.cpp.
References dstrfree().
Referenced by dstrfree().
| int dstricmp | ( | const char * | str1, |
| const char * | str2 ) |
Definition at line 435 of file dstring.cpp.
References dstricmp(), and toLowerChar().
Referenced by compareString(), dstricmp(), dstricmp(), dstricmp(), dstricmp(), dstricmp_sort(), VhdlDocGen::findAllArchitectures(), DocGroup::findExistingGroup(), FlowChart::findLabel(), VhdlDocGen::findVhdlClass(), readConfiguration(), stripFromPath(), transcodeCharacterBuffer(), transcodeCharacterStringToUTF8(), FlowChart::writeFlowLinks(), ClassDefImpl::writeIncludeFilesForSlice(), and VhdlDocGen::writeProcedureProto().
|
inline |
|
inline |
Definition at line 806 of file dstring.h.
References DString::data(), and dstricmp().
Definition at line 816 of file dstring.h.
References DString::data(), and dstricmp().
|
inline |
Definition at line 72 of file dstring.h.
References dstrcmp(), dstricmp(), and dstricmp_sort().
Referenced by buildDirectories(), compareDirDefs(), compareFileDefs(), dstricmp_sort(), dstricmp_sort(), dstricmp_sort(), dstricmp_sort(), genericCompareMembers(), DirDefImpl::matchPath(), parseInput(), searchInputFiles(), FileDefImpl::sortMemberLists(), GroupDefImpl::sortMemberLists(), ModuleDefImpl::sortMemberLists(), NamespaceDefImpl::sortMemberLists(), Requirement::sortReferences(), and HtmlHelpIndex::writeFields().
|
inline |
Definition at line 826 of file dstring.h.
References DString::data(), and dstricmp_sort().
|
inline |
Definition at line 821 of file dstring.h.
References DString::data(), and dstricmp_sort().
Definition at line 831 of file dstring.h.
References DString::data(), and dstricmp_sort().
|
inline |
Returns the length of string str, or 0 if a null pointer is passed.
Definition at line 44 of file dstring.h.
References dstrlen().
Referenced by DString::contains(), dstrdup(), dstrlen(), DocParser::findDocsForMemberOrCompound(), getArg(), DString::insert(), VhdlDocGen::prepareComment(), DString::rfind_insensitive(), selectBlocks(), substituteKeywords(), writeClassTreeInsideNamespaceElement(), writeNamespaceIndex(), and writeNamespaceTreeElement().
|
inline |
Definition at line 61 of file dstring.h.
References disempty(), and dstrncmp().
Referenced by checkBlocks(), DString::contains(), dstrncmp(), Markdown::Private::findEmphasisChar(), Markdown::Private::findEndOfLine(), literal_at(), literal_at(), Markdown::Private::processBlocks(), Markdown::Private::processQuotations(), Markdown::Private::processSpecialCommand(), removeIdsAndMarkers(), selectBlocks(), skipToEndMarker(), substitute(), and substituteKeywords().
| char * dstrncpy | ( | char * | dst, |
| const char * | src, | ||
| size_t | len ) |
Definition at line 427 of file dstring.cpp.
References dstrncpy().
Referenced by dstrncpy().
| int dstrnicmp | ( | const char * | str1, |
| const char * | str2, | ||
| size_t | len ) |
Definition at line 453 of file dstring.cpp.
References dstrnicmp(), and toLowerChar().
Referenced by DString::contains(), dstrnicmp(), dstrnicmp(), dstrnicmp(), dstrnicmp(), and DString::rfind_insensitive().
|
inline |
|
inline |
Definition at line 837 of file dstring.h.
References DString::data(), and dstrnicmp().
Definition at line 847 of file dstring.h.
References DString::data(), and dstrnicmp().
|
inline |
Definition at line 719 of file dstring.h.
References DString::data(), dstrcmp(), and operator!=().
|
inline |
Definition at line 716 of file dstring.h.
References DString::data(), dstrcmp(), and operator!=().
Definition at line 762 of file dstring.h.
References DString::append(), and operator+().
Definition at line 755 of file dstring.h.
References DString::append(), and operator+().
Definition at line 749 of file dstring.h.
References DString::DString(), operator+(), and DString::str().
Referenced by operator+(), operator+(), and operator+().
|
inline |
Definition at line 728 of file dstring.h.
References DString::data(), dstrcmp(), and operator<().
|
inline |
Definition at line 725 of file dstring.h.
References DString::data(), dstrcmp(), and operator<().
Definition at line 722 of file dstring.h.
References DString::data(), dstrcmp(), and operator<().
Referenced by operator<(), operator<(), and operator<().
|
inline |
Definition at line 867 of file dstring.h.
References operator<<(), and DString::str().
Referenced by operator<<().
|
inline |
Definition at line 734 of file dstring.h.
References DString::data(), dstrcmp(), and operator<=().
|
inline |
Definition at line 731 of file dstring.h.
References DString::data(), dstrcmp(), and operator<=().
Referenced by operator<=(), and operator<=().
|
inline |
Definition at line 710 of file dstring.h.
References DString::data(), dstrcmp(), and operator==().
|
inline |
Definition at line 707 of file dstring.h.
References DString::data(), dstrcmp(), and operator==().
Definition at line 704 of file dstring.h.
References operator==(), and DString::str().
|
inline |
Definition at line 740 of file dstring.h.
References DString::data(), dstrcmp(), and operator>().
|
inline |
Definition at line 737 of file dstring.h.
References DString::data(), dstrcmp(), and operator>().
Referenced by operator>(), and operator>().
|
inline |
Definition at line 746 of file dstring.h.
References DString::data(), dstrcmp(), and operator>=().
|
inline |
Definition at line 743 of file dstring.h.
References DString::data(), dstrcmp(), and operator>=().
Referenced by operator>=(), and operator>=().
|
inline |
Definition at line 769 of file dstring.h.
References qPrint().
Referenced by addIncludeFile(), ModuleDefImpl::addMemberToModule(), addModule(), addSubprogram(), DirDefImpl::addUsesDependency(), addVariable(), addXRefItemToEntry(), buildFileList(), Config::checkAndCorrect(), DocParser::checkArgumentName(), cleanupInlineGraph(), 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(), getLink(), getLinkInScope(), handle_warn_as_error(), handleCommentBlock(), DocParser::handleRef(), handleToc(), mergeArguments(), 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()(), PrintDocVisitor::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(), qPrint(), qPrint(), qPrint(), 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().
|
inline |
Definition at line 774 of file dstring.h.
References DString::data(), DString::empty(), and qPrint().
|
inline |
Definition at line 860 of file dstring.h.
References DString::DString(), DString::str(), and substitute().
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 517 of file dstring.cpp.
References DString::data(), dstrcpy(), dstrncmp(), DString::empty(), DString::ExplicitSize, DString::length(), DString::rawData(), DString::resize(), and substitute().
Definition at line 854 of file dstring.h.
References DString::DString(), and substitute().
substitute all occurrences of src in s by dst
Definition at line 476 of file dstring.cpp.
References DString::data(), dstrcpy(), DString::empty(), DString::ExplicitSize, DString::length(), DString::rawData(), and substitute().
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(), generateJSLink(), generateJSNavTree(), RefList::generatePage(), VhdlDocGen::getClassName(), DocPara::handleStartCode(), HtmlGenerator::init(), linkifyText(), linkToText(), makeDisplayName(), makeDisplayName(), matchExcludedSymbols(), Markdown::process(), Markdown::Private::processLink(), resolveRef(), DotFilePatcher::run(), SearchIndex::setCurrentDoc(), stripIndentation(), substitute(), substitute(), substitute(), 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().
Definition at line 873 of file dstring.h.
References DString::swap(), and swap().
Referenced by swap().
|
inline |
Definition at line 784 of file dstring.h.
References DString::str(), and toStdString().
Referenced by SectionRefs::add(), expandExpression(), replaceFunctionMacro(), and toStdString().