×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Regular Contributor
    Join Date
    Oct 2008
    Posts
    91

    problem in parsing text

    Hello All,
    I am using the TDelimitedParserBase16 class to parse text.
    The text includes multiple segments separated by a Delimiter. I want to keep parsing the text as long as there are no more segments left. I tried to use the Eos() method in a while loop, but its not working. Although there is more text the Eos() method is not returning a true value.
    Can anyone please suggest me what can be done?

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,696

    Re: problem in parsing text

    Quote Originally Posted by ash_leo View Post
    Although there is more text the Eos() method is not returning a true value.
    That is normal. Eos=End of string, so it has to return EFalse as long as there is more text...
    Otherwise note that GetNext (and Peek, Inc, Dec) also tells you if you have reached the end of the string.

  3. #3
    Regular Contributor
    Join Date
    Oct 2008
    Posts
    91

    Re: problem in parsing text

    Hello,
    I tried using GetNext(). It gives me the next segment every time.
    now I want to parse the new segment each time I get it.
    But if I modify the text to be parsed to the new Segment and then try to parse the original text again it gets parsed right from the beginning.
    How to eliminate this problem? That is once I get the segment, I want to remove it from the original text before parsing the original text again.
    Please suggest some solution.

  4. #4
    Regular Contributor
    Join Date
    Oct 2008
    Posts
    91

    Re: problem in parsing text

    Hello I tried using the Remainder() method. Its working.

Similar Threads

  1. Text sending problem 6310i
    By wlillie in forum General Development Questions
    Replies: 1
    Last Post: 2006-10-19, 13:24
  2. N90 Video editing - problem add Text to video
    By thongtom in forum General Development Questions
    Replies: 0
    Last Post: 2005-10-27, 09:47
  3. Series 80 Chinese text displaying problem
    By arongpan in forum Symbian User Interface
    Replies: 0
    Last Post: 2005-10-21, 05:00
  4. Read Chinese Text file and Display Chinese on Canvas Problem?
    By goeast in forum Mobile Java General
    Replies: 4
    Last Post: 2002-09-18, 03:28
  5. Problem about Reading Chinese Text file?
    By goeast in forum Mobile Java General
    Replies: 0
    Last Post: 2002-09-18, 03:25

Posting Permissions

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