|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ucl.xpath.function.Function
org.ucl.xpath.function.FnSubstring
Function to obtain a substring from a string.
Usage: fn:substring($sourceString as xs:string?, $startingLoc as xs:double) as xs:string
This class returns the portion of the value of $sourceString beginning at the position indicated by the value of $startingLoc. The characters returned do not extend beyond $sourceString. If $startingLoc is zero or negative, only those characters in positions greater than zero are returned.
If the value of $sourceString is the empty sequence, the zero-length string is returned.
The first character of a string is located at position 1, not position 0.
| Field Summary |
| Fields inherited from class org.ucl.xpath.function.Function |
_arity, _fl, _name |
| Constructor Summary | |
FnSubstring()
Constructor for FnSubstring |
|
| Method Summary | |
ResultSequence |
evaluate(java.util.Collection args)
Evaluate the arguments. |
static java.util.Collection |
expected_args()
Calculate the expected arguments. |
static ResultSequence |
substring(java.util.Collection args)
Obtain a substring from the arguments. |
| Methods inherited from class org.ucl.xpath.function.Function |
arity, convert_argument, convert_arguments, dynamic_context, name, set_function_library, signature, signature, signature, static_context |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public FnSubstring()
| Method Detail |
public ResultSequence evaluate(java.util.Collection args)
throws DynamicError
evaluate in class Functionargs - are evaluated.
DynamicError - Dynamic error.
public static ResultSequence substring(java.util.Collection args)
throws DynamicError
args - are used to obtain a substring.
DynamicError - Dynamic error.public static java.util.Collection expected_args()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||