Jsbool Js_Stringtovalue(); Jsbool Js_Doubletovalue() - MACROMEDIA DREAMWEAVER MX 2004-EXTENDING DREAMWEAVER Manual

Extending dreamweaver
Hide thumbs Also See for DREAMWEAVER MX 2004-EXTENDING DREAMWEAVER:
Table of Contents

Advertisement

Returns
A Boolean value:

JSBool JS_StringToValue()

Description
This function stores a string return value in a
object.
Arguments
JSContext *cx
The
argument is the opaque
cx
The
argument is the string to be stored in the
bytes
so the caller should free the string when it is not needed. If the string size is not specified (see
the
argument), the string must be null-terminated.
sz
The
argument is the size of the string, in bytes. If
sz
string is computed automatically.
The
argument is a pointer to the
vp
should be copied.
Returns
A Boolean value:

JSBool JS_DoubleToValue()

Description
This function stores a floating-point number return value in a
Arguments
JSContext *cx
The
argument is the opaque
cx
The
argument is an 8-byte floating-point number.
dv
The
argument is a pointer to the
vp
should be copied.
Returns
A Boolean value:
indicates success;
JS_TRUE
,
,
char *bytes
size_t sz
JSContext
indicates success;
JS_TRUE
,
,
double dv
jsval *vp
JSContext
indicates success;
JS_TRUE
indicates failure.
JS_FALSE
structure. It allocates a new JavaScript string
jsval
,
jsval *vp
pointer that passes to the JavaScript function.
jsval
is 0, the length of the null-terminated
sz
structure into which the contents of the string
jsval
indicates failure.
JS_FALSE
pointer that passes to the JavaScript function.
structure into which the contents of the double
jsval
indicates failure.
JS_FALSE
structure. The string data is copied,
structure.
jsval
The C-level API
359

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DREAMWEAVER MX 2004-EXTENDING DREAMWEAVER and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Dreamweaver mx 2004

Table of Contents