org.exist.xquery.functions
Class FunStringToCodepoints
java.lang.Object
org.exist.xquery.AbstractExpression
org.exist.xquery.PathExpr
org.exist.xquery.Function
org.exist.xquery.BasicFunction
org.exist.xquery.functions.FunStringToCodepoints
- All Implemented Interfaces:
- CompiledXQuery, Expression, org.xmldb.api.base.CompiledExpression
public class FunStringToCodepoints
- extends BasicFunction
Fields inherited from interface org.exist.xquery.Expression |
DOT_TEST, EXPRESSION_ID_INVALID, IGNORE_CONTEXT, IN_NODE_CONSTRUCTOR, IN_PREDICATE, IN_UPDATE, IN_WHERE_CLAUSE, NEED_INDEX_INFO, NO_CONTEXT_ID, POSITIONAL_PREDICATE, SINGLE_STEP_EXECUTION, USE_TREE_TRAVERSAL |
Methods inherited from class org.exist.xquery.Function |
accept, analyze, createFunction, dump, getArgument, getArgumentCount, getArguments, getCardinality, getDependencies, getName, getParent, getSignature, isCalledAs, returnsType, setArguments, setParent, setPrimaryAxis, toString |
Methods inherited from class org.exist.xquery.PathExpr |
add, add, addPath, addPredicate, dump, getColumn, getContext, getDocumentSet, getExpression, getLastExpression, getLength, getLine, getLiteralValue, getPrimaryAxis, isValid, replaceExpression, replaceLastExpression, reset, resetState, setContext, setUseStaticContext |
signature
public static final FunctionSignature signature
FunStringToCodepoints
public FunStringToCodepoints(XQueryContext context)
eval
public Sequence eval(Sequence[] args,
Sequence contextSequence)
throws XPathException
- Description copied from class:
BasicFunction
- Process the function. All arguments are passed in the array args. The number of
arguments, their type and cardinality have already been checked to match
the function signature.
- Specified by:
eval
in class BasicFunction
- Throws:
XPathException
getCodePoints
public static ValueSequence getCodePoints(String s)
- The method
getCodePoints
- Parameters:
s
- a String
value
- Returns:
- a
ValueSequence
value
getCodePointCount
public static int getCodePointCount(String s)
- The method
getCodePointCount
- Parameters:
s
- a String
value
- Returns:
- a
ValueSequence
value
subSequence
public static String subSequence(ValueSequence seq,
int start)
throws XPathException
- The method
subSequence
- Parameters:
seq
- a ValueSequence
valuestart
- an int
value
- Returns:
- a
ValueSequence
value
- Throws:
XPathException
- if an error occurs
subSequence
public static String subSequence(ValueSequence seq,
int start,
int end)
throws XPathException
- The method
subSequence
- Parameters:
seq
- a ValueSequence
valuestart
- an int
valueend
- an int
value
- Returns:
- a
ValueSequence
value
- Throws:
XPathException
- if an error occurs
codePointToString
public static String codePointToString(IntegerValue value)
throws XPathException
- The method
codePointToString
- Parameters:
value
- an IntegerValue
value
- Returns:
- a
String
value
- Throws:
XPathException
- if an error occurs
indexOf
public static int indexOf(ValueSequence seq,
IntegerValue value)
- The method
indexOf
- Parameters:
seq
- a ValueSequence
valuevalue
- an IntegerValue
value
- Returns:
- a
int
value
Copyright (C) Wolfgang Meier. All rights reserved.