StringUtilsTrim
| Kind of class: | class |
|---|---|
| Inherits from: | none |
| Author: | Arthur Clemens |
| Classpath: | org.asapframework.util.StringUtilsTrim |
| File last modified: | Thursday, 12 October 2006, 11:18:06 |
Summary
Class properties
Class methods
Class properties
CARRIAGE_CHAR
static CARRIAGE_CHAR:String = "\r"
(read,write)
LINEFEED_CHAR
static LINEFEED_CHAR:String = "\n"
(read,write)
QUOTE_CHAR
static QUOTE_CHAR:String = "\""
(read,write)
SPACE_CHAR
static SPACE_CHAR:String = " "
(read,write)
TAB_CHAR
static TAB_CHAR:String = "\t"
(read,write)
WHITESPACE_CHARS
static WHITESPACE_CHARS:String = StringUtilsTrim.TAB_CHAR + StringUtilsTrim.LINEFEED_CHAR + StringUtilsTrim.CARRIAGE_CHAR + StringUtilsTrim.SPACE_CHAR
(read,write)
All whitespace characters: tab, linefeed, carriage return, space.
Class methods
leftTrimForChars
static function leftTrimForChars (
inString:String,
inRemoveChars:String) : String
Removes specified characters at the left side of a string.
Parameters:
inString :
String to convert
inRemoveChars:
characters to remove
Returns:
The trimmed string.
ltrim
static function ltrim (
inString:String) : String
Removes whitespace characters (WHITESPACE_CHARS) at the left side of a string.
Returns:
The trimmed string.
rightTrimForChars
static function rightTrimForChars (
inString:String,
inRemoveChars:String) : String
Removes specified characters at the right side of a string.
Parameters:
inString :
String to convert
inRemoveChars:
characters to remove
Returns:
The trimmed string.
rtrim
static function rtrim (
inString:String) : String
Removes whitespace characters (WHITESPACE_CHARS) at the right side of a string.
Returns:
The trimmed string.
trim
static function trim (
inString:String) : String
Removes whitespace characters (WHITESPACE_CHARS) at both sides of a string.
Parameters:
inString:
String to convert
Returns:
The trimmed string.