idlefw/inc/utility/caistrparser.h
changeset 0 79c6a41cd166
equal deleted inserted replaced
-1:000000000000 0:79c6a41cd166
       
     1 /*
       
     2 * Copyright (c) 2005-2006 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:  Collection of string parsing methods.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_STRPARSER_H
       
    20 #define C_STRPARSER_H
       
    21 
       
    22 #include <e32base.h>
       
    23 #include <utf.h>
       
    24 #include "aistrparser.h"
       
    25 
       
    26 // CLASS DECLARATION
       
    27 
       
    28 /**
       
    29 *  @ingroup group_aiutils
       
    30 * 
       
    31 *  String Parser
       
    32 *
       
    33 *  @since S60 3.2
       
    34 */
       
    35 NONSHARABLE_CLASS(CStrParser) : 
       
    36     public CBase, public MAiStrParser
       
    37 	{
       
    38 	
       
    39 public:
       
    40 	
       
    41     static CStrParser* NewL();
       
    42     
       
    43 private:
       
    44 
       
    45     CStrParser();
       
    46     
       
    47     void ConstructL();
       
    48     
       
    49     void Release();
       
    50     	  
       
    51 	TInt ParseInt( TInt32& aResult, const TDesC8& aSourceString );
       
    52 
       
    53 	HBufC16* CopyToBufferL( HBufC16* aTargetBuffer, const TDesC16& aSourceText );
       
    54 
       
    55 	HBufC16* CopyToBufferL( HBufC16* aTargetBuffer, const TDesC8& aSourceText );
       
    56 
       
    57 	HBufC8* CopyToBufferL( HBufC8* aTargetBuffer, const TDesC8& aSourceText );
       
    58 
       
    59 	HBufC8* CopyToBufferL( HBufC8* aTargetBuffer, const TDesC16& aSourceText );
       
    60 
       
    61     };
       
    62 
       
    63 #endif // C_STRPARSER_H
       
    64 
       
    65 
       
    66 
       
    67 
       
    68