com.caucho.jstl
Class Functions

java.lang.Object
  extended by com.caucho.jstl.Functions

public class Functions
extends java.lang.Object

Tag representing the functions.


Constructor Summary
Functions()
           
 
Method Summary
static boolean contains(java.lang.String whole, java.lang.String part)
          Returns true if the first string contains the second.
static boolean containsIgnoreCase(java.lang.String whole, java.lang.String part)
          Returns true if the first string contains the second.
static boolean endsWith(java.lang.String whole, java.lang.String part)
          Returns true if the first string contains the second.
static java.lang.String escapeXml(java.lang.String string)
          Escapes the XML string.
static int indexOf(java.lang.String whole, java.lang.String part)
          Returns the index of the part in the whole.
static java.lang.String join(java.lang.String[] array, java.lang.String sep)
          Joins the array.
static int length(java.lang.Object obj)
          Returns the length of the object
static java.lang.String replace(java.lang.String input, java.lang.String before, java.lang.String after)
          Replaces substrings.
static java.lang.String[] split(java.lang.String input, java.lang.String delimiters)
          Splits into
static boolean startsWith(java.lang.String whole, java.lang.String part)
          Returns true if the first string starts with the second.
static java.lang.String substring(java.lang.String string, int begin, int end)
          Returns true if the first string starts with the second.
static java.lang.String substringAfter(java.lang.String whole, java.lang.String part)
          Returns the substring after the match.
static java.lang.String substringBefore(java.lang.String whole, java.lang.String part)
          Returns the substring before the match.
static java.lang.String toLowerCase(java.lang.String string)
          Convert to lower case.
static java.lang.String toUpperCase(java.lang.String string)
          Convert to upper case.
static java.lang.String trim(java.lang.String string)
          Trim
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Functions

public Functions()
Method Detail

length

public static int length(java.lang.Object obj)
Returns the length of the object


contains

public static boolean contains(java.lang.String whole,
                               java.lang.String part)
Returns true if the first string contains the second.


containsIgnoreCase

public static boolean containsIgnoreCase(java.lang.String whole,
                                         java.lang.String part)
Returns true if the first string contains the second.


endsWith

public static boolean endsWith(java.lang.String whole,
                               java.lang.String part)
Returns true if the first string contains the second.


escapeXml

public static java.lang.String escapeXml(java.lang.String string)
Escapes the XML string.


indexOf

public static int indexOf(java.lang.String whole,
                          java.lang.String part)
Returns the index of the part in the whole.


join

public static java.lang.String join(java.lang.String[] array,
                                    java.lang.String sep)
Joins the array.


replace

public static java.lang.String replace(java.lang.String input,
                                       java.lang.String before,
                                       java.lang.String after)
Replaces substrings.


split

public static java.lang.String[] split(java.lang.String input,
                                       java.lang.String delimiters)
Splits into


startsWith

public static boolean startsWith(java.lang.String whole,
                                 java.lang.String part)
Returns true if the first string starts with the second.


substring

public static java.lang.String substring(java.lang.String string,
                                         int begin,
                                         int end)
Returns true if the first string starts with the second.


substringAfter

public static java.lang.String substringAfter(java.lang.String whole,
                                              java.lang.String part)
Returns the substring after the match.


substringBefore

public static java.lang.String substringBefore(java.lang.String whole,
                                               java.lang.String part)
Returns the substring before the match.


toLowerCase

public static java.lang.String toLowerCase(java.lang.String string)
Convert to lower case.


toUpperCase

public static java.lang.String toUpperCase(java.lang.String string)
Convert to upper case.


trim

public static java.lang.String trim(java.lang.String string)
Trim