You are currently viewing a snapshot of www.mozilla.org taken on April 21, 2008. Most of this content is highly out of date (some pages haven't been updated since the project began in 1998) and exists for historical purposes only. If there are any pages on this archive site that you think should be added back to www.mozilla.org, please file a bug.
nsIPrefLocalizedString
The
nsIPrefLocalizedString
interface is simply a wrapper interface fornsISupportsWString
so the preferences service can have a unique identifier to distinguish between requests for normal wide strings (nsISupportsWString
) and "localized" wide strings, which get their default values from properites files. This interface is scriptable.See also:
nsIPrefBranch
, nsISupportsWString.
Retrieves the contents of this object into a wide string.
Syntax:
wstring nsIPrefLocalizedString::toString()
Parameters:
Returns:
Sets the contents (a string) of the object.
Syntax:
void nsIPrefLocalizedString::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 thenull
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.
Note: This makes a copy of the string argument passed in.
nsresult:
Written by:Ellen Evans | Comments, questions, complaints?
Bug 143387 |