StringUtilsTrim
| Kind of class: | class |
|---|---|
| Inherits from: | none |
| Author: | Arthur Clemens |
| Classpath: | org.asapframework.util.StringUtilsTrim |
| File last modified: | Thursday, 12 October 2006, 11:19:40 |
Summary
Class properties
- QUOTE_CHAR : String
- TAB_CHAR : String
- LINEFEED_CHAR : String
- CARRIAGE_CHAR : String
- SPACE_CHAR : String
- WHITESPACE_CHARS : String
- All whitespace characters: tab, linefeed, carriage return, space.
Class methods
- leftTrimForChars (inString:String, inRemoveChars:String) : String
- Removes specified characters at the left side of a string.
- rightTrimForChars (inString:String, inRemoveChars:String) : String
- Removes specified characters at the right side of a string.
- rtrim (inString:String) : String
- Removes whitespace characters (WHITESPACE_CHARS) at the right side of a string.
- ltrim (inString:String) : String
- Removes whitespace characters (WHITESPACE_CHARS) at the left side of a string.
- trim (inString:String) : String
- Removes whitespace characters (WHITESPACE_CHARS) at both sides of a string.
Class properties
CARRIAGE_CHAR
static CARRIAGE_CHAR:String = "\r"
(read)
LINEFEED_CHAR
static LINEFEED_CHAR:String = "\n"
(read)
QUOTE_CHAR
static QUOTE_CHAR:String = "\""
(read)
SPACE_CHAR
static SPACE_CHAR:String = " "
(read)
TAB_CHAR
static TAB_CHAR:String = "\t"
(read)
WHITESPACE_CHARS
static WHITESPACE_CHARS:String = StringUtilsTrim.TAB_CHAR + StringUtilsTrim.LINEFEED_CHAR + StringUtilsTrim.CARRIAGE_CHAR + StringUtilsTrim.SPACE_CHAR
(read)
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.