NPN_UTF8FromIdentifier

  • Revision slug: NPN_UTF8FromIdentifier
  • Revision title: NPN_UTF8FromIdentifier
  • Revision id: 166170
  • Created:
  • Creator: Sheppy
  • Is current revision? No
  • Comment scripting template

Revision Content

{{wiki.template('Np-plugin-scripting')}}

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 PN_MemFree().

Revision Source

<p>

{{wiki.template('Np-plugin-scripting')}}
</p>
<h3 name="Summary">Summary</h3>
<p>Returns the UTF-8 string corresponding to the given string identifier.
</p>
<h3 name="Syntax">Syntax</h3>
<pre>#include &lt;npruntime.h&gt;
 
NPUTF8 *NPN_UTF8FromIdentifier(NPIdentifier identifier);
</pre>
<h3 name="Parameters">Parameters</h3>
<p>The function has the following parameter:
</p>
<dl><dt><tt>identifier</tt>
</dt><dd>The string identifier whose corresponding string should be returned.
</dd></dl>
<h3 name="Returns">Returns</h3>
<p>A UTF-8 string as a sequence of <code><a href="en/NPUTF8">NPUTF8</a></code> bytes, or NULL if the specified <tt>identifier</tt> isn't a string identifier.
</p>
<h3 name="Description">Description</h3>
<p>Once the caller is done with the returned string, the caller is responsible for deallocating the memory used by the string by calling <code><a href="en/NPN_MemFree">PN_MemFree()</a></code>.
</p>
Revert to this revision