You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by db...@apache.org on 2002/09/26 07:12:34 UTC
cvs commit: xml-xalan/c/src/XPath XPath.cpp XPath.hpp
dbertoni 2002/09/25 22:12:34
Modified: c/src/XPath XPath.cpp XPath.hpp
Log:
New overoads and inlines.
Revision Changes Path
1.77 +0 -27 xml-xalan/c/src/XPath/XPath.cpp
Index: XPath.cpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/XPath/XPath.cpp,v
retrieving revision 1.76
retrieving revision 1.77
diff -u -r1.76 -r1.77
--- XPath.cpp 26 Sep 2002 04:04:44 -0000 1.76
+++ XPath.cpp 26 Sep 2002 05:12:33 -0000 1.77
@@ -113,33 +113,6 @@
-void
-XPath::shrink()
-{
- m_expression.shrink();
-}
-
-
-
-void
-XPath::installFunction(
- const XalanDOMString& funcName,
- const Function& func)
-{
- s_functions.InstallFunction(funcName,
- func);
-}
-
-
-
-bool
-XPath::uninstallFunction(const XalanDOMString& funcName)
-{
- return s_functions.UninstallFunction(funcName);
-}
-
-
-
const XObjectPtr
XPath::execute(
XalanNode* context,
1.35 +40 -3 xml-xalan/c/src/XPath/XPath.hpp
Index: XPath.hpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/XPath/XPath.hpp,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -r1.34 -r1.35
--- XPath.hpp 21 Sep 2002 01:24:21 -0000 1.34
+++ XPath.hpp 26 Sep 2002 05:12:34 -0000 1.35
@@ -195,7 +195,10 @@
* Shrink internal tables.
*/
void
- shrink();
+ shrink()
+ {
+ m_expression.shrink();
+ }
/**
* Execute the XPath from the provided context.
@@ -391,7 +394,26 @@
static void
installFunction(
const XalanDOMString& funcName,
- const Function& func);
+ const Function& func)
+ {
+ s_functions.InstallFunction(funcName,
+ func);
+ }
+
+ /**
+ * Install a built-in function.
+ *
+ * @param funcName unqualified name of the function
+ * @param func instance of an XPath function object
+ */
+ static void
+ installFunction(
+ const XalanDOMChar* funcName,
+ const Function& func)
+ {
+ s_functions.InstallFunction(funcName,
+ func);
+ }
/**
* Remove a named function from the function table.
@@ -400,7 +422,22 @@
* @return true if the function was found and removed.
*/
static bool
- uninstallFunction(const XalanDOMString& funcName);
+ uninstallFunction(const XalanDOMString& funcName)
+ {
+ return s_functions.UninstallFunction(funcName);
+ }
+
+ /**
+ * Remove a named function from the function table.
+ *
+ * @param funcName name of function
+ * @return true if the function was found and removed.
+ */
+ static bool
+ uninstallFunction(const XalanDOMChar* funcName)
+ {
+ return s_functions.UninstallFunction(funcName);
+ }
/**
* Whether the named function is installed in the function table.
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org