C# Class SGDE.Content.Code.Library.Global

Top level or global functions are available in any place where ActionScript is used, or in any user-defined class.
Datei anzeigen Open project: sgdc/sgdc-old

Public Properties

Property Type Description
undefined Object

Public Methods

Method Description
decodeURI ( String uri ) : String

Decodes an encoded URI into a string.

encodeURI ( String uri ) : String

Encodes a string into a valid URI (Uniform Resource Identifier).

isFinite ( Number num ) : Boolean

Returns true if the value is a finite number, or false if the value is Infinity or -Infinity.

isNaN ( Number num ) : Boolean

Returns true if the value is NaN(not a number).

parseFloat ( String str ) : Number

Converts a string to a floating-point number.

parseInt ( String str ) : Number

Converts a string to an integer.

parseInt ( String str, uint radix ) : Number

Converts a string to an integer.

Private Methods

Method Description
validForNum ( char c, uint radix, bool flt ) : bool
validForNum ( string str, int index, uint radix, bool flt ) : bool

Method Details

decodeURI() public static method

Decodes an encoded URI into a string.
public static decodeURI ( String uri ) : String
uri String A string encoded with the encodeURI function.
return String

encodeURI() public static method

Encodes a string into a valid URI (Uniform Resource Identifier).
public static encodeURI ( String uri ) : String
uri String A string representing a complete URI.
return String

isFinite() public static method

Returns true if the value is a finite number, or false if the value is Infinity or -Infinity.
public static isFinite ( Number num ) : Boolean
num Number A number to evaluate as finite or infinite.
return Boolean

isNaN() public static method

Returns true if the value is NaN(not a number).
public static isNaN ( Number num ) : Boolean
num Number A numeric value or mathematical expression to evaluate.
return Boolean

parseFloat() public static method

Converts a string to a floating-point number.
public static parseFloat ( String str ) : Number
str String The string to read and convert to a floating-point number.
return Number

parseInt() public static method

Converts a string to an integer.
public static parseInt ( String str ) : Number
str String A string to convert to an integer.
return Number

parseInt() public static method

Converts a string to an integer.
public static parseInt ( String str, uint radix ) : Number
str String A string to convert to an integer.
radix uint An integer representing the radix (base) of the number to parse. Legal values are from 2 to 36.
return Number

Property Details

undefined public_oe static_oe property

A special value that applies to untyped variables that have not been initialized or dynamic object properties that are not initialized.
public static Object undefined
return Object