NPN UTF8FromIdentifier
From MDC
« Gecko Plugin API Reference « Scripting plugins
Contents |
[edit] Summary
Returns the UTF-8 string corresponding to the given string identifier.
[edit] Syntax
#include <npruntime.h> NPUTF8 *NPN_UTF8FromIdentifier(NPIdentifier identifier);
[edit] Parameters
The function has the following parameter:
- identifier
- The string identifier whose corresponding string should be returned.
[edit] Returns
A UTF-8 string as a sequence of NPUTF8 bytes, or NULL if the specified identifier isn't a string identifier.
[edit] 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().