svgtopt/SVG/SVGImpl/inc/SVGStringTokenizer.h
changeset 0 d46562c3d99d
equal deleted inserted replaced
-1:000000000000 0:d46562c3d99d
       
     1 /*
       
     2 * Copyright (c) 2003 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  SVG Implementation header file
       
    15  *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef __TSTRINGTOKENIZER_H__
       
    20 #define __TSTRINGTOKENIZER_H__
       
    21 
       
    22 #include <e32std.h>
       
    23 
       
    24 
       
    25 /**
       
    26  * Class description goes here.
       
    27  *
       
    28  *  @lib SVGEngine.lib
       
    29  *  @since 1.0
       
    30  */
       
    31 class TStringTokenizer
       
    32     {
       
    33     public:
       
    34 
       
    35         /**
       
    36          * Need method description
       
    37          *
       
    38          * @since 1.0
       
    39          * @param 
       
    40          * @return
       
    41          */
       
    42                 TStringTokenizer( const TDesC& aSrc, const TDesC& aDelim );
       
    43 
       
    44 
       
    45         /**
       
    46          * Need method description
       
    47          *
       
    48          * @since 1.0
       
    49          * @param 
       
    50          * @return
       
    51          */
       
    52         TPtrC   NextToken();
       
    53 
       
    54         /**
       
    55          * Need method description
       
    56          *
       
    57          * @since 1.0
       
    58          * @param 
       
    59          * @return
       
    60          */
       
    61         TPtrC   NextToken( const TDesC& aDelim );
       
    62 
       
    63         /**
       
    64          * Need method description
       
    65          *
       
    66          * @since 1.0
       
    67          * @param 
       
    68          * @return
       
    69          */
       
    70         TBool   HasMoreTokens();
       
    71 
       
    72     private:
       
    73         TLex    iSrc;
       
    74         TPtrC   iDelim;
       
    75 
       
    76     private:
       
    77 
       
    78         /**
       
    79          * Need method description
       
    80          *
       
    81          * @since 1.0
       
    82          * @param 
       
    83          * @return
       
    84          */
       
    85         TBool   isDeliminator( TChar aChar, const TDesC& aDelim );
       
    86 
       
    87         /**
       
    88          * Need method description
       
    89          *
       
    90          * @since 1.0
       
    91          * @param 
       
    92          * @return
       
    93          */
       
    94         void    SkipDeliminator( const TDesC& aDelim );
       
    95     };
       
    96 
       
    97 #endif // __TStringTokenizer_H__