test_class.declarator: SELECT_ID_FROM_TABLE_S_WHERE_S_ID_1 = 
  		"select id\n from table s \nwhere s.id = 1"
test_class.modifier: private static final
test_class.original_string: private static final String SELECT_ID_FROM_TABLE_S_WHERE_S_ID_1 = 
  		"select id\n from table s \nwhere s.id = 1";
test_class.type: String
test_class.var_name: SELECT_ID_FROM_TABLE_S_WHERE_S_ID_1
test_class.declarator: SELECT_ID_FROM_MYDB_TABLE = 
  		"select id from mydb.table"
test_class.modifier: private static final
test_class.original_string: private static final String SELECT_ID_FROM_MYDB_TABLE = 
  		"select id from mydb.table";
test_class.type: String
test_class.var_name: SELECT_ID_FROM_MYDB_TABLE
test_class.file: sql12/fw/src/test/java/net/sourceforge/squirrel_sql/fw/completion/util/CompletionUtilsTest.java
test_class.identifier: CompletionUtilsTest
test_class.superclass: extends BaseSQuirreLJUnit4TestCase
test_case.body: @Test
  	public void testGetStringToParse_incomplete()
  	{
  		String result = CompletionUtils.getStringToParse("select");
  		assertEquals("select", result);
  	}
test_case.class_method_signature: CompletionUtilsTest.testGetStringToParse_incomplete()
test_case.full_signature: @Test public void testGetStringToParse_incomplete()
test_case.identifier: testGetStringToParse_incomplete
test_case.invocations: getStringToParse assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetStringToParse_incomplete()
focal_class.declarator: SEPARATORS = {' ', '\t', '\n' ,  ',', '(', '\'','"', '=', '>', '<'}
focal_class.modifier: private static final
focal_class.original_string: private static final char[] SEPARATORS = {' ', '\t', '\n' ,  ',', '(', '\'','"', '=', '>', '<'};
focal_class.type: char[]
focal_class.var_name: SEPARATORS
focal_class.file: sql12/fw/src/main/java/net/sourceforge/squirrel_sql/fw/completion/util/CompletionUtils.java
focal_class.identifier: CompletionUtils
focal_class.class_method_signature: CompletionUtils.getStringToParse(String textTillCaret)
focal_class.full_signature: static String getStringToParse(String textTillCaret)
focal_class.identifier: getStringToParse
focal_class.modifiers: static
focal_class.parameters: (String textTillCaret)
focal_class.return: String
focal_class.signature: String getStringToParse(String textTillCaret)
focal_class.class_method_signature: CompletionUtils.getLastSeparatorIndex(String str)
focal_class.full_signature: static int getLastSeparatorIndex(String str)
focal_class.identifier: getLastSeparatorIndex
focal_class.modifiers: static
focal_class.parameters: (String str)
focal_class.return: int
focal_class.signature: int getLastSeparatorIndex(String str)
focal_class.class_method_signature: CompletionUtils.getStringToParsePosition(String textTillCaret)
focal_class.full_signature: static int getStringToParsePosition(String textTillCaret)
focal_class.identifier: getStringToParsePosition
focal_class.modifiers: static
focal_class.parameters: (String textTillCaret)
focal_class.return: int
focal_class.signature: int getStringToParsePosition(String textTillCaret)
focal_method.body: static String getStringToParse(String textTillCaret)
     {
  
        int lastIndexOfLineFeed = textTillCaret.lastIndexOf('\n');
        String lineTillCaret;
  
        if(-1 == lastIndexOfLineFeed)
        {
           lineTillCaret = textTillCaret;
        }
        else
        {
           lineTillCaret = textTillCaret.substring(lastIndexOfLineFeed);
        }
  
        String beginning = "";
        if (0 != lineTillCaret.trim().length() && !Character.isWhitespace(lineTillCaret.charAt(lineTillCaret.length() - 1)))
        {
           String trimmedLineTillCaret = lineTillCaret.trim();
  
           int lastSeparatorIndex = getLastSeparatorIndex(trimmedLineTillCaret);
           if (-1 == lastSeparatorIndex)
           {
              beginning = trimmedLineTillCaret;
           }
           else
           {
              beginning = trimmedLineTillCaret.substring(lastSeparatorIndex + 1, trimmedLineTillCaret.length());
           }
        }
  
        return beginning;
     }
focal_method.class_method_signature: CompletionUtils.getStringToParse(String textTillCaret)
focal_method.full_signature: static String getStringToParse(String textTillCaret)
focal_method.identifier: getStringToParse
focal_method.invocations: lastIndexOf substring length trim isWhitespace charAt length trim getLastSeparatorIndex substring length
focal_method.modifiers: static
focal_method.parameters: (String textTillCaret)
focal_method.return: String
focal_method.signature: String getStringToParse(String textTillCaret)