jscript: Implement the String.toLowerCase() method.
Jacek Caban
jacek at codeweavers.com
Sun Nov 23 12:26:48 CST 2008
Hi Andrew,
Andrew Nguyen wrote:
> This is an attempt to implement the String.toLowerCase method. The
> added jscript tests pass on Windows XP.
> ---
> dlls/jscript/string.c | 41 +++++++++++++++++++++++++++++++++++++++--
> dlls/jscript/tests/api.js | 11 +++++++++++
> 2 files changed, 50 insertions(+), 2 deletions(-)
>
>
> + res = heap_alloc((length+1)*sizeof(WCHAR));
> + if (!res)
> + return E_OUTOFMEMORY;
You can avoid this allocation by using SysAllocStringLen.
Jacek
More information about the wine-devel
mailing list