Class StringUtil

    • Method Detail

      • isAsciiLetterOrDigit

        public static boolean isAsciiLetterOrDigit​(char c)
      • replaceNonAlphanumericByUnderscores

        public static String replaceNonAlphanumericByUnderscores​(String name)
      • replaceNonAlphanumericByUnderscores

        public static String replaceNonAlphanumericByUnderscores​(String name,
                                                                 StringBuilder 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,
                                      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)