Class StringUtil

java.lang.Object
io.smallrye.config.common.utils.StringUtil

public class StringUtil extends Object
Author:
Jeff Mesnil (c) 2017 Red Hat inc.
  • Method Details

    • isAsciiLetterOrDigit

      public static boolean isAsciiLetterOrDigit(char c)
    • split

      public static String[] split(String text)
    • replaceNonAlphanumericByUnderscores

      public static String replaceNonAlphanumericByUnderscores(String name)
    • replaceNonAlphanumericByUnderscores

      public static String replaceNonAlphanumericByUnderscores(String name, StringBuilder sb)
    • replaceNonAlphanumericByUnderscores

      public static String replaceNonAlphanumericByUnderscores(String name, StringUtil.ResizableByteArray sb)
    • toLowerCaseAndDotted

      public static String toLowerCaseAndDotted(String name)
    • isInPath

      public static boolean isInPath(String path, String name)
      Matches if a dotted property name is part of a dotted path.
      Parameters:
      path - the dotted path
      name - a dotted property name
      Returns:
      true if the dotted property name ir part of a dotted path, or false otherwise.
    • isNumeric

      public static boolean isNumeric(CharSequence digits)
    • isNumeric

      public static boolean isNumeric(CharSequence digits, int begin, int end)
    • unquoted

      public static String unquoted(String name)
    • unquoted

      public static String unquoted(String name, int begin)
    • unquoted

      public static String unquoted(String name, int begin, int end)
    • index

      public static int index(String name)
    • unindexed

      public static String unindexed(String name)
    • skewer

      public static String skewer(String camelHumps)
    • skewer

      public static String skewer(String camelHumps, char separator)