diff options
author | Ibrahn Sahir <ibrahn.sahir@gmail.com> | 2019-01-07 17:02:55 +0000 |
---|---|---|
committer | Ibrahn Sahir <ibrahn.sahir@gmail.com> | 2019-01-07 17:34:44 +0000 |
commit | cbb396c0064d77ec50a524241d22746c8b69bbdb (patch) | |
tree | e232fceee2453a3cd85ea20c44abc877b0f49b23 /servers/visual | |
parent | bcecf5626768c8399e9293fe12a25511eeb6c52d (diff) |
Repair String lstrip and rstrip.
Background: lstrip and rstrip were broken by changes to String in:
0e29f7974b59e4440cf02e1388fb9d8ab2b5c5fd
which removed it's access to Vector::find(CharType).
Moved Vector's find up into CowData so it can be shared by Vector and String.
Added String::find_char using CowData::find.
Implemented rstrip and lstrip using find_char.
Added a few tests for String rstrip and lstrip.
Diffstat (limited to 'servers/visual')
0 files changed, 0 insertions, 0 deletions