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 testGetStringToParsePosition()
  	{
  		assertEquals(14, CompletionUtils.getStringToParsePosition(SELECT_ID_FROM_MYDB_TABLE));
  		assertEquals(38, CompletionUtils.getStringToParsePosition(SELECT_ID_FROM_TABLE_S_WHERE_S_ID_1));	
  	}
test_case.class_method_signature: CompletionUtilsTest.testGetStringToParsePosition()
test_case.full_signature: @Test public void testGetStringToParsePosition()
test_case.identifier: testGetStringToParsePosition
test_case.invocations: assertEquals getStringToParsePosition assertEquals getStringToParsePosition
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetStringToParsePosition()
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 int getStringToParsePosition(String textTillCaret)
  	{
  
  		int lastIndexOfLineFeed = textTillCaret.lastIndexOf('\n');
  		String lineTillCaret;
  
  		if (-1 == lastIndexOfLineFeed)
  		{
  			lineTillCaret = textTillCaret;
  		}
  		else
  		{
  			lineTillCaret = textTillCaret.substring(lastIndexOfLineFeed);
  		}
  
  		int pos = lastIndexOfLineFeed + 1;
  		if (0 != lineTillCaret.length() && !Character.isWhitespace(lineTillCaret.charAt(lineTillCaret.length() - 1)))
  		{
  			int lastSeparatorIndex = getLastSeparatorIndex(lineTillCaret);
  			if (-1 != lastSeparatorIndex)
  			{
  				pos += lastSeparatorIndex;
  			}
  		}
  
  		return pos;
  	}
focal_method.class_method_signature: CompletionUtils.getStringToParsePosition(String textTillCaret)
focal_method.full_signature: static int getStringToParsePosition(String textTillCaret)
focal_method.identifier: getStringToParsePosition
focal_method.invocations: lastIndexOf substring length isWhitespace charAt length getLastSeparatorIndex
focal_method.modifiers: static
focal_method.parameters: (String textTillCaret)
focal_method.return: int
focal_method.signature: int getStringToParsePosition(String textTillCaret)