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.

NPN_UTF8FromIdentifier

« Gecko Plugin API Reference « Scripting plugins

Summary

Returns the UTF-8 string corresponding to the given string identifier.

Syntax

#include <npruntime.h>
 
NPUTF8 *NPN_UTF8FromIdentifier(NPIdentifier identifier);

Parameters

The function has the following parameter:

<tt>identifier</tt>
The string identifier whose corresponding string should be returned.

Returns

A UTF-8 string as a sequence of NPUTF8 bytes, or NULL if the specified <tt>identifier</tt> isn't a string identifier.

Description

Once the caller is done with the returned string, the caller is responsible for deallocating the memory used by the string by calling NPN_MemFree().

Document Tags and Contributors

Tags: 
 Contributors to this page: teoli, Ben Karel, Sheppy
 Last updated by: Ben Karel,