Class StringUtils
java.lang.Object
com.igormaznitsa.prologparser.utils.StringUtils
Auxiliary string processing methods.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classUn-escaped result container. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringescapeString(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.
-
Constructor Details
-
StringUtils
private StringUtils()
-
-
Method Details
-
tryUnescapeCharacter
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
-