hi..
_LIT(text,"hello how are you <start>Dog<end>");
TBuf<256> str;
str.Copy(text);
My questions are:
1.find string between <start> and <end> //Dog
2.replace string between <start> and <end> by Cat
how to do this?
please help me
hi..
_LIT(text,"hello how are you <start>Dog<end>");
TBuf<256> str;
str.Copy(text);
My questions are:
1.find string between <start> and <end> //Dog
2.replace string between <start> and <end> by Cat
how to do this?
please help me
If the length of the new string is the same as of the one to be replaced TDes::Find plus TDes::Replace will do the job. Else, use TDes::Find with a mix of TDes::Left, TDes::Right and TDes::Append to get your problem fixed. Or even TDes::Format.
-- Lucian