Class StringUtils
- java.lang.Object
-
- com.igormaznitsa.prologparser.utils.StringUtils
-
public final class StringUtils extends java.lang.ObjectAuxiliary string processing methods.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStringUtils.UnescapeResultUn-escaped result container.
-
Constructor Summary
Constructors Modifier Constructor Description privateStringUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringescapeString(java.lang.String str, Quotation quotingType)static booleanisCharAllowedForUnquotedAtom(char chr)static booleanisCharNotAppropriateForHexNum(char chr)static StringUtils.UnescapeResulttryUnescapeCharacter(StringBuilderEx stringAfterEscMarker)Unescape special char which definition is in the buffer.
-
-
-
Method Detail
-
tryUnescapeCharacter
public static StringUtils.UnescapeResult tryUnescapeCharacter(StringBuilderEx stringAfterEscMarker)
Unescape special char which definition is in the buffer.- Parameters:
stringAfterEscMarker- buffer contains string- Returns:
- result container, must not be null
-
isCharAllowedForUnquotedAtom
public static boolean isCharAllowedForUnquotedAtom(char chr)
-
isCharNotAppropriateForHexNum
public static boolean isCharNotAppropriateForHexNum(char chr)
-
escapeString
public static java.lang.String escapeString(java.lang.String str, Quotation quotingType)
-
-