Doxygen
|
Namespace for the regular expression functions 更多...
类 | |
class | Ex |
Class representing a regular expression. 更多... | |
class | Iterator |
Iterator class to iterator through matches. 更多... | |
class | Match |
Object representing the matching results. 更多... | |
class | PToken |
Class representing a token in the compiled regular expression token stream. 更多... | |
class | SubMatch |
Object representing the match results of a capture range. 更多... | |
函数 | |
static bool | isspace (char c) |
static bool | isalpha (char c) |
static bool | isdigit (char c) |
static bool | isalnum (char c) |
static std::string | wildcard2regex (const std::string &pattern) |
bool | search (const std::string &str, Match &match, const Ex &re, size_t pos=0) |
Search in a given string str starting at position pos for a match against regular expression re. 更多... | |
bool | search (const std::string &str, const Ex &re, size_t pos=0) |
Search in a given string str starting at position pos for a match against regular expression re. 更多... | |
bool | match (const std::string &str, Match &match, const Ex &re) |
Matches a given string str for a match against regular expression re. 更多... | |
bool | match (const std::string &str, const Ex &re) |
Matches a given string str for a match against regular expression re. 更多... | |
std::string | replace (const std::string &str, const Ex &re, const std::string &replacement) |
Searching in a given input string for parts that match regular expression re and replaces those parts by string replacement. 更多... | |
Namespace for the regular expression functions
|
inlinestatic |
被这些函数引用 isId(), isIdJS(), reg::Ex::Private::matchAt() , 以及 nextUTF8CharPosition().
|
inlinestatic |
|
inlinestatic |
被这些函数引用 isalnum(), reg::Ex::Private::matchAt() , 以及 nextUTF8CharPosition().
|
inlinestatic |
被这些函数引用 convertToHtml(), MemberDefImpl::displayDefinition(), HtmlCodeGenerator::docify(), HtmlDocVisitor::filter(), HtmlDocVisitor::filterQuotedCdataAttr(), reg::Ex::Private::matchAt(), DocIncOperator::parse(), removeRedundantWhiteSpace(), MemberDefImpl::setInitializer(), MemberDefImpl::writeDocumentation() , 以及 TextGeneratorHtml::writeString().
bool reg::match | ( | const std::string & | str, |
const Ex & | re | ||
) |
Matches a given string str for a match against regular expression re.
Returns true iff a match was found for the whole string.
引用了 reg::Ex::match() , 以及 match().
Matches a given string str for a match against regular expression re.
Returns true iff a match was found for the whole string. Any capture groups are returned via the match object.
引用了 reg::Ex::match().
被这些函数引用 addToIndices(), addVariableToFile(), DocParser::checkArgumentName(), VHDLOutlineParser::checkInlineCode(), convertCharEntitiesToUTF8(), MemberDefImpl::displayDefinition(), expandAliasRec(), extractCanonicalType(), extractClassNameFromType(), extractDirection(), extractTitleId(), filterTitle(), findAndRemoveWord(), findFunctionPtr(), findIndex(), findMembersWithSpecificName(), MemberDefImpl::getClassDefOfAnonymousType(), getDefs(), getFilterFromList(), getTemplateArgumentsInName(), DocParser::handleStyleArgument(), VhdlDocGen::isNumber(), isVarWithConstructor(), linkifyText(), loadExtensions(), loadStylesheet(), match(), matchArguments2(), matchExcludedSymbols(), normalizeNonTemplateArgumentsInString(), patternMatch(), removeAnonymousScopes(), TemplateNodeMarkers::render(), replace(), replaceColorMarkers(), search(), StyleData::setStyle(), simplifyTypeForTable(), split(), StyleData::StyleData(), substituteTemplateArgumentsInString(), substituteTemplatesInString(), MemberDefImpl::writeDeclaration(), MemberDefImpl::writeDocumentation() , 以及 writeMarkerList().
std::string reg::replace | ( | const std::string & | str, |
const Ex & | re, | ||
const std::string & | replacement | ||
) |
Searching in a given input string for parts that match regular expression re and replaces those parts by string replacement.
引用了 reg::Ex::match() , 以及 match().
被这些函数引用 VhdlDocGen::addBaseClass(), VHDLOutlineParser::checkInlineCode(), FileInfo::correctPath(), correctPath(), FlowChart::printNode(), replaceAnonymousScopes(), substitute() , 以及 TemplateNodeText::TemplateNodeText().
bool reg::search | ( | const std::string & | str, |
const Ex & | re, | ||
size_t | pos = 0 |
||
) |
Search in a given string str starting at position pos for a match against regular expression re.
Returns true iff a match was found. Details of what part of the string has matched is returned via the match object.
An example to show how to match all identifiers in a string.
produces:
引用了 reg::Ex::match() , 以及 match().
被这些函数引用 HtmlHelpIndex::addItem(), addVariableToFile(), VHDLOutlineParser::checkInlineCode(), MemberDefImpl::displayDefinition(), expandAliasRec(), extractTitleId(), findFunctionPtr(), findIndex(), MemberDefImpl::getClassDefOfAnonymousType(), isVarWithConstructor(), loadExtensions(), loadStylesheet(), matchExcludedSymbols(), StyleData::setStyle(), simplifyTypeForTable(), StyleData::StyleData(), MemberDefImpl::writeDeclaration() , 以及 MemberDefImpl::writeDocumentation().
|
static |
引用了 reg::Ex::p.