classicui_plat/number_grouping_api/inc/NumberGroupingStd.h
changeset 37 89c890c70182
parent 34 6b5204869ed5
child 45 667edd0b8678
equal deleted inserted replaced
34:6b5204869ed5 37:89c890c70182
     1 /*
       
     2 * Copyright (c) 2002 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: 
       
    15 *    
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef NUMBERGROUPING_STD_H
       
    21 #define NUMBERGROUPING_STD_H
       
    22 
       
    23 // standard includes
       
    24 
       
    25 #include <e32std.h>
       
    26 #include <e32base.h>
       
    27 #include <s32mem.h>
       
    28 
       
    29 // number grouping constants
       
    30 
       
    31 const TInt KSingleCharacter		= 1;
       
    32 
       
    33 const TInt KErrInvalidChar		= -45;
       
    34 const TInt KErrIndexOutOfRange	= -46;
       
    35 const TInt KErrSyntaxError		= -47;
       
    36 
       
    37 const TInt KStateMatched		= -1;
       
    38 const TInt KStateNoMatch		= 0;
       
    39 
       
    40 const TInt KCharacterDot		= 11;
       
    41 const TInt KCharacterPlus		= 12;
       
    42 
       
    43 // Panic Enumeration
       
    44 
       
    45 enum TNumberGroupingPanic
       
    46 	{
       
    47 	ENumberGroupingInvalidSeparatorCharacterInFormat,
       
    48     ENumberGroupingMatchingPatternVersusFormatPatternMismatch,
       
    49 	ENumberGroupingNoInitialDigitsInResource,
       
    50     ENumberGroupingBadMinMaxDigitRangeInResource,
       
    51     ENumberGroupingFormattedNumberAlreadyExists,
       
    52     ENumberGroupingNoSuchStateMachine,
       
    53     ENumberGroupingBadLengthToGroup
       
    54 	};
       
    55 
       
    56 
       
    57 #endif // NUMBERGROUPING_STD_H
       
    58 
       
    59 // End of File