|
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". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 #include <delimitedquery8.h> |
|
17 #include <delimitedquery16.h> |
|
18 |
|
19 // |
|
20 // |
|
21 // Implementation of TDelimitedQueryParser8 |
|
22 // |
|
23 // |
|
24 /** |
|
25 Constructor. |
|
26 |
|
27 @since 6.0 |
|
28 */ |
|
29 EXPORT_C TDelimitedQueryParser8::TDelimitedQueryParser8() |
|
30 : TDelimitedParserBase8() |
|
31 { |
|
32 SetDelimiter(TChar('&')); |
|
33 } |
|
34 |
|
35 /** |
|
36 This parses the descriptor into query segments from left to right. |
|
37 |
|
38 @since 6.0 |
|
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). |
|
43 */ |
|
44 EXPORT_C void TDelimitedQueryParser8::Parse(const TDesC8& aQuery) |
|
45 { |
|
46 // Call base class functions |
|
47 TDelimitedParserBase8::Parse(aQuery); |
|
48 } |
|
49 |
|
50 /** |
|
51 This parses the descriptor into query segments from right to left. |
|
52 |
|
53 @since 6.0 |
|
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). |
|
58 */ |
|
59 EXPORT_C void TDelimitedQueryParser8::ParseReverse(const TDesC8& aQuery) |
|
60 { |
|
61 // Call base class functions |
|
62 TDelimitedParserBase8::ParseReverse(aQuery); |
|
63 } |
|
64 |
|
65 // |
|
66 // |
|
67 // Implementation of TDelimitedQueryParser16 |
|
68 // |
|
69 // |
|
70 /** |
|
71 Constructor. |
|
72 |
|
73 @since 6.0 |
|
74 */ |
|
75 EXPORT_C TDelimitedQueryParser16::TDelimitedQueryParser16() |
|
76 : TDelimitedParserBase16() |
|
77 { |
|
78 SetDelimiter(TChar('&')); |
|
79 } |
|
80 |
|
81 /** |
|
82 This parses the descriptor into query segments from left to right. |
|
83 |
|
84 @since 6.0 |
|
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). |
|
89 */ |
|
90 EXPORT_C void TDelimitedQueryParser16::Parse(const TDesC16& aQuery) |
|
91 { |
|
92 // Call base class functions |
|
93 TDelimitedParserBase16::Parse(aQuery); |
|
94 } |
|
95 |
|
96 /** |
|
97 This parses the descriptor into query segments from right to left. |
|
98 |
|
99 @since 6.0 |
|
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). |
|
104 */ |
|
105 EXPORT_C void TDelimitedQueryParser16::ParseReverse(const TDesC16& aQuery) |
|
106 { |
|
107 // Call base class functions |
|
108 TDelimitedParserBase16::ParseReverse(aQuery); |
|
109 } |
|
110 |