net.sf.saxon.functions

Class Tokenize

public class Tokenize extends SystemFunction

This class implements the tokenize() function for regular expression matching. This returns a sequence of strings representing the unmatched substrings: the separators which match the regular expression are not returned.
Method Summary
SequenceIteratoriterate(XPathContext c)
Iterate over the results of the function
static voidmain(String[] args)
Simple command-line interface for testing.
Expressionsimplify(StaticContext env)
Simplify and validate.

Method Detail

iterate

public SequenceIterator iterate(XPathContext c)
Iterate over the results of the function

main

public static void main(String[] args)
Simple command-line interface for testing.

Parameters: args (1) the string to be tokenized (2) the regular expression

Throws: Exception

simplify

public Expression simplify(StaticContext env)
Simplify and validate. This is a pure function so it can be simplified in advance if the arguments are known