Java String Ends With endsWithIC(String a, String b)

Here you can find the source of endsWithIC(String a, String b)

Description

ends With IC

License

Open Source License

Declaration

public static boolean endsWithIC(String a, String b) 

Method Source Code

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

public class Main {
    public static boolean endsWithIC(String a, String b) {
        if (a == null || b == null)
            return false;
        else if (a.endsWith(b))
            return true;
        else//from w w  w .  j a  va  2  s .  com
            return a.toLowerCase().endsWith(b.toLowerCase());
    }
}

Related

  1. endsWithDigit(final String s)
  2. endsWithDoubleConsonent(String str)
  3. endsWithExtension(final String fileName, final String extension)
  4. endsWithFFD9(byte[] data)
  5. endsWithGaps(final byte[] aFrag, final int numEndGaps)
  6. endsWithIC(String s1, String s2)
  7. endsWithIgnoreCase(final String base, final String end)
  8. endsWithIgnoreCase(final String base, final String end)
  9. endsWithIgnoreCase(final String haystack, final String needle)