Class Literal


  • public final class Literal
    extends RegExp
    A character literal.
    Author:
    BaseX Team 2005-24, BSD License, Leo Woerteler
    • Constructor Detail

      • Literal

        public Literal​(int codepoint)
        Constructor.
        Parameters:
        codepoint - Unicode code point
    • Method Detail

      • escape

        public static String escape​(int cp)
        Escapes the given code point for a regular expression.
        Parameters:
        cp - code point
        Returns:
        string representation