Re: jscript: Implement the String.toLowerCase() method.
23 Nov
2008
23 Nov
'08
12:26 p.m.
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
6234
Age (days ago)
6234
Last active (days ago)
0 comments
1 participants
participants (1)
-
Jacek Caban