sl@0: // Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // sl@0: sl@0: #include sl@0: #include sl@0: sl@0: // sl@0: // sl@0: // Implementation of TDelimitedPathSegmentParser8 sl@0: // sl@0: // sl@0: sl@0: /** sl@0: Constructor. sl@0: sl@0: @since 6.0 sl@0: */ sl@0: EXPORT_C TDelimitedPathSegmentParser8::TDelimitedPathSegmentParser8() sl@0: : TDelimitedParserBase8() sl@0: { sl@0: SetDelimiter(TChar(';')); sl@0: } sl@0: sl@0: /** sl@0: This parses the descriptor into path segment parameters from left to right. sl@0: sl@0: @since 6.0 sl@0: @param aPathSegment A descriptor containing the path segment. sl@0: @pre The delimiter must have been set. sl@0: @post The current segment is the leftmost segment and the direction of sl@0: parsing is set from left to right (EDelimitedDataForward). sl@0: */ sl@0: EXPORT_C void TDelimitedPathSegmentParser8::Parse(const TDesC8& aPathSegment) sl@0: { sl@0: // Call base class functions sl@0: TDelimitedParserBase8::Parse(aPathSegment); sl@0: } sl@0: sl@0: /** sl@0: This parses the descriptor into path segment parameters from right to left. sl@0: sl@0: @since 6.0 sl@0: @param aPathSegment A descriptor containing the path segment. sl@0: @pre The delimiter must have been set. sl@0: @post The current segment is the leftmost segment and the direction of sl@0: parsing is set from right to left (EDelimitedDataReverse). sl@0: */ sl@0: EXPORT_C void TDelimitedPathSegmentParser8::ParseReverse(const TDesC8& aPathSegment) sl@0: { sl@0: // Call base class functions sl@0: TDelimitedParserBase8::ParseReverse(aPathSegment); sl@0: } sl@0: sl@0: // sl@0: // sl@0: // Implementation of TDelimitedPathSegmentParser16 sl@0: // sl@0: // sl@0: /** sl@0: Constructor. sl@0: sl@0: @since 6.0 sl@0: */ sl@0: EXPORT_C TDelimitedPathSegmentParser16::TDelimitedPathSegmentParser16() sl@0: : TDelimitedParserBase16() sl@0: { sl@0: SetDelimiter(TChar(';')); sl@0: } sl@0: sl@0: /** sl@0: This parses the descriptor into path segment segments from left to right. sl@0: sl@0: @since 6.0 sl@0: @param aPathSegment A descriptor containing the path segment. sl@0: @pre The delimiter must have been set. sl@0: @post The current segment is the leftmost segment and the direction of sl@0: parsing is set from left to right (EDelimitedDataFroward). sl@0: */ sl@0: EXPORT_C void TDelimitedPathSegmentParser16::Parse(const TDesC16& aPathSegment) sl@0: { sl@0: // Call base class functions sl@0: TDelimitedParserBase16::Parse(aPathSegment); sl@0: } sl@0: sl@0: /** sl@0: This parses the descriptor into path segment segments from right to left. sl@0: sl@0: @since 6.0 sl@0: @param aPathSegment A descriptor containing the path segment. sl@0: @pre The delimiter must have been set. sl@0: @post The current segment is the leftmost segment and the direction of sl@0: parsing is set from right to left (EDelimitedDataReverse). sl@0: */ sl@0: EXPORT_C void TDelimitedPathSegmentParser16::ParseReverse(const TDesC16& aPathSegment) sl@0: { sl@0: // Call base class functions sl@0: TDelimitedParserBase16::ParseReverse(aPathSegment); sl@0: } sl@0: