Class HqlHumanUtil.UnicodeCodepointUnescaper

  • Enclosing class:
    HqlHumanUtil

    public static class HqlHumanUtil.UnicodeCodepointUnescaper
    extends org.apache.commons.lang3.text.translate.CharSequenceTranslator
    Unicode Codepoint Unescaper. Parses unicode escape seuqences formatted as \\u{codepoint}. Where codepoint is a hexadecimal number indicating the codepoint. See https://ecma-international.org/ecma-262/6.0/#sec-literals-string-literals
    • Constructor Detail

      • UnicodeCodepointUnescaper

        public UnicodeCodepointUnescaper()
    • Method Detail

      • translate

        public int translate​(CharSequence input,
                             int index,
                             Writer out)
                      throws IOException
        Specified by:
        translate in class org.apache.commons.lang3.text.translate.CharSequenceTranslator
        Throws:
        IOException