home *** CD-ROM | disk | FTP | other *** search
/ Computer Shopper 139 / dpcs0999.iso / Web / CFserver / data1.cab / Java / allaire / util / template / FindNoCaseFunction.class (.txt) < prev    next >
Encoding:
Java Class File  |  1999-04-12  |  823 b   |  17 lines

  1. package allaire.util.template;
  2.  
  3. import allaire.util.TypelessValue;
  4. import netscape.util.Vector;
  5.  
  6. class FindNoCaseFunction extends Function {
  7.    FindNoCaseFunction() {
  8.       super(new FunctionInfo("FindNoCase", 2, false, 1, 1, -1, -1));
  9.    }
  10.  
  11.    public TypelessValue doIt(Vector var1) throws FunctionCallException {
  12.       String var2 = ((Function)this).getArgumentAsString(var1, 0).toUpperCase();
  13.       String var3 = ((Function)this).getArgumentAsString(var1, 1).toUpperCase();
  14.       return new TypelessValue(var2.indexOf(var3) + 1);
  15.    }
  16. }
  17.