com.gargoylesoftware.htmlunit.javascript.host
Class StringCustom

java.lang.Object
  extended by com.gargoylesoftware.htmlunit.javascript.host.StringCustom

public final class StringCustom
extends Object

Contains some missing features of Rhino NativeString.

Version:
$Revision: 5699 $
Author:
Ahmed Ashour

Method Summary
static String trimLeft(net.sourceforge.htmlunit.corejs.javascript.Context context, net.sourceforge.htmlunit.corejs.javascript.Scriptable thisObj, Object[] args, net.sourceforge.htmlunit.corejs.javascript.Function function)
          Removes whitespace from the left end of the string.
static String trimRight(net.sourceforge.htmlunit.corejs.javascript.Context context, net.sourceforge.htmlunit.corejs.javascript.Scriptable thisObj, Object[] args, net.sourceforge.htmlunit.corejs.javascript.Function function)
          Removes whitespace from the right end of the string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

trimLeft

public static String trimLeft(net.sourceforge.htmlunit.corejs.javascript.Context context,
                              net.sourceforge.htmlunit.corejs.javascript.Scriptable thisObj,
                              Object[] args,
                              net.sourceforge.htmlunit.corejs.javascript.Function function)
Removes whitespace from the left end of the string.

Parameters:
context - the JavaScript context
thisObj - the scriptable
args - the arguments passed into the method
function - the function
Returns:
the left trimmed string

trimRight

public static String trimRight(net.sourceforge.htmlunit.corejs.javascript.Context context,
                               net.sourceforge.htmlunit.corejs.javascript.Scriptable thisObj,
                               Object[] args,
                               net.sourceforge.htmlunit.corejs.javascript.Function function)
Removes whitespace from the right end of the string.

Parameters:
context - the JavaScript context
thisObj - the scriptable
args - the arguments passed into the method
function - the function
Returns:
the right trimmed string


Copyright © 2002-2011 Gargoyle Software Inc.. All Rights Reserved.