Search completed in 1.26 seconds.
6 results for "js_getstringcharsz":
JS_GetStringChars
Mozilla › Projects › SpiderMonkey › JSAPI reference › JS GetStringChars
Obsolete since JSAPI 33This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it. Retrieve a pointer to the 16-bit values that make up a given string. Syntax jschar * JS_GetStringChars(JSString *str); // Obsolete since JSAPI 1.8.5 const jschar * JS_GetStringCharsZ(JSContext *cx, JSString *str); // Added in SpiderMonkey 1.8.2, Obsolete since JSAPI 33 Name Type Description cx JSContext * (in JS_GetStringCharsZ only) A context. str JSString * The string to obtain characters from. Description JS_GetStringChars Obsolete since JavaScript 1.8.5 returns a pointer to the first element of an array of jschars. Warnings: The array is not necessarily null...
...fy the array. If it does, the behavior is undefined. The content of a JS string is not guaranteed to be valid UTF-16. It may contain surrogate code units that aren't properly paired. It may also contain zeroes. ...
...in zeroes. The array returned by this function remains valid as long as str is valid. ...
SpiderMonkey 1.8.5
Mozilla › Projects › SpiderMonkey › Releases › 1.8.5
ngChars JS_GetGCParameter JS_GetGCParameterForThread JS_GetGlobalForScopeChain JS_GetInternedStringChars JS_GetInternedStringCharsAndLength JS_GetOwnPropertyDescriptor JS_GetPropertyAttrsGetterAndSetterById JS_GetPropertyById JS_GetPropertyByIdDefault JS_GetPropertyDefault JS_GetPropertyDescriptorById JS_GetRuntimeSecurityCallbacks JS_GetSecurityCallbacks JS_GetStringCharsAndLength JS_GetStringCharsZ JS_GetStringCharsZAndLength JS_GetStringEncodingLength JS_HasPropertyById JS_InitCTypesClass JS_InternJSString JS_IsConstructing_PossiblyWithGivenThisObject JS_IsExtensible JS_IsInRequest JS_LeaveCrossCompartmentCall JS_LookupPropertyById JS_LookupPropertyWithFlagsById JS_New JS_NewCompartmentAndGlobalObject JS_NewDateObject JS_NewDateObjectMsec JS_NewFunctionById body New C++ h...
...with the native's context pointer, to figure out how the function was called. Strings JS_CompareStrings received a new function signature with bug 609440, allowing us to correctly propagate exceptions when the underlying functions to retrieve the characters in the string failed. Additionally, JS_NewString, JS_GetStringBytes, and JS_GetStringChars were removed, replaced by fallible interfaces like JS_GetStringCharsZAndLength and JS_EncodeStringToBuffer (not an exhaustive list). Numbers SpiderMonkey 1.8.5 now stores integers up to 32-bits in the jsval. This means that the INT_FITS_IN_JSVAL macro is always returns true (be careful to only use this macro with jsints, not 64-bit integers). The jsval now also stores jsdoubles directly, rather than storing them on the heap. The JSVAL_TO_DOUBLE and DOUBLE_TO_JSVAL...
SpiderMonkey 1.8.7
Mozilla › Projects › SpiderMonkey › Releases › 1.8.7
ngChars JS_GetGCParameter JS_GetGCParameterForThread JS_GetGlobalForScopeChain JS_GetInternedStringChars JS_GetInternedStringCharsAndLength JS_GetOwnPropertyDescriptor JS_GetPropertyAttrsGetterAndSetterById JS_GetPropertyById JS_GetPropertyByIdDefault JS_GetPropertyDefault JS_GetPropertyDescriptorById JS_GetRuntimeSecurityCallbacks JS_GetSecurityCallbacks JS_GetStringCharsAndLength JS_GetStringCharsZ JS_GetStringCharsZAndLength JS_GetStringEncodingLength JS_HasPropertyById JS_InitCTypesClass JS_InternJSString JS_IsConstructing_PossiblyWithGivenThisObject JS_IsExtensible JS_IsInRequest JS_LeaveCrossCompartmentCall JS_LookupPropertyById JS_LookupPropertyWithFlagsById JS_New JS_NewCompartmentAndGlobalObject JS_NewDateObject JS_NewDateObjectMsec JS_NewFunctionById body New C++ h...
...with the native's context pointer, to figure out how the function was called. Strings JS_CompareStrings received a new function signature with bug 609440, allowing us to correctly propagate exceptions when the underlying functions to retrieve the characters in the string failed. Additionally, JS_NewString, JS_GetStringBytes, and JS_GetStringChars were removed, replaced by fallible interfaces like JS_GetStringCharsZAndLength and JS_EncodeStringToBuffer (not an exhaustive list). Numbers SpiderMonkey 1.8.5 now stores integers up to 32-bits in the jsval. This means that the INT_FITS_IN_JSVAL macro is always returns true (be careful to only use this macro with jsints, not 64-bit integers). The jsval now also stores jsdoubles directly, rather than storing them on the heap. The JSVAL_TO_DOUBLE and DOUBLE_TO_JSVA...
JS_MakeStringImmutable
Mozilla › Projects › SpiderMonkey › JSAPI reference › JS MakeStringImmutable
call JS_MakeStringImmutable before sharing a JSString among threads by storing it in a C/C++ variable, field, or array element that another thread can read. (When an application shares a string by storing it in a JavaScript object that another thread can read, the JavaScript engine automatically makes the string thread-safe.) After a successful call to JS_MakeStringImmutable, subsequent calls to JS_GetStringCharsZ on the same string are guaranteed to succeed, and subsequent calls to JS_GetStringChars on the same string are guaranteed to return a null-terminated string. See Also bug 1115986 ...
JSAPI reference
Mozilla › Projects › SpiderMonkey › JSAPI reference
Flat Added in SpiderMonkey 38 JS_ASSERT_STRING_IS_FLAT Added in SpiderMonkey 1.8.5 JS_FlattenString Added in SpiderMonkey 1.8.5 typedef jschar Obsolete since JSAPI 35 JS_NewString Obsolete since JSAPI 1.8.5 JS_NewGrowableString Obsolete since JSAPI 27 JS_GetStringBytes Obsolete since JSAPI 1.8.5 JS_GetStringBytesZ Obsolete since JSAPI 1.8.5 JS_GetStringChars Obsolete since JSAPI 1.8.5 JS_GetStringCharsZ Obsolete since JSAPI 33 JS_GetStringCharsAndLength Added in JSAPI 1.8.5 Obsolete since JSAPI 33 JS_GetStringCharsZ Added in SpiderMonkey 1.8.5 Obsolete since JSAPI 33 JS_GetStringCharsZAndLength Added in SpiderMonkey 1.8.5 Obsolete since JSAPI 33 JS_GetFlatStringChars Obsolete since JSAPI 33 JS_MakeStringImmutable Obsolete since JavaScript 1.8.5 JS_EncodeCharacters Obsolete since JSAPI 19 ...
SpiderMonkey 38
Mozilla › Projects › SpiderMonkey › Releases › 38
nt32 (bug 1112774) JS_DoubleToUint32 (bug 1112774) JS_EnumerateStub (bug 1103152) JS_EvaluateScript (bug 1100579) JS_EvaluateUCScript (bug 1100579) JS_ExecuteScriptVersion (bug 1095660) JS_GetFlatStringChars (bug 1037869) JS_GetFunctionCallback (bug 1103269) JS_GetInternedStringChars (bug 1037869) JS_GetInternedStringCharsAndLength (bug 1037869) JS_GetStringCharsAndLength (bug 1037869) JS_GetStringCharsZ (bug 1037869) JS_GetStringCharsZAndLength (bug 1037869) JS_GetTypeName (bug 1037718) JS_IsAboutToBeFinalized (bug 650161) JS_LookupElement (bug 1094176) JS_LookupProperty (bug 1094176) JS_LookupPropertyById (bug 1094176) JS_LookupUCProperty (bug 1094176) JS_NewPropertyIterator (bug 1081660) JS_NextProperty (bug 1081660) JS_ResolveStub (bug 1103152) JS_SetFinalizeCallback (bug 996785) ...