You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This avoids the null termination requirement of both String::substring and String::lastIndexOf by using APIs that don't require it. So we can stop writing to the buffer inside of const functions.
I also changed wbuffer to make it non const.
char *wbuffer() { returnconst_cast<char *>(buffer()); } // Writable version of buffer
268
268
269
269
// concatenation is done via non-member functions
270
270
// make sure we still have access to internal methods, since we optimize based on capacity of both sides and want to manipulate internal buffers directly
0 commit comments