gnu.xquery.util

Class StringUtils


public class StringUtils
extends java.lang.Object

Method Summary

static Object
codepointEqual(Object arg1, Object arg2)
static String
codepointsToString(Object arg)
static Object
compare(Object val1, Object val2, NamedCollator coll)
This implements the XQuery fn:compare function.
static String
concat$V(Object arg1, Object arg2, Object[] args)
static Object
contains(Object str, Object contain)
static String
encodeForUri(Object arg)
static Object
endsWith(Object str, Object with)
static String
escapeHtmlUri(Object arg)
static String
iriToUri(Object arg)
static Object
lowerCase(Object node)
static Pattern
makePattern(String pattern, String flags)
static boolean
matches(Object input, String pattern)
static boolean
matches(Object arg, String pattern, String flags)
static String
normalizeSpace(Object arg)
static Object
normalizeUnicode(Object arg)
static Object
normalizeUnicode(Object arg, String form)
static String
replace(Object input, String pattern, String replacement)
static String
replace(Object arg, String pattern, String replacement, String flags)
static Object
startsWith(Object str, Object with)
static Object
stringJoin(Object strseq, Object join)
static Object
stringLength(Object str)
static Object
stringPad(Object str, Object padcount)
static void
stringToCodepoints$X(Object arg, CallContext ctx)
static Object
substring(Object str, Object start)
static Object
substring(Object str, Object start, Object length)
static Object
substringAfter(Object str, Object find)
static Object
substringBefore(Object str, Object find)
static void
tokenize$X(Object arg, String pattern, String flags, CallContext ctx)
static void
tokenize$X(Object arg, String pattern, CallContext ctx)
static Object
translate(Object str, Object map, Object trans)
static Object
upperCase(Object node)

Method Details

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,
                              String flags,
                              CallContext ctx)

tokenize$X

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

translate

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

upperCase

public static Object upperCase(Object node)