001 /** 002 * Implements the CFML Function comparenocase 003 */ 004 package railo.runtime.functions.string; 005 006 import railo.runtime.PageContext; 007 import railo.runtime.ext.function.Function; 008 009 public final class CompareNoCase implements Function { 010 public static double call(PageContext pc , String str1, String str2) { 011 int compare=str1.compareToIgnoreCase(str2); 012 if(compare==0) return 0; 013 return compare>0?1:-1; 014 015 //return Compare.call(pc,str1.toLowerCase(),str2.toLowerCase()); 016 } 017 }