diff options
author | Emanuel Sprung <emanuel.sprung@gmail.com> | 2020-04-01 21:27:39 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-04-01 21:47:23 +0200 |
commit | 2577712a1c680f0dae93b9de6e81a7999c608469 (patch) | |
tree | 7373b69e72bbeae849107c800c9fda64dd2f2074 /Libraries/LibJS/Runtime/GlobalObject.cpp | |
parent | 9d5d0261e105ef4ba2c0302ca87c803a95eeb79b (diff) | |
download | serenity-2577712a1c680f0dae93b9de6e81a7999c608469.zip |
AK: Add String::replace() functionality
This adds a replace functionality that replaces a string that contains
occurences of a "needle" by a "replacement" value. With "all_occurences"
enabled, all occurences are being replaced, otherwise only the first
occurence is being replaced.
Diffstat (limited to 'Libraries/LibJS/Runtime/GlobalObject.cpp')
0 files changed, 0 insertions, 0 deletions