home *** CD-ROM | disk | FTP | other *** search
- package allaire.util.template;
-
- import allaire.util.TypelessValue;
- import netscape.util.Vector;
-
- class FindNoCaseFunction extends Function {
- FindNoCaseFunction() {
- super(new FunctionInfo("FindNoCase", 2, false, 1, 1, -1, -1));
- }
-
- public TypelessValue doIt(Vector var1) throws FunctionCallException {
- String var2 = ((Function)this).getArgumentAsString(var1, 0).toUpperCase();
- String var3 = ((Function)this).getArgumentAsString(var1, 1).toUpperCase();
- return new TypelessValue(var2.indexOf(var3) + 1);
- }
- }
-