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

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

Description

ends With Ignore Case

License

Open Source License

Declaration

public static boolean endsWithIgnoreCase(String s, String suffix) 

Method Source Code

//package com.java2s;

public class Main {

    public static boolean endsWithIgnoreCase(String s, String suffix) {
        return s.regionMatches(true, s.length() - suffix.length(), suffix, 0, suffix.length());
    }/* w  w w .  j a v a  2 s. c o  m*/
}

Related

  1. endsWithIgnoreCase(String input, String suffix)
  2. endsWithIgnoreCase(String input, String... suffixes)
  3. endsWithIgnoreCase(String name, Iterable patterns)
  4. endsWithIgnoreCase(String p_sStr, String p_sSubStr)
  5. endsWithIgnoreCase(String s, String suffix)
  6. endsWithIgnoreCase(String s, String w)
  7. endsWithIgnoreCase(String seq, String suffix)
  8. endsWithIgnoreCase(String source, String eq)
  9. endsWithIgnoreCase(String str, String suffix)