StringUtils

public final CLASS
 

Class Description

A utlity class for manipulating strings.

 

Listing

 

Methods

after(s:String, token:String):String
static
Searches string for token. If found, returns characters after token. If not found, returns the empty string.
before(s:String, token:String):String
static
Searches string for token. If found, returns characters before token. If not found, returns original string.
startsWith(s:String, token:String):Boolean
static
true when the given string begins with token.
endsWith(s:String, token:String):Boolean
static
true when the given string ends with token.
 

Details

 

Methods

 

after()
static

public static function after(s:String, token:String):String

Searches string for token. If found, returns characters after token. If not found, returns the empty string.

If the token ends the string, return value will be the empty string.

s:StringThe string to search
token:StringThe string to find
returns
String

characters after token, or empty string

 

before()
static

public static function before(s:String, token:String):String

Searches string for token. If found, returns characters before token. If not found, returns original string.

If the token starts the string, return value will be the empty string.

s:StringThe string to search
token:StringThe string to find
returns
String

characters before token, or empty string

 

startsWith()
static

public static function startsWith(s:String, token:String):Boolean

true when the given string begins with token.

s:StringThe string to search
token:StringThe string to find
returns
Boolean

Boolean indicating whether token begins the string

 

endsWith()
static

public static function endsWith(s:String, token:String):Boolean

true when the given string ends with token.

s:StringThe string to search
token:StringThe string to find
returns
Boolean

Boolean indicating whether token ends the string

 

 

 

 

 

 

 

 

 

 

lsdoc 2018 pixeldroid
https://github.com/pixeldroid/lsdoc
programming pages theme v0.5.10 (https://github.com/pixeldroid/programming-pages)