Class StringUtils

java.lang.Object
org.stathissideris.ascii2image.text.StringUtils

public class StringUtils extends Object
  • Constructor Details

    • StringUtils

      public StringUtils()
  • Method Details

    • contains

      public static boolean contains(String big, String fragment)
      The indexOf idiom
      Parameters:
      big -
      fragment -
      Returns:
    • repeatString

      public static String repeatString(String string, int repeats)
    • isBlank

      public static boolean isBlank(String s)
    • firstToUpper

      public static String firstToUpper(String string)
      Converts the first character of string into a capital letter
      Parameters:
      string -
      Returns:
    • insertSpaceAtCaps

      public static String insertSpaceAtCaps(String string)
    • isOneOf

      public static boolean isOneOf(char c, char[] group)
    • isOneOf

      public static boolean isOneOf(String str, String[] group)
    • getPath

      public static String getPath(String fullPath)
    • getBaseFilename

      public static String getBaseFilename(String fullPath)
    • getExtension

      public static String getExtension(String fullPath)
    • main

      public static void main(String[] args)