Class StringUtils

java.lang.Object
eu.webtoolkit.jwt.StringUtils

public class StringUtils extends Object
String utility class.
  • Constructor Details

    • StringUtils

      public StringUtils()
  • Method Details

    • asString

      public static WString asString(Object data)
      Convert an object to a WString.
    • asString

      public static WString asString(Object data, String format)
      Convert an object to a WString. If the object is a WDate, it is formatted with the format String. If the object is numeric, then the format string is interpreted as a DecimalFormat format.
    • asNumber

      public static double asNumber(Object data)
      Convert an object to a double.
    • replaceAll

      public static String replaceAll(String str, String pattern, String replace)
    • put

      public static String put(String s, int pos, char c)
    • replace

      public static String replace(String s, char c, String r)
    • replace

      public static String replace(String s, String c, String r)
    • findFirstOf

      public static int findFirstOf(String text, String chars, int pos)
    • split

      public static void split(Collection<String> tokens, String in, char sep, boolean compressAdjacentSeparators)
    • split

      public static void split(Collection<String> tokens, String in, String separators, boolean compressAdjacentSeparators)
    • append

      public static String append(String s, char c)
    • prepend

      public static String prepend(String s, char c)