comparison flys-backend/src/main/java/de/intevation/flys/utils/StringUtil.java @ 5021:bf22086747bc

StringUtil: Added containsIgnoreCase implementation.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Tue, 19 Feb 2013 12:03:55 +0100
parents 2e993a847e31
children
comparison
equal deleted inserted replaced
5020:443c173f043a 5021:bf22086747bc
817 817
818 testQuoteReplacement(); 818 testQuoteReplacement();
819 testQuote(); 819 testQuote();
820 testStringArray2D(); 820 testStringArray2D();
821 } 821 }
822
823 /** Check for occurence of needle in hay, converting both to lowercase
824 * to be ignorant of cases. */
825 public static boolean containsIgnoreCase(String hay, String needle) {
826 return hay.toLowerCase().contains(needle.toLowerCase());
827 }
822 } 828 }
823 // end of file 829 // end of file

http://dive4elements.wald.intevation.org