Java String Starts Wtih startsWithIgnoreCase(String haystack, String pattern)

Here you can find the source of startsWithIgnoreCase(String haystack, String pattern)

Description

starts With Ignore Case

License

Apache License

Declaration

public static boolean startsWithIgnoreCase(String haystack,
            String pattern) 

Method Source Code

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

public class Main {
    public static boolean startsWithIgnoreCase(String haystack,
            String pattern) {/*  ww  w . j  a  v a  2 s.c om*/
        return haystack.substring(0, pattern.length()).equalsIgnoreCase(
                pattern);
    }
}

Related

  1. startsWithIgnoreCase(final String text, final String prefix)
  2. startsWithIgnoreCase(final String value, final String possiblePrefix)
  3. startsWithIgnoreCase(String a, String b)
  4. startsWithIgnoreCase(String baseString, String compareString)
  5. startsWithIgnoreCase(String haystack, String needle)
  6. startsWithIgnoreCase(String input, String prefix)
  7. startsWithIgnoreCase(String inputValue, String prefix)
  8. startsWithIgnoreCase(String main, String with)
  9. startsWithIgnoreCase(String name, Iterable patterns)