index abbbb090060da6ec5506b4810b13e7ce6f3838dd..bbe0fcc40c98f4d2d2c0a75a36b2239a9b1fe296 100644 (file)
--- a/src/dom/xpathparser.cpp
+++ b/src/dom/xpathparser.cpp
* Authors:
* Bob Jamison
*
- * Copyright (C) 2006 Bob Jamison
+ * Copyright (C) 2006-2007 Bob Jamison
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
*/
-#include "charclass.h"
+#include "ucd.h"
#include "xpathparser.h"
while (p < parselen)
{
int ch = peek(p);
- if (!isWhitespace(ch))
+ if (!uni_is_space(ch))
break;
ch = get(p++);
}
while (p < parselen)
{
int ch = peek(p);
- if (!isLetterOrDigit(ch))
+ if (!uni_is_letter_or_digit(ch))
break;
ch = get(p++);
str.push_back((XMLCh)ch);
return p0;
seen_eminus = true;
}
- else if (!isDigit(ch))
+ else if (!uni_is_digit(ch))
break;
num.push_back((XMLCh)ch);
i++;
{
int p = p0;
int ch = peek(p);
- if (ch != '_' && !isLetter(ch))
+ if (ch != '_' && !uni_is_letter(ch))
return p0;
result.push_back((XMLCh)ch);
while (p < parselen)
{
ch = peek(p);
- if ( isLetterOrDigit(ch) ||
- isCombiningChar(ch) ||
- isExtender(ch) ||
+ if ( uni_is_letter_or_digit(ch) ||
+ // isCombiningChar(ch) ||
+ // isExtender(ch) ||
ch == '.' || ch == '-' || ch == '_' )
{
result.push_back((XMLCh)ch);
* This wraps the two-step call to parse(), then execute() to get a NodeList
* of matching DOM nodes
*/
-NodeList XPathParser::evaluate(const Node *root,
+NodeList XPathParser::evaluate(const NodePtr root,
const DOMString &xpathString)
{
NodeList list;