A utlity class for manipulating strings.
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. |
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:String | The string to search |
token:String | The string to find |
returns String | characters after token, or empty string |
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:String | The string to search |
token:String | The string to find |
returns String | characters before token, or empty string |
public static function startsWith(s:String, token:String):Boolean
true
when the given string begins with token.
s:String | The string to search |
token:String | The string to find |
returns Boolean | Boolean indicating whether token begins the string |
public static function endsWith(s:String, token:String):Boolean
true
when the given string ends with token.
s:String | The string to search |
token:String | The 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) |
s |
focus search bar ( enter to select, ▲ / ▼ to change selection) |
g a |
go to api |
g e |
go to examples |
g g |
go to guides |
h |
toggle this help ( esc also exits) |