libhtmlpp 1.0.0
Loading...
Searching...
No Matches
Classes | Functions
anonymous_namespace{css.cpp} Namespace Reference

Classes

struct  CompoundParts
 

Functions

bool isWhitespace (char c)
 
std::string trim (const std::string &s)
 
bool stripImportant (std::string &value)
 
std::vector< libhtmlpp::AttributeConditionparseAttributeConditions (const std::string &sel)
 
bool attributeValueMatches (const std::string &op, const std::string &expected, const std::string &actual)
 
bool attributeConditionsSatisfied (const std::vector< libhtmlpp::AttributeCondition > &conditions, const std::map< std::string, std::string > *targetAttrs)
 
CompoundParts parseCompoundSelector (const std::string &matchSel)
 
bool compoundPartsMatch (const CompoundParts &compound, const std::string &tag, const std::vector< std::string > &classes, const std::string &id)
 
bool compoundMatches (const CompoundParts &compound, bool hadCombinator, const std::string &tag, const std::vector< std::string > &classes, const std::string &id, const std::map< std::string, std::string > *targetAttrs=nullptr)
 
std::vector< std::string > splitCombinatorChain (const std::string &selector)
 
bool ancestorChainSatisfies (const std::vector< CompoundParts > &ancestorCompounds, const std::vector< libhtmlpp::AncestorFrame > &ancestors, bool *usedUnverifiableAncestor=nullptr)
 
bool hasUnsupportedSelectorSyntax (const std::string &matchSel)
 
std::string stripAttributeSelectors (const std::string &matchSel)
 
size_t findMatchingParen (const std::string &s, size_t openPos)
 
std::array< int, 3 > computeSpecificity (const std::string &selector)
 
void splitVarArgs (const std::string &inner, std::string &name, std::string &fallback)
 
std::string substituteVars (const std::string &value, const std::map< std::string, std::string > &customProperties, std::set< std::string > &resolving, bool &sawUnresolved)
 

Function Documentation

◆ ancestorChainSatisfies()

bool anonymous_namespace{css.cpp}::ancestorChainSatisfies ( const std::vector< CompoundParts > &  ancestorCompounds,
const std::vector< libhtmlpp::AncestorFrame > &  ancestors,
bool *  usedUnverifiableAncestor = nullptr 
)

Definition at line 325 of file css.cpp.

◆ attributeConditionsSatisfied()

bool anonymous_namespace{css.cpp}::attributeConditionsSatisfied ( const std::vector< libhtmlpp::AttributeCondition > &  conditions,
const std::map< std::string, std::string > *  targetAttrs 
)

Definition at line 161 of file css.cpp.

◆ attributeValueMatches()

bool anonymous_namespace{css.cpp}::attributeValueMatches ( const std::string &  op,
const std::string &  expected,
const std::string &  actual 
)

Definition at line 138 of file css.cpp.

◆ compoundMatches()

bool anonymous_namespace{css.cpp}::compoundMatches ( const CompoundParts compound,
bool  hadCombinator,
const std::string &  tag,
const std::vector< std::string > &  classes,
const std::string &  id,
const std::map< std::string, std::string > *  targetAttrs = nullptr 
)

Definition at line 248 of file css.cpp.

◆ compoundPartsMatch()

bool anonymous_namespace{css.cpp}::compoundPartsMatch ( const CompoundParts compound,
const std::string &  tag,
const std::vector< std::string > &  classes,
const std::string &  id 
)

Definition at line 213 of file css.cpp.

◆ computeSpecificity()

std::array< int, 3 > anonymous_namespace{css.cpp}::computeSpecificity ( const std::string &  selector)

Definition at line 439 of file css.cpp.

◆ findMatchingParen()

size_t anonymous_namespace{css.cpp}::findMatchingParen ( const std::string &  s,
size_t  openPos 
)

Definition at line 405 of file css.cpp.

◆ hasUnsupportedSelectorSyntax()

bool anonymous_namespace{css.cpp}::hasUnsupportedSelectorSyntax ( const std::string &  matchSel)

Definition at line 361 of file css.cpp.

◆ isWhitespace()

bool anonymous_namespace{css.cpp}::isWhitespace ( char  c)

Definition at line 38 of file css.cpp.

◆ parseAttributeConditions()

std::vector< libhtmlpp::AttributeCondition > anonymous_namespace{css.cpp}::parseAttributeConditions ( const std::string &  sel)

Definition at line 100 of file css.cpp.

◆ parseCompoundSelector()

CompoundParts anonymous_namespace{css.cpp}::parseCompoundSelector ( const std::string &  matchSel)

Definition at line 174 of file css.cpp.

◆ splitCombinatorChain()

std::vector< std::string > anonymous_namespace{css.cpp}::splitCombinatorChain ( const std::string &  selector)

Definition at line 281 of file css.cpp.

◆ splitVarArgs()

void anonymous_namespace{css.cpp}::splitVarArgs ( const std::string &  inner,
std::string &  name,
std::string &  fallback 
)

Definition at line 487 of file css.cpp.

◆ stripAttributeSelectors()

std::string anonymous_namespace{css.cpp}::stripAttributeSelectors ( const std::string &  matchSel)

Definition at line 384 of file css.cpp.

◆ stripImportant()

bool anonymous_namespace{css.cpp}::stripImportant ( std::string &  value)

Definition at line 55 of file css.cpp.

◆ substituteVars()

std::string anonymous_namespace{css.cpp}::substituteVars ( const std::string &  value,
const std::map< std::string, std::string > &  customProperties,
std::set< std::string > &  resolving,
bool &  sawUnresolved 
)

Definition at line 512 of file css.cpp.

◆ trim()

std::string anonymous_namespace{css.cpp}::trim ( const std::string &  s)

Definition at line 42 of file css.cpp.