gnu.xquery.util

Class StringUtils

public class StringUtils extends Object

Method Summary
static ObjectcodepointEqual(Object arg1, Object arg2)
static StringcodepointsToString(Object arg)
static Objectcompare(Object val1, Object val2, NamedCollator coll)
This implements the XQuery fn:compare function.
static Stringconcat$V(Object arg1, Object arg2, Object[] args)
static Objectcontains(Object str, Object contain)
static StringencodeForUri(Object arg)
static ObjectendsWith(Object str, Object with)
static StringescapeHtmlUri(Object arg)
static StringiriToUri(Object arg)
static ObjectlowerCase(Object node)
static PatternmakePattern(String pattern, String flags)
static booleanmatches(Object input, String pattern)
static booleanmatches(Object arg, String pattern, String flags)
static StringnormalizeSpace(Object arg)
static ObjectnormalizeUnicode(Object arg)
static ObjectnormalizeUnicode(Object arg, String form)
static Stringreplace(Object input, String pattern, String replacement)
static Stringreplace(Object arg, String pattern, String replacement, String flags)
static ObjectstartsWith(Object str, Object with)
static ObjectstringJoin(Object strseq, Object join)
static ObjectstringLength(Object str)
static ObjectstringPad(Object str, Object padcount)
static voidstringToCodepoints$X(Object arg, CallContext ctx)
static Objectsubstring(Object str, Object start)
static Objectsubstring(Object str, Object start, Object length)
static ObjectsubstringAfter(Object str, Object find)
static ObjectsubstringBefore(Object str, Object find)
static voidtokenize$X(Object arg, String pattern, CallContext ctx)
static voidtokenize$X(Object arg, String pattern, String flags, CallContext ctx)
static Objecttranslate(Object str, Object map, Object trans)
static ObjectupperCase(Object node)

Method Detail

codepointEqual

public static Object codepointEqual(Object arg1, Object arg2)

codepointsToString

public static String codepointsToString(Object arg)

compare

public static Object compare(Object val1, Object val2, NamedCollator coll)
This implements the XQuery fn:compare function.

concat$V

public static String concat$V(Object arg1, Object arg2, Object[] args)

contains

public static Object contains(Object str, Object contain)

encodeForUri

public static String encodeForUri(Object arg)

endsWith

public static Object endsWith(Object str, Object with)

escapeHtmlUri

public static String escapeHtmlUri(Object arg)

iriToUri

public static String iriToUri(Object arg)

lowerCase

public static Object lowerCase(Object node)

makePattern

public static Pattern makePattern(String pattern, String flags)

matches

public static boolean matches(Object input, String pattern)

matches

public static boolean matches(Object arg, String pattern, String flags)

normalizeSpace

public static String normalizeSpace(Object arg)

normalizeUnicode

public static Object normalizeUnicode(Object arg)

normalizeUnicode

public static Object normalizeUnicode(Object arg, String form)

replace

public static String replace(Object input, String pattern, String replacement)

replace

public static String replace(Object arg, String pattern, String replacement, String flags)

startsWith

public static Object startsWith(Object str, Object with)

stringJoin

public static Object stringJoin(Object strseq, Object join)

stringLength

public static Object stringLength(Object str)

stringPad

public static Object stringPad(Object str, Object padcount)

stringToCodepoints$X

public static void stringToCodepoints$X(Object arg, CallContext ctx)

substring

public static Object substring(Object str, Object start)

substring

public static Object substring(Object str, Object start, Object length)

substringAfter

public static Object substringAfter(Object str, Object find)

substringBefore

public static Object substringBefore(Object str, Object find)

tokenize$X

public static void tokenize$X(Object arg, String pattern, CallContext ctx)

tokenize$X

public static void tokenize$X(Object arg, String pattern, String flags, CallContext ctx)

translate

public static Object translate(Object str, Object map, Object trans)

upperCase

public static Object upperCase(Object node)