Doxygen
|
#include "qcstring.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) |
void * | qmemmove (void *dst, const void *src, size_t len) |
char * | qstrdup (const char *str) |
Returns a copy of a string s. | |
void | qstrfree (const char *str) |
Frees the memory allocated using qstrdup(). | |
char * | qstrncpy (char *dst, const char *src, size_t len) |
int | qstricmp (const char *s1, const char *s2) |
int | qstrnicmp (const char *s1, const char *s2, size_t len) |
QCString | substitute (const QCString &s, const QCString &src, const QCString &dst) |
substitute all occurrences of src in s by dst | |
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 | |
|
static |
Definition at line 219 of file qcstring.cpp.
Referenced by QCString::toLong(), QCString::toUInt64(), and QCString::toULong().
void * qmemmove | ( | void * | dst, |
const void * | src, | ||
size_t | len ) |
Definition at line 402 of file qcstring.cpp.
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 419 of file qcstring.cpp.
References qstrlen().
void qstrfree | ( | const char * | str | ) |
Frees the memory allocated using qstrdup().
Definition at line 427 of file qcstring.cpp.
int qstricmp | ( | const char * | s1, |
const char * | s2 ) |
Definition at line 442 of file qcstring.cpp.
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().
char * qstrncpy | ( | char * | dst, |
const char * | src, | ||
size_t | len ) |
Definition at line 432 of file qcstring.cpp.
Referenced by do_warn().
int qstrnicmp | ( | const char * | s1, |
const char * | s2, | ||
size_t | len ) |
Definition at line 458 of file qcstring.cpp.
References toLowerChar().
Referenced by QCString::contains(), QCString::find(), QCString::findRev(), qstrnicmp(), qstrnicmp(), and qstrnicmp().
substitute all occurrences of src in s by dst
Definition at line 477 of file qcstring.cpp.
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(), DocParser::checkUnOrMultipleDocumentedParams(), convertFileId2Var(), ResourceMgr::copyResourceAs(), Portable::correctPath(), MemberDefImpl::displayDefinition(), findDirDocumentation(), DocParser::findDocsForMemberOrCompound(), findGlobalMember(), findGroupScope(), findMember(), findUsingDeclarations(), findUsingDirectives(), fixSpaces(), format_warn(), generateClassOrGlobalLink(), generateClassOrGlobalLink(), generateJSNavTree(), RefList::generatePage(), VhdlDocGen::getClassName(), getDefsOld(), DocPara::handleStartCode(), HtmlGenerator::init(), 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().
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 518 of file qcstring.cpp.
References QCString::data(), QCString::ExplicitSize, QCString::isEmpty(), QCString::length(), qstrcpy(), qstrncmp(), QCString::rawData(), and QCString::resize().
|
inline |
Definition at line 24 of file qcstring.cpp.
Referenced by QCString::contains(), QCString::find(), QCString::findRev(), qstricmp(), and qstrnicmp().