@Test public void regionDoesNotMatchCaseSensitiveIfStringsAreNotEqual() throws Exception { final CharSequence str1 = new StringBuilder("camelCaseString"); final CharSequence str2 = new StringBuilder("CAMELcASEsTRING"); assertThat(MoreStrings.regionMatches(str1, false, 0, str2, 0, str1.length()),equalTo(false)); }
static boolean regionMatches( final CharSequence target, final boolean ignoreCase, final int toffset, final CharSequence other, final int ooffset, final int length) { boolean result; if (target instanceof String && other instanceof String) { result=delegateCheck((String)target,ignoreCase,toffset,ooffset,length,(String) other); } else { result=carryOutCheck(target, ignoreCase, toffset, other, ooffset, length); } return result; }
MoreStrings { static boolean regionMatches( final CharSequence target, final boolean ignoreCase, final int toffset, final CharSequence other, final int ooffset, final int length) { boolean result; if (target instanceof String && other instanceof String) { result=delegateCheck((String)target,ignoreCase,toffset,ooffset,length,(String) other); } else { result=carryOutCheck(target, ignoreCase, toffset, other, ooffset, length); } return result; } }
MoreStrings { static boolean regionMatches( final CharSequence target, final boolean ignoreCase, final int toffset, final CharSequence other, final int ooffset, final int length) { boolean result; if (target instanceof String && other instanceof String) { result=delegateCheck((String)target,ignoreCase,toffset,ooffset,length,(String) other); } else { result=carryOutCheck(target, ignoreCase, toffset, other, ooffset, length); } return result; } private  MoreStrings(); }
MoreStrings { static boolean regionMatches( final CharSequence target, final boolean ignoreCase, final int toffset, final CharSequence other, final int ooffset, final int length) { boolean result; if (target instanceof String && other instanceof String) { result=delegateCheck((String)target,ignoreCase,toffset,ooffset,length,(String) other); } else { result=carryOutCheck(target, ignoreCase, toffset, other, ooffset, length); } return result; } private  MoreStrings();  }
MoreStrings { static boolean regionMatches( final CharSequence target, final boolean ignoreCase, final int toffset, final CharSequence other, final int ooffset, final int length) { boolean result; if (target instanceof String && other instanceof String) { result=delegateCheck((String)target,ignoreCase,toffset,ooffset,length,(String) other); } else { result=carryOutCheck(target, ignoreCase, toffset, other, ooffset, length); } return result; } private  MoreStrings();   }