Interface JSGlobalFunctions
- All Superinterfaces:
JSObjectFunctions
-
Method Summary
Modifier and TypeMethodDescriptionfunction decodeURI(uri) unescape characters in a URI.function decodeURIComponent(s) unescape characters in a URI component.function encodeURI(uri) escape characters in a URI.function encodeURIComponent(s) escape characters in a URI Component.function escape(s) encode a string.function eval(code) execute JavaScript from a string.function isFinite(n) determine whether a number is finite.function isNaN(n) check for not-a-number.function parseFloat(s) convert a string to a number.function parseInt(s, radix) convert a string to an integer.function unescape(s) decode an escaped string.Methods inherited from interface org.fife.rsta.ac.js.ecma.api.ecma3.functions.JSObjectFunctions
hasOwnProperty, isPrototypeOf, propertyIsEnumerable, toLocaleString, toString, valueOf
-
Method Details
-
decodeURI
function decodeURI(uri) unescape characters in a URI.- Parameters:
uri- A string that contains an encoded URI or other text to be decoded.- Since:
- Standard ECMA-262 3rd. Edition, Level 2 Document Object Model Core Definition.
- See Also:
-
decodeURIComponent
function decodeURIComponent(s) unescape characters in a URI component.- Parameters:
s- A string that contains an encoded URI components or other text to be decoded.- Since:
- Standard ECMA-262 3rd. Edition, Level 2 Document Object Model Core Definition.
- See Also:
-
encodeURI
function encodeURI(uri) escape characters in a URI.- Parameters:
uri- A string that contains the URI or other text to be encoded.- Since:
- Standard ECMA-262 3rd. Edition, Level 2 Document Object Model Core Definition.
- See Also:
-
encodeURIComponent
function encodeURIComponent(s) escape characters in a URI Component.- Parameters:
s- A string that contains a portion of a URI or other text to be encoded.- Since:
- Standard ECMA-262 3rd. Edition, Level 2 Document Object Model Core Definition.
- See Also:
-
escape
function escape(s) encode a string.- Parameters:
s- A string to be "escaped" or encoded.- Since:
- Standard ECMA-262 3rd. Edition, Level 2 Document Object Model Core Definition.
- See Also:
-
eval
function eval(code) execute JavaScript from a string.Example
eval("2+5"); //Returns 7- Parameters:
code- A string that contains the JavaScript expression to be evaluated or the statements to be executed.- Since:
- Standard ECMA-262 3rd. Edition, Level 2 Document Object Model Core Definition.
- See Also:
-
isFinite
function isFinite(n) determine whether a number is finite.- Parameters:
n- The number to be tested.- Since:
- Standard ECMA-262 3rd. Edition, Level 2 Document Object Model Core Definition.
- See Also:
-
isNaN
function isNaN(n) check for not-a-number.Example
isNaN(0); // => false isNaN(0/0); //=> true isNaN(parseInt("3")); //=> false isNaN(parseInt("hello")); //=> true isNaN("3"); //=> false isNaN("hello"); //=gt; true isNaN(true); //=> false isNaN(undefined); //=> true- Parameters:
n- The number to be tested.- Since:
- Standard ECMA-262 3rd. Edition, Level 2 Document Object Model Core Definition.
- See Also:
-
parseFloat
function parseFloat(s) convert a string to a number.- Parameters:
s- The string to be parsed and converted to a number- Since:
- Standard ECMA-262 3rd. Edition, Level 2 Document Object Model Core Definition.
- See Also:
-
parseInt
function parseInt(s, radix) convert a string to an integer.- Parameters:
s- The string to be parsed and converted to an integerradix- An optional integer argument that represents the radix (i.e. base) of the number to be parsed. If omitted or 0, the number is parsed in base 10.- Since:
- Standard ECMA-262 3rd. Edition, Level 2 Document Object Model Core Definition.
- See Also:
-
unescape
function unescape(s) decode an escaped string.- Parameters:
s- A string to be "unescaped" or decoded.- Since:
- Standard ECMA-262 3rd. Edition, Level 2 Document Object Model Core Definition.
- See Also:
-