SaxonC 12.5
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
32int64_t booleanValue(sxnc_environment *environi, bool val);
33
40int64_t integerValue(sxnc_environment *environi, int i);
41
48int64_t doubleValue(sxnc_environment *environi, double d);
49
56int64_t floatValue(sxnc_environment *environi, float f);
57
64int64_t longValue(sxnc_environment *environi, long l);
65
72int64_t getJavaStringValue(sxnc_environment *environi, const char *str);
73
82int64_t xdmValueAsObj(sxnc_environment *environi, const char *type,
83 const char *str);
84
93sxnc_value *xdmValue(sxnc_environment *environi, const char *type,
94 const char *str);
95
110 sxnc_processor *processor, sxnc_xpath *xpath);
111
133sxnc_value *evaluate(sxnc_environment *environi, sxnc_xpath *proc, char *cwd,
134 char *xpathStr, char *encoding, sxnc_parameter *parameters,
135 sxnc_property *properties, int parLen, int propLen);
136
159 char *cwd, char *xpathStr, char *encoding,
160 sxnc_parameter *parameters,
161 sxnc_property *properties, int parLen, int propLen);
162
185 char *cwd, char *xpathStr, char *encoding,
186 sxnc_parameter *parameters,
187 sxnc_property *properties, int parLen, int propLen);
188
198
207int size(sxnc_environment *environi, sxnc_value val);
208
209// /**
210// * Get the n'th item in the value, counting from zero.
211// *
212// * @param n - the item that is required, counting the first item in the
213// sequence
214// * as item zero
215// * @return the n'th item in the sequence making up the value, counting from
216// zero
217// */
218// sxnc_value *itemAt(sxnc_environment *environi, sxnc_value, int i);
219
220// /**
221// * Convert the Get the n'th item in the value, counting from zero.
222// *
223// * @param n the item that is required, counting the first item in the sequence
224// * as item zero
225// * @return the n'th item in the sequence making up the value, counting from
226// zero
227// */
228// int64_t getvalue(sxnc_environment *environi, sxnc_value);
229
239const char *getStringValue(sxnc_environment *environi, sxnc_value value);
240
250int getIntegerValue(sxnc_environment *environi, sxnc_value value,
251 int failure_value);
252
259bool getBooleanValue(sxnc_environment *environi, sxnc_value value);
260
269long getLongValue(sxnc_environment *environi, sxnc_value value,
270 long failureVal);
271
280float getFloatValue(sxnc_environment *environi, sxnc_value value,
281 float failureVal);
282
291double getDoubleValue(sxnc_environment *environi, sxnc_value value,
292 double failureVal);
293
294EXTERN_SAXONC_END
295
296#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)
int64_t booleanValue(sxnc_environment *environi, bool val)
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
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