nsIPrefLocalizedString 编辑

modules/libpref/public/nsIPrefLocalizedString.idlScriptable This interface is simply a wrapper interface for nsISupportsString so the preferences service can have a unique identifier to distinguish between requests for normal wide strings nsISupportsString) and 'localized' wide strings, which get their default values from properites files. Inherits from: nsISupports Last changed in Gecko 1.8 (Firefox 1.5 / Thunderbird 1.5 / SeaMonkey 1.0)

Method overview

void setDataWithLength(in unsigned long length, [size_is(length)] in wstring data);
wstring toString();

Attributes

AttributeTypeDescription
datawstringProvides access to string data stored in this property.

Methods

setDataWithLength()

Used to set the contents of this object.

void setDataWithLength(
  in unsigned long length,
  [size_is(length)] in wstring data
);
Parameters
length
The length of the string. This value should not include space for the null terminator, nor should it account for the size of a character. It should only be the number of characters for which there is space in the string.
data
The string data to be stored.

toString()

Used to retrieve the contents of this object into a wide string.

Note: This makes a copy of the string argument passed in.
wstring toString();
Parameters

None.

Return value

Returns wstring - The string containing the data stored within this object.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据

词条统计

浏览:81 次

字数:3161

最后编辑:8 年前

编辑次数:0 次

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文