test_class.file: base/lang/src/test/java/leap/lang/jsoup/nodes/EntitiesTest.java
test_class.identifier: EntitiesTest
test_case.body: @Test public void escape() {
          String text = "Hello &<> Å å π 新 there ¾ ©";
          String escapedAscii = Entities.escape(text, Charset.forName("ascii").newEncoder(), Entities.EscapeMode.base);
          String escapedAsciiFull = Entities.escape(text, Charset.forName("ascii").newEncoder(), Entities.EscapeMode.extended);
          String escapedAsciiXhtml = Entities.escape(text, Charset.forName("ascii").newEncoder(), Entities.EscapeMode.xhtml);
          String escapedUtfFull = Entities.escape(text, Charset.forName("UTF-8").newEncoder(), Entities.EscapeMode.base);
          String escapedUtfMin = Entities.escape(text, Charset.forName("UTF-8").newEncoder(), Entities.EscapeMode.xhtml);
  
          assertEquals("Hello &amp;&lt;&gt; &Aring; &aring; &#x3c0; &#x65b0; there &frac34; &copy;", escapedAscii);
          assertEquals("Hello &amp;&lt;&gt; &angst; &aring; &pi; &#x65b0; there &frac34; &copy;", escapedAsciiFull);
          assertEquals("Hello &amp;&lt;&gt; &#xc5; &#xe5; &#x3c0; &#x65b0; there &#xbe; &#xa9;", escapedAsciiXhtml);
          assertEquals("Hello &amp;&lt;&gt; &Aring; &aring; π 新 there &frac34; &copy;", escapedUtfFull);
          assertEquals("Hello &amp;&lt;&gt; Å å π 新 there ¾ ©", escapedUtfMin);
          // odd that it's defined as aring in base but angst in full
  
          // round trip
          assertEquals(text, Entities.unescape(escapedAscii));
          assertEquals(text, Entities.unescape(escapedAsciiFull));
          assertEquals(text, Entities.unescape(escapedAsciiXhtml));
          assertEquals(text, Entities.unescape(escapedUtfFull));
          assertEquals(text, Entities.unescape(escapedUtfMin));
      }
test_case.class_method_signature: EntitiesTest.escape()
test_case.full_signature: @Test public void escape()
test_case.identifier: escape
test_case.invocations: escape newEncoder forName escape newEncoder forName escape newEncoder forName escape newEncoder forName escape newEncoder forName assertEquals assertEquals assertEquals assertEquals assertEquals assertEquals unescape assertEquals unescape assertEquals unescape assertEquals unescape assertEquals unescape
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void escape()
focal_class.declarator: full
focal_class.modifier: private static final
focal_class.original_string: private static final Map<String, Character> full;
focal_class.type: Map<String, Character>
focal_class.var_name: full
focal_class.declarator: xhtmlByVal
focal_class.modifier: private static final
focal_class.original_string: private static final Map<Character, String> xhtmlByVal;
focal_class.type: Map<Character, String>
focal_class.var_name: xhtmlByVal
focal_class.declarator: base
focal_class.modifier: private static final
focal_class.original_string: private static final Map<String, Character> base;
focal_class.type: Map<String, Character>
focal_class.var_name: base
focal_class.declarator: baseByVal
focal_class.modifier: private static final
focal_class.original_string: private static final Map<Character, String> baseByVal;
focal_class.type: Map<Character, String>
focal_class.var_name: baseByVal
focal_class.declarator: fullByVal
focal_class.modifier: private static final
focal_class.original_string: private static final Map<Character, String> fullByVal;
focal_class.type: Map<Character, String>
focal_class.var_name: fullByVal
focal_class.declarator: unescapePattern = Pattern.compile("&(#(x|X)?([0-9a-fA-F]+)|[a-zA-Z]+\\d*);?")
focal_class.modifier: private static final
focal_class.original_string: private static final Pattern unescapePattern = Pattern.compile("&(#(x|X)?([0-9a-fA-F]+)|[a-zA-Z]+\\d*);?");
focal_class.type: Pattern
focal_class.var_name: unescapePattern
focal_class.declarator: strictUnescapePattern = Pattern.compile("&(#(x|X)?([0-9a-fA-F]+)|[a-zA-Z]+\\d*);")
focal_class.modifier: private static final
focal_class.original_string: private static final Pattern strictUnescapePattern = Pattern.compile("&(#(x|X)?([0-9a-fA-F]+)|[a-zA-Z]+\\d*);");
focal_class.type: Pattern
focal_class.var_name: strictUnescapePattern
focal_class.declarator: xhtmlArray = {
              {"quot", 0x00022},
              {"amp", 0x00026},
              {"apos", 0x00027},
              {"lt", 0x0003C},
              {"gt", 0x0003E}
      }
focal_class.modifier: private static final
focal_class.original_string: private static final Object[][] xhtmlArray = {
              {"quot", 0x00022},
              {"amp", 0x00026},
              {"apos", 0x00027},
              {"lt", 0x0003C},
              {"gt", 0x0003E}
      };
focal_class.type: Object[][]
focal_class.var_name: xhtmlArray
focal_class.file: base/lang/src/main/java/leap/lang/jsoup/nodes/Entities.java
focal_class.identifier: Entities
focal_class.class_method_signature: Entities.Entities()
focal_class.full_signature: private  Entities()
focal_class.identifier: Entities
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.signature:  Entities()
focal_class.class_method_signature: Entities.isNamedEntity(String name)
focal_class.full_signature: public static boolean isNamedEntity(String name)
focal_class.identifier: isNamedEntity
focal_class.modifiers: public static
focal_class.parameters: (String name)
focal_class.return: boolean
focal_class.signature: boolean isNamedEntity(String name)
focal_class.class_method_signature: Entities.isBaseNamedEntity(String name)
focal_class.full_signature: public static boolean isBaseNamedEntity(String name)
focal_class.identifier: isBaseNamedEntity
focal_class.modifiers: public static
focal_class.parameters: (String name)
focal_class.return: boolean
focal_class.signature: boolean isBaseNamedEntity(String name)
focal_class.class_method_signature: Entities.getCharacterByName(String name)
focal_class.full_signature: public static Character getCharacterByName(String name)
focal_class.identifier: getCharacterByName
focal_class.modifiers: public static
focal_class.parameters: (String name)
focal_class.return: Character
focal_class.signature: Character getCharacterByName(String name)
focal_class.class_method_signature: Entities.escape(String string, Document.OutputSettings out)
focal_class.full_signature: static String escape(String string, Document.OutputSettings out)
focal_class.identifier: escape
focal_class.modifiers: static
focal_class.parameters: (String string, Document.OutputSettings out)
focal_class.return: String
focal_class.signature: String escape(String string, Document.OutputSettings out)
focal_class.class_method_signature: Entities.escape(String string, CharsetEncoder encoder, EscapeMode escapeMode)
focal_class.full_signature: static String escape(String string, CharsetEncoder encoder, EscapeMode escapeMode)
focal_class.identifier: escape
focal_class.modifiers: static
focal_class.parameters: (String string, CharsetEncoder encoder, EscapeMode escapeMode)
focal_class.return: String
focal_class.signature: String escape(String string, CharsetEncoder encoder, EscapeMode escapeMode)
focal_class.class_method_signature: Entities.unescape(String string)
focal_class.full_signature: static String unescape(String string)
focal_class.identifier: unescape
focal_class.modifiers: static
focal_class.parameters: (String string)
focal_class.return: String
focal_class.signature: String unescape(String string)
focal_class.class_method_signature: Entities.unescape(String string, boolean strict)
focal_class.full_signature: static String unescape(String string, boolean strict)
focal_class.identifier: unescape
focal_class.modifiers: static
focal_class.parameters: (String string, boolean strict)
focal_class.return: String
focal_class.signature: String unescape(String string, boolean strict)
focal_class.class_method_signature: Entities.loadEntities(String filename)
focal_class.full_signature: private static Map<String, Character> loadEntities(String filename)
focal_class.identifier: loadEntities
focal_class.modifiers: private static
focal_class.parameters: (String filename)
focal_class.return: Map<String, Character>
focal_class.signature: Map<String, Character> loadEntities(String filename)
focal_class.class_method_signature: Entities.toCharacterKey(Map<String, Character> inMap)
focal_class.full_signature: private static Map<Character, String> toCharacterKey(Map<String, Character> inMap)
focal_class.identifier: toCharacterKey
focal_class.modifiers: private static
focal_class.parameters: (Map<String, Character> inMap)
focal_class.return: Map<Character, String>
focal_class.signature: Map<Character, String> toCharacterKey(Map<String, Character> inMap)
focal_method.body: static String escape(String string, Document.OutputSettings out) {
          return escape(string, out.encoder(), out.escapeMode());
      }
focal_method.class_method_signature: Entities.escape(String string, Document.OutputSettings out)
focal_method.full_signature: static String escape(String string, Document.OutputSettings out)
focal_method.identifier: escape
focal_method.invocations: escape encoder escapeMode
focal_method.modifiers: static
focal_method.parameters: (String string, Document.OutputSettings out)
focal_method.return: String
focal_method.signature: String escape(String string, Document.OutputSettings out)