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 <delimitedquery8.h>
17 #include <delimitedquery16.h>
21 // Implementation of TDelimitedQueryParser8
29 EXPORT_C TDelimitedQueryParser8::TDelimitedQueryParser8()
30 : TDelimitedParserBase8()
32 SetDelimiter(TChar('&'));
36 This parses the descriptor into query segments from left to right.
39 @param aQuery A descriptor containing the query.
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 TDelimitedQueryParser8::Parse(const TDesC8& aQuery)
46 // Call base class functions
47 TDelimitedParserBase8::Parse(aQuery);
51 This parses the descriptor into query segments from right to left.
54 @param aQuery A descriptor containing the query.
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 TDelimitedQueryParser8::ParseReverse(const TDesC8& aQuery)
61 // Call base class functions
62 TDelimitedParserBase8::ParseReverse(aQuery);
67 // Implementation of TDelimitedQueryParser16
75 EXPORT_C TDelimitedQueryParser16::TDelimitedQueryParser16()
76 : TDelimitedParserBase16()
78 SetDelimiter(TChar('&'));
82 This parses the descriptor into query segments from left to right.
85 @param aQuery A descriptor containing the query.
86 @pre The delimiter must have been set.
87 @post The current segment is the leftmost segment and the direction of
88 parsing is set from left to right (EDelimitedDataFroward).
90 EXPORT_C void TDelimitedQueryParser16::Parse(const TDesC16& aQuery)
92 // Call base class functions
93 TDelimitedParserBase16::Parse(aQuery);
97 This parses the descriptor into query segments from right to left.
100 @param aQuery A descriptor containing the query.
101 @pre The delimiter must have been set.
102 @post The current segment is the leftmost segment and the direction of
103 parsing is set from right to left (EDelimitedDataReverse).
105 EXPORT_C void TDelimitedQueryParser16::ParseReverse(const TDesC16& aQuery)
107 // Call base class functions
108 TDelimitedParserBase16::ParseReverse(aQuery);