Project

Profile

Help

Revision 6304fb8b

Added by O'Neil Delpratt 5 months ago

Saxon/C bug fixes and development work

View differences:

latest10/hec/Saxon.C.API/XPathProcessor.h
63 63
   XdmValue * evaluate(const char * xpathStr);
64 64
   
65 65

  
66
    //! Compile and evaluate an XPath expression. The result is expected to be a single XdmItem
66
    //! Compile and evaluate an XPath expression. The result is expected to be a single XdmItem or nullptr
67 67
   /**
68 68
     * @param xpathStr - supplied as a character string
69
	@return XdmItem
69
	@return XdmItem - XdmItem object or nullptr if the expression returns an empty sequence.
70
    * If the expression returns a sequence of more than one item, any items after the first are ignored.
70 71
   */
71 72
   XdmItem * evaluateSingle(const char * xpathStr);
72 73

  
......
90 91
     * Set a parameter value used in the query
91 92
     *s
92 93
     * @param name  of the parameter, as a string. For namespaced parameter use the JAXP solution i.e. "{uri}name"
93
     * @param value of the query parameter, or null to clear a previously set value
94
     * @param value of the query parameter, or nullptr to clear a previously set value
94 95
     */
95 96
    void setParameter(const char * name, XdmValue*value);
96 97

  
......
121 122
     *               in this case the prefix will not be available for use, except in the case where the prefix
122 123
     *               is also a zero length string, in which case the absence of a prefix implies that the name
123 124
     *               is in no namespace.
124
     * Assume the prefix or uri is null.
125
     * Assume the prefix or uri is nullptr.
125 126
     */
126 127
    void declareNamespace(const char *prefix, const char * uri);
127 128

  
......
228 229

  
229 230
     //! Check for exception thrown.
230 231
	/**
231
	* @return cha*. Returns the exception message if thrown otherwise return NULL
232
	* @return cha*. Returns the exception message if thrown otherwise return nullptr
232 233
	*/
233 234
    const char* checkException();
234 235

  

Also available in: Unified diff