< Previous by Date Date Index Next by Date >
< Previous in Thread Thread Index  

Re: [reSIProcate-users] Data::replace bug or wrong usage ?


The results are correct - you need to look at the size field too. If you output 
the strings to the console (operator<< or .c_str()) it will add the terminating 
null in the correct spot.

Scott

Sent from my iPhone

> On May 11, 2016, at 8:13 AM, Karlsson <boost.regex@xxxxxxxxx> wrote:
> 
> I don't know this is a bug or wrong usage.
> I just want to delete some word from a string use the replace function of 
> resip:Data,
> but the resip::Data gives me wrong result.
> 
> Please see attached the screenshot, for the testString1 and testSting2, I 
> want to strip the first "88", 
> for testString3, i want to strip the first "abc" and want to strip the "12" 
> of testString4.
> 
> Best regards,
> <data_replace.png>
> _______________________________________________
> resiprocate-users mailing list
> resiprocate-users@xxxxxxxxxxxxxxx
> List Archive: http://list.resiprocate.org/archive/resiprocate-users/