Class JSXLexerEscapes

java.lang.Object
com.io7m.jsx.api.lexer.JSXLexerEscapes

public final class JSXLexerEscapes extends Object
Functions to escape strings.
  • Method Details

    • escapeCodePoint

      public static String escapeCodePoint(int codePoint)
      Create an appropriate escape for the given codepoint.
      Parameters:
      codePoint - The codepoint
      Returns:
      The escaped string
    • escapeString

      public static String escapeString(String text)
      Escape everything in a given string.
      Parameters:
      text - The text
      Returns:
      A string containing escapes