First public contribution.
1 // Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
16 #include <delimitedpath8.h>
17 #include <delimitedpath16.h>
21 // Implementation of TDelimitedPathParser8
29 EXPORT_C TDelimitedPathParser8::TDelimitedPathParser8()
30 : TDelimitedParserBase8()
32 SetDelimiter(TChar('/'));
36 This parses the descriptor into path segments from left to right.
39 @param aPath A descriptor containing the path.
40 @pre The delimiter must have been set.
41 @post The current segment is the leftmost segment and the direction of
42 parsing is set from left to right (EDelimitedDataForward).
44 EXPORT_C void TDelimitedPathParser8::Parse(const TDesC8& aPath)
46 // Call base class functions
47 TDelimitedParserBase8::Parse(aPath);
51 This parses the descriptor into path segments from right to left.
54 @param aPath A descriptor containing the path.
55 @pre The delimiter must have been set.
56 @post The current segment is the leftmost segment and the direction of
57 parsing is set from right to left (EDelimitedDataReverse).
59 EXPORT_C void TDelimitedPathParser8::ParseReverse(const TDesC8& aPath)
61 // Call base class functions
62 TDelimitedParserBase8::ParseReverse(aPath);
67 // Implementation of TDelimitedPathParser16
76 EXPORT_C TDelimitedPathParser16::TDelimitedPathParser16()
77 : TDelimitedParserBase16()
79 SetDelimiter(TChar('/'));
83 This parses the descriptor into path segments from left to right.
86 @param aPath A descriptor containing the path.
87 @pre The delimiter must have been set.
88 @post The current segment is the leftmost segment and the direction of
89 parsing is set from left to right (EDelimitedDataFroward).
91 EXPORT_C void TDelimitedPathParser16::Parse(const TDesC16& aPath)
93 // Call base class functions
94 TDelimitedParserBase16::Parse(aPath);
98 This parses the descriptor into path segments from right to left.
101 @param aPath A descriptor containing the path.
102 @pre The delimiter must have been set.
103 @post The current segment is the leftmost segment and the direction of
104 parsing is set from right to left (EDelimitedDataReverse).
106 EXPORT_C void TDelimitedPathParser16::ParseReverse(const TDesC16& aPath)
108 // Call base class functions
109 TDelimitedParserBase16::ParseReverse(aPath);