test_class.file: strings/src/test/java/org/cthul/strings/RegExTest.java
test_class.identifier: RegExTest
test_case.body: @Test
      public void test_block_quote_space() {
          assertThat(quote("( )"), is("\\Q( )\\E"));
      }
test_case.class_method_signature: RegExTest.test_block_quote_space()
test_case.full_signature: @Test public void test_block_quote_space()
test_case.identifier: test_block_quote_space
test_case.invocations: assertThat quote is
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void test_block_quote_space()
focal_class.declarator: QUOTED = new boolean[256]
focal_class.modifier: private static final
focal_class.original_string: private static final boolean[] QUOTED = new boolean[256];
focal_class.type: boolean[]
focal_class.var_name: QUOTED
focal_class.declarator: MAX_UNQUOTE_LEN = 6
focal_class.modifier: private static final
focal_class.original_string: private static final int MAX_UNQUOTE_LEN = 6;
focal_class.type: int
focal_class.var_name: MAX_UNQUOTE_LEN
focal_class.declarator: MAX_SINGLE_QUOTE_LEN = 3
focal_class.modifier: private static final
focal_class.original_string: private static final int MAX_SINGLE_QUOTE_LEN = 3;
focal_class.type: int
focal_class.var_name: MAX_SINGLE_QUOTE_LEN
focal_class.declarator: MAX_SINGLE_UNQUOTE_LEN = 2
focal_class.modifier: private static final
focal_class.original_string: private static final int MAX_SINGLE_UNQUOTE_LEN = 2;
focal_class.type: int
focal_class.var_name: MAX_SINGLE_UNQUOTE_LEN
focal_class.file: strings/src/main/java/org/cthul/strings/RegEx.java
focal_class.identifier: RegEx
focal_class.class_method_signature: RegEx.quote(final String string)
focal_class.full_signature: public static String quote(final String string)
focal_class.identifier: quote
focal_class.modifiers: public static
focal_class.parameters: (final String string)
focal_class.return: String
focal_class.signature: String quote(final String string)
focal_class.class_method_signature: RegEx.needsQuoting(char c)
focal_class.full_signature: private static boolean needsQuoting(char c)
focal_class.identifier: needsQuoting
focal_class.modifiers: private static
focal_class.parameters: (char c)
focal_class.return: boolean
focal_class.signature: boolean needsQuoting(char c)
focal_class.class_method_signature: RegEx.needsBlockQuoting(char c)
focal_class.full_signature: private static boolean needsBlockQuoting(char c)
focal_class.identifier: needsBlockQuoting
focal_class.modifiers: private static
focal_class.parameters: (char c)
focal_class.return: boolean
focal_class.signature: boolean needsBlockQuoting(char c)
focal_class.class_method_signature: RegEx.quote(final StringBuilder target, final String string, final int start)
focal_class.full_signature: private static int quote(final StringBuilder target, final String string, final int start)
focal_class.identifier: quote
focal_class.modifiers: private static
focal_class.parameters: (final StringBuilder target, final String string, final int start)
focal_class.return: int
focal_class.signature: int quote(final StringBuilder target, final String string, final int start)
focal_class.class_method_signature: RegEx.quoteSingle(final StringBuilder sb, final String string, final int start)
focal_class.full_signature: private static int quoteSingle(final StringBuilder sb, final String string, final int start)
focal_class.identifier: quoteSingle
focal_class.modifiers: private static
focal_class.parameters: (final StringBuilder sb, final String string, final int start)
focal_class.return: int
focal_class.signature: int quoteSingle(final StringBuilder sb, final String string, final int start)
focal_class.class_method_signature: RegEx.quoteBlock(final StringBuilder sb, final String string, final int start, int i)
focal_class.full_signature: private static int quoteBlock(final StringBuilder sb, final String string, final int start, int i)
focal_class.identifier: quoteBlock
focal_class.modifiers: private static
focal_class.parameters: (final StringBuilder sb, final String string, final int start, int i)
focal_class.return: int
focal_class.signature: int quoteBlock(final StringBuilder sb, final String string, final int start, int i)
focal_class.class_method_signature: RegEx.appendBlockQuoted(StringBuilder sb, String s, int start, int end)
focal_class.full_signature: private static void appendBlockQuoted(StringBuilder sb, String s, int start, int end)
focal_class.identifier: appendBlockQuoted
focal_class.modifiers: private static
focal_class.parameters: (StringBuilder sb, String s, int start, int end)
focal_class.return: void
focal_class.signature: void appendBlockQuoted(StringBuilder sb, String s, int start, int end)
focal_class.class_method_signature: RegEx.appendSingleQuoted(StringBuilder sb, String string, int start, int end, int quoteMap)
focal_class.full_signature: private static void appendSingleQuoted(StringBuilder sb, String string, int start, int end, int quoteMap)
focal_class.identifier: appendSingleQuoted
focal_class.modifiers: private static
focal_class.parameters: (StringBuilder sb, String string, int start, int end, int quoteMap)
focal_class.return: void
focal_class.signature: void appendSingleQuoted(StringBuilder sb, String string, int start, int end, int quoteMap)
focal_method.body: public static String quote(final String string) {
          int last = 0;
          final StringBuilder sb = new StringBuilder();
          for (int i = 0; i < string.length(); i++) {
              if (needsQuoting(string.charAt(i))) {
                  sb.append(string, last, i);
                  last = i = quote(sb, string, i);
              }
          }
          sb.append(string, last, string.length());
          return sb.toString();
      }
focal_method.class_method_signature: RegEx.quote(final String string)
focal_method.full_signature: public static String quote(final String string)
focal_method.identifier: quote
focal_method.invocations: length needsQuoting charAt append quote append length toString
focal_method.modifiers: public static
focal_method.parameters: (final String string)
focal_method.return: String
focal_method.signature: String quote(final String string)