SaxonC 12.4
Saxon Processor library for C/C++, PHP and Python
Loading...
Searching...
No Matches
SaxonCXPath.h
Go to the documentation of this file.
1#ifndef SAXONCXPATH_H
2#define SAXONCXPATH_H
3
5// Copyright (c) 2022 - 2023 Saxonica Limited.
6// This Source Code Form is subject to the terms of the Mozilla Public License,
7// v. 2.0. If a copy of the MPL was not distributed with this file, You can
8// obtain one at http://mozilla.org/MPL/2.0/. This Source Code Form is
9// "Incompatible With Secondary Licenses", as defined by the Mozilla Public
10// License, v. 2.0.
12
13#include "SaxonCProcessor.h"
14
15//===============================================================================================//
16
17EXTERN_SAXONC
18
31int64_t booleanValue(sxnc_environment *environi, bool);
32
38int64_t integerValue(sxnc_environment *environi, int i);
39
45int64_t doubleValue(sxnc_environment *environi, double d);
46
52int64_t floatValue(sxnc_environment *environi, float f);
53
59int64_t longValue(sxnc_environment *environi, long l);
60
66int64_t getJavaStringValue(sxnc_environment *environi, const char *str);
67
75int64_t xdmValueAsObj(sxnc_environment *environi, const char *type,
76 const char *str);
77
85sxnc_value *xdmValue(sxnc_environment *environi, const char *type,
86 const char *str);
87
102 sxnc_processor *processor, sxnc_xpath *xpath);
103
125sxnc_value *evaluate(sxnc_environment *environi, sxnc_xpath *proc, char *cwd,
126 char *xpathStr, char *encoding, sxnc_parameter *parameters,
127 sxnc_property *properties, int parLen, int propLen);
128
151 char *cwd, char *xpathStr, char *encoding,
152 sxnc_parameter *parameters,
153 sxnc_property *properties, int parLen, int propLen);
154
177 char *cwd, char *xpathStr, char *encoding,
178 sxnc_parameter *parameters,
179 sxnc_property *properties, int parLen, int propLen);
180
189
197int size(sxnc_environment *environi, sxnc_value val);
198
199// /**
200// * Get the n'th item in the value, counting from zero.
201// *
202// * @param n - the item that is required, counting the first item in the
203// sequence
204// * as item zero
205// * @return the n'th item in the sequence making up the value, counting from
206// zero
207// */
208// sxnc_value *itemAt(sxnc_environment *environi, sxnc_value, int i);
209
210// /**
211// * Convert the Get the n'th item in the value, counting from zero.
212// *
213// * @param n the item that is required, counting the first item in the sequence
214// * as item zero
215// * @return the n'th item in the sequence making up the value, counting from
216// zero
217// */
218// int64_t getvalue(sxnc_environment *environi, sxnc_value);
219
228const char *getStringValue(sxnc_environment *environi, sxnc_value value);
229
238int getIntegerValue(sxnc_environment *environi, sxnc_value value,
239 int failure_value);
240
246bool getBooleanValue(sxnc_environment *environi, sxnc_value value);
247
255long getLongValue(sxnc_environment *environi, sxnc_value value,
256 long failureVal);
257
265float getFloatValue(sxnc_environment *environi, sxnc_value value,
266 float failureVal);
267
275double getDoubleValue(sxnc_environment *environi, sxnc_value value,
276 double failureVal);
277
278EXTERN_SAXONC_END
279
280#endif
SaxonCProcessor.h provides the C API for XSLT and XQuery processing. This file contains a set of func...
int64_t integerValue(sxnc_environment *environi, int i)
bool getBooleanValue(sxnc_environment *environi, sxnc_value value)
Definition SaxonCXPath.c:321
bool effectiveBooleanValue(sxnc_environment *environi, sxnc_xpath *proc, char *cwd, char *xpathStr, char *encoding, sxnc_parameter *parameters, sxnc_property *properties, int parLen, int propLen)
Definition SaxonCXPath.c:176
int64_t doubleValue(sxnc_environment *environi, double d)
float getFloatValue(sxnc_environment *environi, sxnc_value value, float failureVal)
Definition SaxonCXPath.c:332
sxnc_value * evaluateSingle(sxnc_environment *environi, sxnc_xpath *proc, char *cwd, char *xpathStr, char *encoding, sxnc_parameter *parameters, sxnc_property *properties, int parLen, int propLen)
Definition SaxonCXPath.c:128
bool isAtomicValue(sxnc_environment *environi, sxnc_value value)
double getDoubleValue(sxnc_environment *environi, sxnc_value value, double failureVal)
Definition SaxonCXPath.c:338
int getIntegerValue(sxnc_environment *environi, sxnc_value value, int failure_value)
Definition SaxonCXPath.c:315
sxnc_value * evaluate(sxnc_environment *environi, sxnc_xpath *proc, char *cwd, char *xpathStr, char *encoding, sxnc_parameter *parameters, sxnc_property *properties, int parLen, int propLen)
Definition SaxonCXPath.c:82
int64_t booleanValue(sxnc_environment *environi, bool)
long getLongValue(sxnc_environment *environi, sxnc_value value, long failureVal)
Definition SaxonCXPath.c:326
int64_t getJavaStringValue(sxnc_environment *environi, const char *str)
const char * getStringValue(sxnc_environment *environi, sxnc_value value)
Definition SaxonCXPath.c:223
int size(sxnc_environment *environi, sxnc_value val)
Definition SaxonCXPath.c:228
int64_t longValue(sxnc_environment *environi, long l)
int c_createXPathProcessor(sxnc_environment *environi, sxnc_processor *processor, sxnc_xpath *xpath)
Definition SaxonCXPath.c:61
int64_t xdmValueAsObj(sxnc_environment *environi, const char *type, const char *str)
Definition SaxonCXPath.c:3
int64_t floatValue(sxnc_environment *environi, float f)
sxnc_value * xdmValue(sxnc_environment *environi, const char *type, const char *str)
Definition SaxonCXPath.c:31
Definition SaxonCGlue.h:79
Definition SaxonCGlue.h:91
Definition SaxonCGlue.h:120
Definition SaxonCGlue.h:104
Definition SaxonCGlue.h:113
Definition SaxonCProcessor.h:39