mozilla
您的搜索结果

    NPString

    我们的志愿者还没有将这篇文章翻译为 中文 (简体) 。加入我们帮助完成翻译!

    « Gecko Plugin API Reference « Scripting plugins

    Summary

    NPString is a struct that holds a pointer to a sequence of 8-bit units (NPUTF8) making up a UTF-8 string, and the number of 8-bit units in the UTF-8 string.

    Note: Whenever an NPString owns its string data and the data may be released through a call to NPN_ReleaseVariantValue(), the string data must be allocated using NPN_MemAlloc().

    Syntax

    typedef struct _NPString {
        const NPUTF8 *UTF8Characters;
        uint32_t UTF8Length;
    } NPString;
    

    Fields

    The data structure has the following fields:

    UTF8Characters
    An array of the UTF-8 characters comprising the string.
    UTF8Length
    The number of bytes in the UTF-8 string (not the number of characters).

    文档标签和贡献者

    标签: 
    此页面的贡献者有: Sheppy, Eric johansson
    最后编辑者: Eric johansson,