|
Doxygen
|
#include <limits.h>#include <stdlib.h>#include <stdio.h>#include <stdarg.h>#include <ctype.h>#include "dstring.h"#include "regex.h"Go to the source code of this file.
Functions | |
| char | toLowerChar (char c) |
| static bool | ok_in_base (char c, int base) |
| char * | dstrdup (const char *str) |
| void | dstrfree (const char *str) |
| Frees the memory allocated using dstrdup(). | |
| char * | dstrncpy (char *dst, const char *src, size_t len) |
| int | dstricmp (const char *s1, const char *s2) |
| int | dstrnicmp (const char *s1, const char *s2, size_t len) |
| DString | substitute (const DString &s, const DString &src, const DString &dst) |
| substitute all occurrences of src in s by dst | |
| 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 | |
| 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 * | str | ) |
Frees the memory allocated using dstrdup().
Definition at line 427 of file dstring.cpp.
| int dstricmp | ( | const char * | s1, |
| const char * | s2 ) |
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().
| char * dstrncpy | ( | char * | dst, |
| const char * | src, | ||
| size_t | len ) |
Definition at line 432 of file dstring.cpp.
| int dstrnicmp | ( | const char * | s1, |
| const char * | s2, | ||
| size_t | len ) |
Definition at line 458 of file dstring.cpp.
References toLowerChar().
Referenced by DString::contains(), dstrnicmp(), dstrnicmp(), dstrnicmp(), and DString::rfind_insensitive().
|
static |
Definition at line 157 of file dstring.cpp.
Referenced by DString::toLong(), DString::toUInt64(), and DString::toULong().
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().
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().
|
inline |
Definition at line 25 of file dstring.cpp.
Referenced by DString::contains(), dstricmp(), dstrnicmp(), and DString::rfind_insensitive().