Java String Ends With endsWithIgnoreCase(String input, String suffix)

Here you can find the source of endsWithIgnoreCase(String input, String suffix)

Description

ends With Ignore Case

License

Open Source License

Declaration

public static boolean endsWithIgnoreCase(String input, String suffix) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static boolean endsWithIgnoreCase(String input, String suffix) {
        if (input.length() < suffix.length())
            return false;
        String inputSuf = input.substring(input.length() - suffix.length());
        return inputSuf.equalsIgnoreCase(suffix);
    }//from w ww. ja  va 2  s  . c o m
}

Related

  1. endsWithIgnoreCase(final String text, final String suffix)
  2. endsWithIgnoreCase(Object string, Object suffix)
  3. endsWithIgnoreCase(String a, String b)
  4. endsWithIgnoreCase(String baseString, String compareString)
  5. endsWithIgnoreCase(String haystack, String needle)
  6. endsWithIgnoreCase(String input, String... suffixes)
  7. endsWithIgnoreCase(String name, Iterable patterns)
  8. endsWithIgnoreCase(String p_sStr, String p_sSubStr)
  9. endsWithIgnoreCase(String s, String suffix)