-
ddkilzer authored
Reviewed by ggaren. - http://bugzilla.opendarwin.org/show_bug.cgi?id=9234 Implement $&, $' and $` replacement codes in String.prototype.replace Test: fast/js/string-replace-3.html * kjs/string_object.cpp: (substituteBackreferences): Added support for $& (matched substring), $` (everything preceding matched substring), $' (everything following matched substring) and 2-digit back references, and cleaned up a little. LayoutTests: Reviewed by ggaren. - test for http://bugzilla.opendarwin.org/show_bug.cgi?id=9234 Implement $&, $' and $` replacement codes in String.prototype.replace * fast/js/resources/string-replace-3.js: Added. * fast/js/string-replace-3-expected.txt: Added. * fast/js/string-replace-3.html: Added. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14705 268f45cc-cd09-0410-ab3c-d52691b4dbfc
31459a5c