public class StringUtil extends Object
| Constructor and Description | 
|---|
| StringUtil() | 
| Modifier and Type | Method and Description | 
|---|---|
| static String | join(Iterable strings,
    String delimiter)Joins a list or array of objects together using the specified delimiter. | 
| static String | join(Object[] strings,
    String delimiter)Joins a list or array of objects together using the specified delimiter. | 
| static String | replaceAll(String source,
          String pattern,
          String replace)This method replaces all occurrences of the pattern with the 
 replacement String | 
| static String | replaceFirst(String source,
            String pattern,
            String replace)This method replaces the first occurrence of the pattern with the 
 replacement String | 
| static void | setImplementation(CodenameOneImplementation i)Deprecated. 
 exposed as part of an internal optimization, this method isn't meant for general access | 
| static List<String> | tokenize(String source,
        char separator)Breaks a String to multiple strings. | 
| static List<String> | tokenize(String source,
        String separator)Breaks a String to multiple strings (similar to string tokenizer) | 
| static Vector | tokenizeString(String source,
              char separator)Deprecated. 
 use the tokenize() method instead | 
| static Vector | tokenizeString(String source,
              String separator)Deprecated. 
 use the  tokenize(java.lang.String, java.lang.String)method instead | 
public static void setImplementation(CodenameOneImplementation i)
public static String replaceAll(String source, String pattern, String replace)
source - the String sourcepattern - String to replace in the sourcereplace - replacement Stringpublic static String replaceFirst(String source, String pattern, String replace)
source - the String sourcepattern - String to replace in the sourcereplace - replacement Stringpublic static Vector tokenizeString(String source, char separator)
source - the String to breakseparator - the pattern to search and break.public static Vector tokenizeString(String source, String separator)
tokenize(java.lang.String, java.lang.String) method insteadsource - the String to breakseparator - the characters that can be used to search and break.public static List<String> tokenize(String source, char separator)
source - the String to breakseparator - the pattern to search and break.public static List<String> tokenize(String source, String separator)
source - the String to breakseparator - the characters that can be used to search and break.public static String join(Iterable strings, String delimiter)
strings - Objects to be converted to strings.delimiter - The delimiter.