org.wdssii.core
Class StringUtil

java.lang.Object
  extended by org.wdssii.core.StringUtil

public class StringUtil
extends Object

Author:
lakshman

Constructor Summary
StringUtil()
           
 
Method Summary
static int find_first_not_of(String s, char sep, int start)
          returns s.length() if all characters are sep.
static int find_first_of(String s, char sep, int start)
          returns s.length() if no characters are sep.
static List<String> split(String s)
          splits the input string into an array of strings assuming they are space-separated
static List<String> split(String s, char sep)
          splits the input string into an array of strings.
static List<String> splitOnFirst(String s, char sep)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringUtil

public StringUtil()
Method Detail

find_first_of

public static int find_first_of(String s,
                                char sep,
                                int start)
returns s.length() if no characters are sep.


find_first_not_of

public static int find_first_not_of(String s,
                                    char sep,
                                    int start)
returns s.length() if all characters are sep.


split

public static List<String> split(String s)
splits the input string into an array of strings assuming they are space-separated


split

public static List<String> split(String s,
                                 char sep)
splits the input string into an array of strings.


splitOnFirst

public static List<String> splitOnFirst(String s,
                                        char sep)