Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



How to parse delimited data

The data in a URI that is delimited into segments can be parsed. TDelimitedXxxxParser8 classes provide the functionality to parse delimited data, extract the current segment and parse the string for the next segment.

Parse the data into segments before calling any of the following functions.

To use the above functions, you need to use the class derived from TDelimitedParserBase8.

The following three classes are used to parse the respective URI components:

  1. TDelimitedPathParser8 for parsing path into directories seperated by '/'.

    For example:

    /doc_source/guide/N10047/index.html

  2. TDelimitedPathSegmentParser8 for parsing parameters that are separated by ';'

    For example:

    postd=pp22;[email protected];user=phone

  3. TDelimitedQueryParser8 for parsing the query string (after a '?') into name/value pairs that is separated by '&'.

    For example:

    sortcol=4&table=1&up=0&view=details

    The table shows the delimiter to be used to seperate each of the URI components.

URI Component Delimiter

Path

/

Path segment

;

Query

&


See also

InetProtUtils Overview