Your Search Results


    This article is in need of a technical review.

    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.


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


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

    See also

    Document Tags and Contributors

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