
nsIPrefLocalizedString
The
nsIPrefLocalizedStringinterface is simply a wrapper interface fornsISupportsWStringso 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 thenullterminator, 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 |