-
Enhancement
-
Resolution: Unresolved
-
P5
-
None
-
6
-
generic
-
generic
A DESCRIPTION OF THE REQUEST :
Required method is:
(class String)
public String trim(String chars)
JUSTIFICATION :
Often it is required to trim multiple characters from strings. In TCL, for example, the string trim proc takes a list of characters to trim which is very convenient.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
For example, if a String x equals " \'test\' ", the call
x.trim(" \\'")
should return "test".
Required method is:
(class String)
public String trim(String chars)
JUSTIFICATION :
Often it is required to trim multiple characters from strings. In TCL, for example, the string trim proc takes a list of characters to trim which is very convenient.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
For example, if a String x equals " \'test\' ", the call
x.trim(" \\'")
should return "test".