Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Feb 2009

    find and replace string


    _LIT(text,"hello how are you <start>Dog<end>");

    TBuf<256> str;


    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

  2. #2
    Nokia Developer Moderator
    Join Date
    Sep 2004
    Tampere, Finland

    Re: find and replace string

    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

    If you are not yet a DVLUP member it is time to correct that mistake :) Click here to join: http://www.dvlup.com/lucian/Invite

Similar Threads

  1. Replace character in descriptor
    By assayag in forum Symbian
    Replies: 4
    Last Post: 2009-06-05, 06:14
  2. can't find the file HelloWorldBasic.exe in \S60\devices\S60_3rd_FP2_SDK_v1.1\epoc32\r
    By changshiop in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 8
    Last Post: 2009-05-03, 01:56
  3. Find and replace in descriptor.
    By giedi1 in forum Symbian
    Replies: 2
    Last Post: 2009-02-20, 09:50
  4. Replace the Previous Version in Nokia 6275
    By sasikumar31 in forum Mobile Java General
    Replies: 4
    Last Post: 2008-10-16, 13:59
  5. where can I find the latest version of mms lib
    By deerball in forum General Messaging
    Replies: 2
    Last Post: 2007-02-14, 12:37

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts