Class StringUtils

java.lang.Object
com.igormaznitsa.prologparser.utils.StringUtils

public final class StringUtils extends Object
Auxiliary string processing methods.
  • Constructor Details

    • StringUtils

      private StringUtils()
  • Method Details

    • 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 String escapeString(String str, Quotation quotingType)