class com.google.ads.studio.utils.PrimitiveUtils
Utilities for operating on Flash primitives.
Static Methods
PrimitiveUtils.getUrlProtocol(url:String)
:
String
Retrieves the protocols of URLs. Format is //, http://, or https://.
PrimitiveUtils.lessThanByMinimumDifference(small:Number, big:Number, difference:Number=0)
:
Boolean
Checks if one number is less than another by a minimum difference.
PrimitiveUtils.notNullNorEmpty(value:Object)
:
Boolean
Returns if the object is not null nor empty.
PrimitiveUtils.parseStringToMap(toParse:String, pairDivider:String=&, elemDivider:String==)
:
Object
Parses an object map out of a string.
PrimitiveUtils.replaceUrlProtocol(url:String, protocol:String)
:
String
Replaces the protocols of URLs.
PrimitiveUtils.roundNumber(number:Number, decimalPlace:Number)
:
Number
Rounds a number to a desired decimal place.
PrimitiveUtils.trim(string:String)
:
String
Removes the whitespace from the ends of a string and returns the result.
PrimitiveUtils.unescapeAsciiString(string:String)
:
String
Unescapes ascii characters in the form \x3c. This type of escaping is done by the Google SourceCodeEscapers.