Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

JS_GetFlatStringChars

This article needs a technical review. How you can help.

Obsolete since JSAPI 33
This 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.

This article covers features introduced in SpiderMonkey 1.8.5

Get the chars of a flat string. Use JS_FlattenString to flatten the string.

Syntax

const jschar *
JS_GetFlatStringChars(JSFlatString *str);
Name Type Description
str JSFlatString * The flattended string returned by JS_FlattenString.

Description

JSFlatString *fstr = JS_FlattenString(cx, str);
if (!fstr)
  return JS_FALSE;
const jschar *chars = JS_GetFlatStringChars(fstr)
JS_ASSERT(chars);

See also

Document Tags and Contributors

 Contributors to this page: arai, fscholz, kscarfone, ethertank, trevorh, markg
 Last updated by: arai,