Public Member Functions | |
XPath () | |
XPath (string path) | |
Public Attributes | |
bool | _absolute |
Private Member Functions | |
bool | init (string path) |
Definition at line 44 of file XPath.cs.
XMLStorage::XPath::XPath | ( | ) | [inline] |
XMLStorage::XPath::XPath | ( | string | path ) | [inline] |
bool XMLStorage::XPath::init | ( | string | path ) | [inline, private] |
Definition at line 58 of file XPath.cs.
References XMLStorage::XPathElement::parse().
Referenced by XPath().
{ bool absolute; int idx = 0; // Is this an absolute path? if (path.Length>0 && path[0]=='/') { absolute = true; ++idx; } else absolute = false; // parse path while(idx < path.Length) { XPathElement elem = new XPathElement(); idx = elem.parse(path, idx); if (idx == -1) break; AddLast(elem); if (idx >= path.Length) break; if (path[idx] == '/') ++idx; } return absolute; }
Definition at line 46 of file XPath.cs.
Referenced by XMLStorage::XMLStreamReader::go(), XMLStorage::XMLPos::go(), and XPath().