Package | com.adobe.mediacore.utils |
Class | public final class StringUtils |
Inheritance | StringUtils ![]() |
Method | Defined By | ||
---|---|---|---|
isEmpty(value:String):Boolean [static]
Checks if the string is null or contains only spaces. | StringUtils | ||
trim(value:String):String [static]
Trims the leading and trailing spaces from the provided value. | StringUtils | ||
trimQuotes(value:String):String [static]
Remove the leading and trailing quotes from the input string. | StringUtils |
isEmpty | () | method |
public static function isEmpty(value:String):Boolean
Checks if the string is null or contains only spaces.
Parameters
value:String — the value to be checked
|
Boolean — true if the string is really "empty" and false otherwise.
|
trim | () | method |
public static function trim(value:String):String
Trims the leading and trailing spaces from the provided value.
Parameters
value:String — string to be trimmed.
|
String — a new string without the leading or trailing values.
|
trimQuotes | () | method |
public static function trimQuotes(value:String):String
Remove the leading and trailing quotes from the input string. For instance, if the input is input text" then nput textis returned.
Parameters
value:String — The input string
|
String — The string without the leading and trailing quotes.
|