genericservices/httputils/DelimitedParser/TDelimitedPathParser.cpp
changeset 0 e4d67989cc36
equal deleted inserted replaced
-1:000000000000 0:e4d67989cc36
       
     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 <delimitedpath8.h>
       
    17 #include <delimitedpath16.h>
       
    18 
       
    19 //
       
    20 //
       
    21 // Implementation of TDelimitedPathParser8
       
    22 //
       
    23 //
       
    24 /**
       
    25 	Constructor.
       
    26 	
       
    27 	@since			6.0
       
    28  */
       
    29 EXPORT_C TDelimitedPathParser8::TDelimitedPathParser8()
       
    30 : TDelimitedParserBase8()
       
    31 	{
       
    32 	SetDelimiter(TChar('/'));
       
    33 	}
       
    34 	
       
    35 /**
       
    36 	This parses the descriptor into path segments from left to right.
       
    37 	
       
    38 	@since			6.0
       
    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).
       
    43  */
       
    44 EXPORT_C void TDelimitedPathParser8::Parse(const TDesC8& aPath)
       
    45 	{
       
    46 	// Call base class functions
       
    47 	TDelimitedParserBase8::Parse(aPath);
       
    48 	}
       
    49 
       
    50 /**
       
    51 	This parses the descriptor into path segments from right to left.
       
    52 	
       
    53 	@since			6.0
       
    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).
       
    58  */
       
    59 EXPORT_C void TDelimitedPathParser8::ParseReverse(const TDesC8& aPath)
       
    60 	{
       
    61 	// Call base class functions
       
    62 	TDelimitedParserBase8::ParseReverse(aPath);
       
    63 	}
       
    64 
       
    65 //
       
    66 //
       
    67 // Implementation of TDelimitedPathParser16
       
    68 //
       
    69 //
       
    70 
       
    71 /**
       
    72 	Constructor.
       
    73 	
       
    74 	@since			6.0
       
    75 */
       
    76 EXPORT_C TDelimitedPathParser16::TDelimitedPathParser16()
       
    77 : TDelimitedParserBase16()
       
    78 	{
       
    79 	SetDelimiter(TChar('/'));
       
    80 	}
       
    81 
       
    82 /**
       
    83 	This parses the descriptor into path segments from left to right.
       
    84 	
       
    85 	@since			6.0
       
    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).
       
    90 */
       
    91 EXPORT_C void TDelimitedPathParser16::Parse(const TDesC16& aPath)
       
    92 	{
       
    93 	// Call base class functions
       
    94 	TDelimitedParserBase16::Parse(aPath);
       
    95 	}
       
    96 
       
    97 /**
       
    98 	This parses the descriptor into path segments from right to left.
       
    99 	
       
   100 	@since			6.0
       
   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).
       
   105 */
       
   106 EXPORT_C void TDelimitedPathParser16::ParseReverse(const TDesC16& aPath)
       
   107 	{
       
   108 	// Call base class functions
       
   109 	TDelimitedParserBase16::ParseReverse(aPath);
       
   110 	}