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 TDelimitedQueryParser8 sl@0: // sl@0: // sl@0: /** sl@0: Constructor. sl@0: sl@0: @since 6.0 sl@0: */ sl@0: EXPORT_C TDelimitedQueryParser8::TDelimitedQueryParser8() sl@0: : TDelimitedParserBase8() sl@0: { sl@0: SetDelimiter(TChar('&')); sl@0: } sl@0: sl@0: /** sl@0: This parses the descriptor into query segments from left to right. sl@0: sl@0: @since 6.0 sl@0: @param aQuery A descriptor containing the query. 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 TDelimitedQueryParser8::Parse(const TDesC8& aQuery) sl@0: { sl@0: // Call base class functions sl@0: TDelimitedParserBase8::Parse(aQuery); sl@0: } sl@0: sl@0: /** sl@0: This parses the descriptor into query segments from right to left. sl@0: sl@0: @since 6.0 sl@0: @param aQuery A descriptor containing the query. 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 TDelimitedQueryParser8::ParseReverse(const TDesC8& aQuery) sl@0: { sl@0: // Call base class functions sl@0: TDelimitedParserBase8::ParseReverse(aQuery); sl@0: } sl@0: sl@0: // sl@0: // sl@0: // Implementation of TDelimitedQueryParser16 sl@0: // sl@0: // sl@0: /** sl@0: Constructor. sl@0: sl@0: @since 6.0 sl@0: */ sl@0: EXPORT_C TDelimitedQueryParser16::TDelimitedQueryParser16() sl@0: : TDelimitedParserBase16() sl@0: { sl@0: SetDelimiter(TChar('&')); sl@0: } sl@0: sl@0: /** sl@0: This parses the descriptor into query segments from left to right. sl@0: sl@0: @since 6.0 sl@0: @param aQuery A descriptor containing the query. 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 TDelimitedQueryParser16::Parse(const TDesC16& aQuery) sl@0: { sl@0: // Call base class functions sl@0: TDelimitedParserBase16::Parse(aQuery); sl@0: } sl@0: sl@0: /** sl@0: This parses the descriptor into query segments from right to left. sl@0: sl@0: @since 6.0 sl@0: @param aQuery A descriptor containing the query. 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 TDelimitedQueryParser16::ParseReverse(const TDesC16& aQuery) sl@0: { sl@0: // Call base class functions sl@0: TDelimitedParserBase16::ParseReverse(aQuery); sl@0: } sl@0: