|
Doxygen
|
#include <algorithm>#include <cctype>#include <cstdint>#include <cstdio>#include <cstdlib>#include <cstring>#include <ostream>#include <string>#include <string_view>#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) |
| bool | isId (int c) |
| Returns true if c is a valid character for an identifier. | |
| DString | generateMarker (int id) |
| #define ASSERT | ( | x | ) |
Definition at line 28 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 51 of file dstring.h.
Referenced by dstrcmp(), and dstrncmp().
|
inline |
Definition at line 66 of file dstring.h.
Referenced by 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 54 of file dstring.h.
References disempty().
Referenced by convertMapFile(), 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 814 of file dstring.h.
References DString::data(), and dstrcmp().
|
inline |
|
inline |
Definition at line 46 of file dstring.h.
Referenced by 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 420 of file dstring.cpp.
References dstrlen().
| void dstrfree | ( | const char * | s | ) |
Frees the memory allocated using dstrdup().
Definition at line 427 of file dstring.cpp.
| int dstricmp | ( | const char * | str1, |
| const char * | str2 ) |
Definition at line 440 of file dstring.cpp.
References toLowerChar().
Referenced by compareString(), 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 824 of file dstring.h.
References DString::data(), and dstricmp().
Definition at line 834 of file dstring.h.
References DString::data(), and dstricmp().
|
inline |
Definition at line 71 of file dstring.h.
References dstrcmp(), and dstricmp().
Referenced by buildDirectories(), compareDirDefs(), compareFileDefs(), 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 844 of file dstring.h.
References DString::data(), and dstricmp_sort().
|
inline |
Definition at line 839 of file dstring.h.
References DString::data(), and dstricmp_sort().
Definition at line 849 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 43 of file dstring.h.
Referenced by DString::contains(), dstrdup(), DocParser::findDocsForMemberOrCompound(), getArg(), DString::insert(), VhdlDocGen::prepareComment(), DString::rfind_insensitive(), selectBlocks(), substituteKeywords(), writeClassTreeInsideNamespaceElement(), writeNamespaceIndex(), and writeNamespaceTreeElement().
|
inline |
Definition at line 60 of file dstring.h.
References disempty().
Referenced by checkBlocks(), DString::contains(), 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 432 of file dstring.cpp.
| int dstrnicmp | ( | const char * | str1, |
| const char * | str2, | ||
| size_t | len ) |
Definition at line 458 of file dstring.cpp.
References toLowerChar().
Referenced by DString::contains(), dstrnicmp(), dstrnicmp(), dstrnicmp(), and DString::rfind_insensitive().
|
inline |
|
inline |
Definition at line 855 of file dstring.h.
References DString::data(), and dstrnicmp().
Definition at line 865 of file dstring.h.
References DString::data(), and dstrnicmp().
|
inline |
Returns a place holder for a position in a list. Used for translators to be able to specify different elements orders depending on whether text flows from left to right or visa versa.
Definition at line 908 of file dstring.h.
Referenced by TranslatorAfrikaans::trWriteList(), TranslatorArabic::trWriteList(), TranslatorArmenian::trWriteList(), TranslatorBrazilian::trWriteList(), TranslatorBulgarian::trWriteList(), TranslatorCatalan::trWriteList(), TranslatorChinese::trWriteList(), TranslatorChinesetraditional::trWriteList(), TranslatorCroatian::trWriteList(), TranslatorCzech::trWriteList(), TranslatorDanish::trWriteList(), TranslatorDutch::trWriteList(), TranslatorEnglish::trWriteList(), TranslatorEsperanto::trWriteList(), TranslatorFinnish::trWriteList(), TranslatorFrench::trWriteList(), TranslatorGerman::trWriteList(), TranslatorGreek::trWriteList(), TranslatorHindi::trWriteList(), TranslatorHungarian::trWriteList(), TranslatorIndonesian::trWriteList(), TranslatorItalian::trWriteList(), TranslatorJapanese::trWriteList(), TranslatorKorean::trWriteList(), TranslatorLatvian::trWriteList(), TranslatorLithuanian::trWriteList(), TranslatorMacedonian::trWriteList(), TranslatorNorwegian::trWriteList(), TranslatorPersian::trWriteList(), TranslatorPolish::trWriteList(), TranslatorPortuguese::trWriteList(), TranslatorRomanian::trWriteList(), TranslatorRussian::trWriteList(), TranslatorSerbian::trWriteList(), TranslatorSerbianCyrillic::trWriteList(), TranslatorSlovak::trWriteList(), TranslatorSlovene::trWriteList(), TranslatorSpanish::trWriteList(), TranslatorSwedish::trWriteList(), TranslatorTurkish::trWriteList(), TranslatorUkrainian::trWriteList(), and TranslatorVietnamese::trWriteList().
|
inline |
Returns true if c is a valid character for an identifier.
Valid characters are: letters, digits, underscore, dollar sign and any character with a value >= 128.
Definition at line 899 of file dstring.h.
Referenced by addTemplateNames(), SearchIndexExternal::addWord(), convertToHtml(), convertToXML(), MemberDefImpl::displayDefinition(), escapeId(), filterLatexString(), findEndOfCommand(), getNextId(), matchExcludedSymbols(), nameIsOperator(), processConcatOperators(), Markdown::Private::processLink(), removeIdsAndMarkers(), removeRedundantWhiteSpace(), replaceAliases(), splitKnRArg(), splitSearchTokens(), startsWithKeyword(), stripIrrelevantString(), substituteTemplateArgumentsInString(), tempArgListToString(), MemberDefImpl::writeDocumentation(), and PlantumlManager::writePlantUMLSource().
|
inline |
|
inline |
Definition at line 780 of file dstring.h.
References DString::append().
Definition at line 773 of file dstring.h.
References DString::append().
|
inline |
|
inline |
|
inline |
Definition at line 885 of file dstring.h.
References DString::str().
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 722 of file dstring.h.
References DString::str().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 787 of file dstring.h.
Referenced by addIncludeFile(), ModuleDefImpl::addMemberToModule(), addModule(), addSubprogram(), DirDefImpl::addUsesDependency(), addVariable(), addXRefItemToEntry(), buildFileList(), Config::checkAndCorrect(), DocParser::checkArgumentName(), cleanupInlineGraphs(), 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(), 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().
|
inline |
Definition at line 792 of file dstring.h.
References DString::data(), and DString::empty().
|
inline |
Definition at line 878 of file dstring.h.
References DString::str().
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 522 of file dstring.cpp.
References DString::data(), dstrcpy(), dstrncmp(), DString::empty(), DString::ExplicitSize, DString::length(), DString::rawData(), and DString::resize().
Definition at line 872 of file dstring.h.
References substitute().
substitute all occurrences of src in s by dst
Definition at line 481 of file dstring.cpp.
References DString::data(), dstrcpy(), DString::empty(), DString::ExplicitSize, DString::length(), and DString::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(), HtmlGenerator::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(), 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 891 of file dstring.h.
References DString::swap().
|
inline |
Definition at line 802 of file dstring.h.
References DString::str().
Referenced by SectionRefs::add(), expandExpression(), and replaceFunctionMacro().