Add trim, trimLeft and trimRight methods to String
authorchristian.plesner.hansen@gmail.com <christian.plesner.hansen@gmail.com@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 13 Oct 2009 08:13:45 +0000 (08:13 +0000)
committerchristian.plesner.hansen@gmail.com <christian.plesner.hansen@gmail.com@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 13 Oct 2009 08:13:45 +0000 (08:13 +0000)
commitf1354a299eb4423cfebd4d8f72a487b1f31658bd
tree42f3d1d87f335d2bd88e7e72588bb9cb9bca8563
parenta563800b4c0afe265a992498884e7c963ddc1a95
Add trim, trimLeft and trimRight methods to String
Based on a recent patch for Webkit.
trim is defined in ES 5 section 15.5.4.20.

Author: Jan de Mooij <jandemooij@gmail.com>

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@3052 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/runtime.cc
src/runtime.h
src/string.js
test/mjsunit/third_party/string-trim.js [new file with mode: 0644]