• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.14.38 API Reference
  • KDE Home
  • Contact Us
 

KHTML

  • khtml
  • XPath
Classes | Typedefs | Functions | Variables
khtml::XPath Namespace Reference

Classes

class  BinaryExprBase
struct  EvaluationContext
class  Expression
class  Filter
class  Function
class  FunctionLibrary
class  LocationPath
class  LogicalOp
class  Negative
class  Number
class  NumericOp
class  ParsedStatement
class  Path
class  Predicate
class  RelationOp
class  Step
class  String
struct  Token
class  Tokenizer
class  Union
class  Value
class  VariableReference

Typedefs

typedef SharedPtr< DOM::StaticNodeListImpl > DomNodeList

Functions

void collectChildrenRecursively (SharedPtr< DOM::StaticNodeListImpl > out, DOM::NodeImpl *root)
void collectChildrenReverse (SharedPtr< DOM::StaticNodeListImpl > out, DOM::NodeImpl *root)
void initTokenizer (const DOM::DOMString &string)
bool isRootDomNode (DOM::NodeImpl *node)
bool isRootDomNode (NodeImpl *node)
bool isValidContextNode (DOM::NodeImpl *node)
bool isValidContextNode (NodeImpl *node)
Expression * khtmlParseXPathStatement (const DOMString &statement, int &ec)
void khtmlxpathyyerror (const char *str)
int khtmlxpathyylex ()
DOM::NodeImpl * nextSiblingForFollowing (DOM::NodeImpl *node)
DOM::DOMString stringValue (DOM::NodeImpl *node)
DOMString stringValue (NodeImpl *node)
static QString stringValueImpl (NodeImpl *node)
DOM::NodeImpl * xpathFirstChild (DOM::NodeImpl *node)
DOM::NodeImpl * xpathLastChild (DOM::NodeImpl *node)
DOM::NodeImpl * xpathParentNode (DOM::NodeImpl *node)

Variables

static AxisNameMapping axisNames []
static unsigned int axisNamesCount = sizeof(axisNames) / sizeof(axisNames[0])
static FunctionMapping functions []
static const char *const nodeTypeNames []
static const unsigned int numFunctions = sizeof( functions ) / sizeof( functions[ 0 ] )

Typedef Documentation

◆ DomNodeList

typedef SharedPtr<DOM::StaticNodeListImpl> khtml::XPath::DomNodeList

Definition at line 41 of file util.h.

Function Documentation

◆ collectChildrenRecursively()

void khtml::XPath::collectChildrenRecursively ( SharedPtr< DOM::StaticNodeListImpl > out,
DOM::NodeImpl * root )

Definition at line 73 of file util.cpp.

◆ collectChildrenReverse()

void khtml::XPath::collectChildrenReverse ( SharedPtr< DOM::StaticNodeListImpl > out,
DOM::NodeImpl * root )

Definition at line 86 of file util.cpp.

◆ initTokenizer()

void khtml::XPath::initTokenizer ( const DOM::DOMString & string)

Definition at line 447 of file tokenizer.cpp.

◆ isRootDomNode() [1/2]

bool khtml::XPath::isRootDomNode ( DOM::NodeImpl * node)

◆ isRootDomNode() [2/2]

bool khtml::XPath::isRootDomNode ( NodeImpl * node)

Definition at line 35 of file util.cpp.

◆ isValidContextNode() [1/2]

bool khtml::XPath::isValidContextNode ( DOM::NodeImpl * node)

◆ isValidContextNode() [2/2]

bool khtml::XPath::isValidContextNode ( NodeImpl * node)

Definition at line 99 of file util.cpp.

◆ khtmlParseXPathStatement()

Expression * khtml::XPath::khtmlParseXPathStatement ( const DOMString & statement,
int & ec )

Definition at line 2170 of file parser.cpp.

◆ khtmlxpathyyerror()

void khtml::XPath::khtmlxpathyyerror ( const char * str)

Definition at line 2183 of file parser.cpp.

◆ khtmlxpathyylex()

int khtml::XPath::khtmlxpathyylex ( )

Definition at line 436 of file tokenizer.cpp.

◆ nextSiblingForFollowing()

DOM::NodeImpl * khtml::XPath::nextSiblingForFollowing ( DOM::NodeImpl * node)

Definition at line 140 of file util.cpp.

◆ stringValue() [1/2]

DOM::DOMString khtml::XPath::stringValue ( DOM::NodeImpl * node)

◆ stringValue() [2/2]

DOMString khtml::XPath::stringValue ( NodeImpl * node)

Definition at line 68 of file util.cpp.

◆ stringValueImpl()

QString khtml::XPath::stringValueImpl ( NodeImpl * node)
static

Definition at line 40 of file util.cpp.

◆ xpathFirstChild()

DOM::NodeImpl * khtml::XPath::xpathFirstChild ( DOM::NodeImpl * node)

Definition at line 124 of file util.cpp.

◆ xpathLastChild()

DOM::NodeImpl * khtml::XPath::xpathLastChild ( DOM::NodeImpl * node)

Definition at line 132 of file util.cpp.

◆ xpathParentNode()

DOM::NodeImpl * khtml::XPath::xpathParentNode ( DOM::NodeImpl * node)

Definition at line 112 of file util.cpp.

Variable Documentation

◆ axisNames

AxisNameMapping khtml::XPath::axisNames[]
static
Initial value:
= {
{ "ancestor", Step::AncestorAxis },
{ "ancestor-or-self", Step::AncestorOrSelfAxis },
{ "attribute", Step::AttributeAxis },
{ "child", Step::ChildAxis },
{ "descendant", Step::DescendantAxis },
{ "descendant-or-self", Step::DescendantOrSelfAxis },
{ "following", Step::FollowingAxis },
{ "following-sibling", Step::FollowingSiblingAxis },
{ "namespace", Step::NamespaceAxis },
{ "parent", Step::ParentAxis },
{ "preceding", Step::PrecedingAxis },
{ "preceding-sibling", Step::PrecedingSiblingAxis },
{ "self", Step::SelfAxis }
}
khtml::XPath::Step::NamespaceAxis
@ NamespaceAxis
Definition step.h:48
khtml::XPath::Step::PrecedingAxis
@ PrecedingAxis
Definition step.h:49
khtml::XPath::Step::ParentAxis
@ ParentAxis
Definition step.h:49
khtml::XPath::Step::ChildAxis
@ ChildAxis
Definition step.h:47
khtml::XPath::Step::AttributeAxis
@ AttributeAxis
Definition step.h:46
khtml::XPath::Step::PrecedingSiblingAxis
@ PrecedingSiblingAxis
Definition step.h:49
khtml::XPath::Step::FollowingSiblingAxis
@ FollowingSiblingAxis
Definition step.h:48
khtml::XPath::Step::DescendantAxis
@ DescendantAxis
Definition step.h:47
khtml::XPath::Step::AncestorOrSelfAxis
@ AncestorOrSelfAxis
Definition step.h:46
khtml::XPath::Step::DescendantOrSelfAxis
@ DescendantOrSelfAxis
Definition step.h:47
khtml::XPath::Step::FollowingAxis
@ FollowingAxis
Definition step.h:48
khtml::XPath::Step::SelfAxis
@ SelfAxis
Definition step.h:50
khtml::XPath::Step::AncestorAxis
@ AncestorAxis
Definition step.h:46

Definition at line 49 of file tokenizer.cpp.

◆ axisNamesCount

unsigned int khtml::XPath::axisNamesCount = sizeof(axisNames) / sizeof(axisNames[0])
static

Definition at line 64 of file tokenizer.cpp.

◆ functions

FunctionMapping khtml::XPath::functions[]
static

Definition at line 827 of file functions.cpp.

◆ nodeTypeNames

const char* const khtml::XPath::nodeTypeNames[]
static
Initial value:
= {
"comment",
"text",
"processing-instruction",
"node",
0
}

Definition at line 66 of file tokenizer.cpp.

◆ numFunctions

const unsigned int khtml::XPath::numFunctions = sizeof( functions ) / sizeof( functions[ 0 ] )
static

Definition at line 861 of file functions.cpp.

This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Tue Mar 25 2025 00:00:00 by doxygen 1.14.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KHTML

Skip menu "KHTML"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdelibs-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal