|
Doxygen
|
#include "dstring.h"#include <limits.h>#include <stdlib.h>#include <stdio.h>#include <stdarg.h>#include <ctype.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 415 of file dstring.cpp.
References dstrdup(), and dstrlen().
Referenced by dstrdup().
| void dstrfree | ( | const char * | str | ) |
Frees the memory allocated using dstrdup().
Definition at line 422 of file dstring.cpp.
References dstrfree().
Referenced by dstrfree().
| int dstricmp | ( | const char * | s1, |
| const char * | s2 ) |
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().
| 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 * | s1, |
| const char * | s2, | ||
| 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().
|
static |
Definition at line 152 of file dstring.cpp.
References ok_in_base().
Referenced by ok_in_base(), DString::toLong(), DString::toUInt64(), and DString::toULong().
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().
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().
|
inline |
Definition at line 24 of file dstring.cpp.
References toLowerChar().
Referenced by DString::contains(), dstricmp(), dstrnicmp(), DString::rfind_insensitive(), and toLowerChar().