Java String Match regionMatches(CharSequence cs, boolean ignoreCase, int thisStart, CharSequence substring, int start, int length)

Here you can find the source of regionMatches(CharSequence cs, boolean ignoreCase, int thisStart, CharSequence substring, int start, int length)

Description

region Matches

License

Apache License

Declaration

static boolean regionMatches(CharSequence cs, boolean ignoreCase, int thisStart, CharSequence substring,
            int start, int length) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    static boolean regionMatches(CharSequence cs, boolean ignoreCase, int thisStart, CharSequence substring,
            int start, int length) {
        if (cs instanceof String && substring instanceof String) {
            return ((String) cs).regionMatches(ignoreCase, thisStart, (String) substring, start, length);
        } else {//from ww w. j  a  va 2s.c om
            // TODO: Implement rather than convert to String
            return cs.toString().regionMatches(ignoreCase, thisStart, substring.toString(), start, length);
        }
    }
}

Related

  1. regionMatches(boolean ignoreCase, CharSequence thisSeq, int toffset, CharSequence otherSeq, int ooffset, int len)
  2. regionMatches(byte[] ba1, int pos1, byte[] ba2, int pos2, int len)
  3. regionMatches(byte[] subValue, byte[] superValue, int offset)
  4. regionMatches(char[] source, char[] target, int sIndex)
  5. regionMatches(CharSequence a, int i, CharSequence b, int j, int len)
  6. regionMatches(CharSequence cs, boolean ignoreCase, int thisStart, CharSequence substring, int start, int length)
  7. regionMatches(CharSequence receiver, int thisOffset, String other, int otherOffset, int length, boolean ignoreCase)
  8. regionMatches(CharSequence seq, int toff, CharSequence other, int ooff, int len)
  9. regionMatches(final char[] content, final int index, final String tag)