This commit is contained in:
King_DuckZ 2020-02-17 22:17:06 +01:00
parent 27eff2f0ef
commit 4bc0157dcd
3020 changed files with 129849 additions and 76185 deletions

View file

@ -16,22 +16,14 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*
* $Id: FunctionStringLength.hpp 475 2008-01-08 18:47:44Z jpcs $
* $Id: FunctionStringLength.hpp 659 2008-10-06 00:11:22Z jpcs $
*/
/*
String-length function
*/
#ifndef _FUNCTIONSTRINGLENGTH_HPP
#define _FUNCTIONSTRINGLENGTH_HPP
#include <xqilla/ast/XQFunction.hpp>
/** String-length function. */
class XQILLA_API FunctionStringLength : public XQFunction
{
public:
@ -41,19 +33,10 @@ public:
FunctionStringLength(const VectorOfASTNodes &args, XPath2MemoryManager* memMgr);
/**
* Called during static analysis to determine if statically correct.
* Performs constant folding if the function has an argument, and it
* is constant.
*/
virtual ASTNode* staticResolution(StaticContext *context);
virtual ASTNode *staticTyping(StaticContext *context);
virtual ASTNode *staticResolution(StaticContext *context);
virtual ASTNode *staticTypingImpl(StaticContext *context);
/** Returns the readable length of the string argument. **/
Sequence createSequence(DynamicContext* context, int flags=0) const;
private:
const XMLCh* getString(DynamicContext* context) const;
};
#endif // _FUNCTIONSTRINGLENGTH_HPP
#endif