|
kjs/string_object.cpp
(Diff revision 1)
|
JSValue *StringProtoFunc::callAsFunction(ExecState* exec, JSObject* thisObj, const List& args) |
|
|
793 |
uint16_t* dataPtr = reinterpret_cast<uint16_t*>(s.rep()->data()); |
Could you use a const pointer here to make this look less scary?
- Maks
On May 4th, 2012, 5:40 p.m., Bernd Buschinski wrote:
|
Review request for kdelibs.
By Bernd Buschinski.
Updated May 4, 2012, 5:40 p.m.
Description
kjs: Implement standard String.trim, also non-standard trimLeft & trimRight
As trimLeft&trimRight are very similar and easy to implement in trim, and all modern browser support it as well, I also added it.
depends on https://git.reviewboard.kde.org/r/104855/
|
Testing
Diffs
- kjs/string_object.h (e890d52)
- kjs/string_object.cpp (170e2f7)
View Diff
|