Class JSXLexerEscapes
java.lang.Object
com.io7m.jsx.api.lexer.JSXLexerEscapes
Functions to escape strings.
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringescapeCodePoint(int codePoint) Create an appropriate escape for the given codepoint.static StringescapeString(String text) Escape everything in a given string.
-
Method Details
-
escapeCodePoint
Create an appropriate escape for the given codepoint.- Parameters:
codePoint- The codepoint- Returns:
- The escaped string
-
escapeString
-