Class HqlHumanUtil.UnicodeCodepointUnescaper

java.lang.Object
org.apache.commons.lang3.text.translate.CharSequenceTranslator
org.hansken.plugin.extraction.hql_lite.lang.human.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 Details

    • UnicodeCodepointUnescaper

      public UnicodeCodepointUnescaper()
  • Method Details

    • 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