Adobe 38040334 - Dreamweaver CS3 User Manual page 355

Extending dreamweaver
Hide thumbs Also See for 38040334 - Dreamweaver CS3:
Table of Contents

Advertisement

• The
argument is the number of arguments that the function expects to receive.
nargs
Returns
A Boolean value:
JS_TRUE
char *JS_ValueToString()
Description
This function extracts a function argument from a
converted value back to the caller.
Note: Do not modify the returned buffer pointer or you might corrupt the data structures of the JavaScript interpreter.
To change the string, you must copy the characters into another buffer and create a new JavaScript string.
Arguments
,
JSContext *cx
jsval v
• The
argument is the opaque
cx
• The
argument is the
v
JSVal
• The
argument is a pointer to an unsigned integer. This function sets
pLength
string in bytes.
Returns
A pointer that points to a null-terminated string if successful or to a
not free this string when it finishes.
JSBool JS_ValueToInteger()
Description
This function extracts a function argument from a
the converted value back to the caller.
Arguments
,
JSContext *cx
jsval v
• The
argument is the opaque
cx
• The
argument is the
v
JSVal
• The
argument is a pointer to a 4-byte integer. This function stores the converted value in
lp
Returns
A Boolean value:
JS_TRUE
JSBool JS_ValueToDouble()
Description
This function extracts a function argument from a
the converted value back to the caller.
indicates success;
JS_FALSE
JSVal
,
unsigned int *pLength
pointer that passes to the JavaScript function.
JSContext
structure from which the string is to be extracted.
JSVal
,
long *lp
pointer that passes to the JavaScript function.
JSContext
structure from which the integer is to be extracted.
indicates success;
JS_FALSE
JSVal
indicates failure.
structure, converts it to a string, if possible, and passes the
*plength
value on failure. The calling routine must
null
structure, converts it to an integer (if possible), and passes
indicates failure.
structure, converts it to a double (if possible), and passes
DREAMWEAVER CS3
Extending Dreamweaver
equal to the length of the
.
*lp
349

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents