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

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