if(length > textArray.length)
if(length > text.offset + text.count)
	public static boolean regionMatches(boolean ignoreCase, Segment text,					    int offset, String match)	{		int length = offset + match.length();		char[] textArray = text.array;		if(length > textArray.length)			return false;		for(int i = offset, j = 0; i < length; i++, j++)		{			char c1 = textArray[i];			char c2 = match.charAt(j);			if(ignoreCase)			{				c1 = Character.toUpperCase(c1);				c2 = Character.toUpperCase(c2);			}			if(c1 != c2)				return false;		}		return true;	}