Packagecom.adobe.mediacore.utils
Classpublic final class StringUtils
InheritanceStringUtils Inheritance Object

Class containing various helper methods related to strings.



Public Methods
 MethodDefined 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
Method Detail
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

Returns
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.

Returns
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

Returns
String — The string without the leading and trailing quotes.