Package io.smallrye.config.common.utils
Class StringUtil
java.lang.Object
io.smallrye.config.common.utils.StringUtil
- Author:
- Jeff Mesnil (c) 2017 Red Hat inc.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic intstatic booleanisAsciiLetterOrDigit(char c) static booleanMatches if a dotted property name is part of a dotted path.static booleanisNumeric(CharSequence digits) static booleanisNumeric(CharSequence digits, int begin, int len) static booleanisNumericEquals(CharSequence digits, int offset, int len, CharSequence other, int ooffset, int olen) static booleanisNumericEquals(CharSequence digits, CharSequence other) static Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic String[]static StringtoLowerCaseAndDotted(String name) static Stringstatic Stringstatic Stringstatic String
-
Method Details
-
isAsciiLetterOrDigit
public static boolean isAsciiLetterOrDigit(char c) -
split
-
replaceNonAlphanumericByUnderscores
-
replaceNonAlphanumericByUnderscores
-
replaceNonAlphanumericByUnderscores
public static String replaceNonAlphanumericByUnderscores(String name, StringUtil.ResizableByteArray sb) -
toLowerCaseAndDotted
-
isInPath
Matches if a dotted property name is part of a dotted path.- Parameters:
path- the dotted pathname- a dotted property name- Returns:
trueif the dotted property name ir part of a dotted path, orfalseotherwise.
-
isNumeric
-
isNumeric
-
isNumericEquals
-
isNumericEquals
public static boolean isNumericEquals(CharSequence digits, int offset, int len, CharSequence other, int ooffset, int olen) -
unquoted
-
unquoted
-
unquoted
-
index
-
unindexed
-
skewer
-
skewer
-