NSmlDmURI Class Reference

class NSmlDmURI

NSmlDmURI contains just static methods for parsing URIs

Since
Public Member Functions
IMPORT_C TPtrC8 LastURISeg (const TDesC8 &)
IMPORT_C TInt NumOfURISegs (const TDesC8 &)
IMPORT_C TPtrC8 ParentURI (const TDesC8 &)
IMPORT_C TPtrC8 RemoveDotSlash (const TDesC8 &)
IMPORT_C TPtrC8 RemoveLastSeg (const TDesC8 &)
IMPORT_C TPtrC8 RemoveProp (const TDesC8 &)
IMPORT_C TPtrC8 URISeg (const TDesC8 &, TInt )

Member Functions Documentation

LastURISeg(const TDesC8 &)

IMPORT_C TPtrC8 LastURISeg ( const TDesC8 & aURI ) [static]

Return the last URI segment of given URI

Parameters

const TDesC8 & aURI Uri

NumOfURISegs(const TDesC8 &)

IMPORT_C TInt NumOfURISegs ( const TDesC8 & aURI ) [static]

Return the number of URI segments of given URI

Parameters

const TDesC8 & aURI Uri

ParentURI(const TDesC8 &)

IMPORT_C TPtrC8 ParentURI ( const TDesC8 & aURI ) [static]

Return the parent URI of given URI

Parameters

const TDesC8 & aURI Uri

RemoveDotSlash(const TDesC8 &)

IMPORT_C TPtrC8 RemoveDotSlash ( const TDesC8 & aURI ) [static]

Return the URI without ./ at the beginning, if those exist

Parameters

const TDesC8 & aURI Uri

RemoveLastSeg(const TDesC8 &)

IMPORT_C TPtrC8 RemoveLastSeg ( const TDesC8 & aURI ) [static]

Return the URI without last segment

Parameters

const TDesC8 & aURI Uri

RemoveProp(const TDesC8 &)

IMPORT_C TPtrC8 RemoveProp ( const TDesC8 & aURI ) [static]

Return the URI without property info at the end (?prop=...)

Parameters

const TDesC8 & aURI Uri

URISeg(const TDesC8 &, TInt)

IMPORT_C TPtrC8 URISeg ( const TDesC8 & aURI,
TInt aLocation
) [static]

Return the aLocationth URI segment.

Parameters

const TDesC8 & aURI Uri
TInt aLocation The wanted segment number