com.xmlmind.util
Class CharSequenceUtil

java.lang.Object
  extended by com.xmlmind.util.CharSequenceUtil

public final class CharSequenceUtil
extends java.lang.Object

A collection of utility functions (static methods) operating on CharSequences. Not documented here because these utilities are supposed to behave exactly like the corresponding methods of class java.lang.String.

See Also:
CharSequence

Method Summary
static int indexOf(java.lang.CharSequence chars, java.lang.String searched)
           
static int indexOf(java.lang.CharSequence chars, java.lang.String searched, int from)
           
static int indexOf(java.lang.CharSequence chars, java.lang.String searched, int from, boolean ignoreCase)
           
static int lastIndexOf(java.lang.CharSequence chars, java.lang.String searched)
           
static int lastIndexOf(java.lang.CharSequence chars, java.lang.String searched, int from)
           
static int lastIndexOf(java.lang.CharSequence chars, java.lang.String searched, int from, boolean ignoreCase)
           
static java.lang.String substring(java.lang.CharSequence chars, int begin)
           
static java.lang.String substring(java.lang.CharSequence chars, int begin, int end)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

substring

public static java.lang.String substring(java.lang.CharSequence chars,
                                         int begin)

substring

public static java.lang.String substring(java.lang.CharSequence chars,
                                         int begin,
                                         int end)

indexOf

public static int indexOf(java.lang.CharSequence chars,
                          java.lang.String searched)

indexOf

public static int indexOf(java.lang.CharSequence chars,
                          java.lang.String searched,
                          int from)

indexOf

public static int indexOf(java.lang.CharSequence chars,
                          java.lang.String searched,
                          int from,
                          boolean ignoreCase)

lastIndexOf

public static int lastIndexOf(java.lang.CharSequence chars,
                              java.lang.String searched)

lastIndexOf

public static int lastIndexOf(java.lang.CharSequence chars,
                              java.lang.String searched,
                              int from)

lastIndexOf

public static int lastIndexOf(java.lang.CharSequence chars,
                              java.lang.String searched,
                              int from,
                              boolean ignoreCase)