178 |
extern JSBool |
extern JSBool |
179 |
js_NewNumberInRootedValue(JSContext *cx, jsdouble d, jsval *vp); |
js_NewNumberInRootedValue(JSContext *cx, jsdouble d, jsval *vp); |
180 |
|
|
|
/* Convert a number to a GC'ed string. */ |
|
|
extern JSString * JS_FASTCALL |
|
|
js_NumberToString(JSContext *cx, jsdouble d); |
|
|
|
|
181 |
/* |
/* |
182 |
* Convert int to C string. The buf must be big enough for MIN_INT to fit |
* Create a weakly rooted integer or double jsval as appropriate for the given |
183 |
* including '-' and '\0'. |
* jsdouble. |
184 |
*/ |
*/ |
185 |
char * |
extern JSBool |
186 |
js_IntToCString(jsint i, jsint base, char *buf, size_t bufSize); |
js_NewWeaklyRootedNumber(JSContext *cx, jsdouble d, jsval *vp); |
187 |
|
|
188 |
/* |
/* Convert a number to a GC'ed string. */ |
189 |
* Convert a number to C string. The buf must be at least |
extern JSString * JS_FASTCALL |
190 |
* DTOSTR_STANDARD_BUFFER_SIZE. |
js_NumberToString(JSContext *cx, jsdouble d); |
|
*/ |
|
|
char * |
|
|
js_NumberToCString(JSContext *cx, jsdouble d, jsint base, char *buf, size_t bufSize); |
|
191 |
|
|
192 |
/* |
/* |
193 |
* Convert a value to a number. On exit JSVAL_IS_NULL(*vp) iff there was an |
* Convert a value to a number. On exit JSVAL_IS_NULL(*vp) iff there was an |