os/textandloc/charconvfw/charconvplugins/src/plugins/iso2022kr.cpp
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
sl@0
     1
/*
sl@0
     2
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
sl@0
     3
* All rights reserved.
sl@0
     4
* This component and the accompanying materials are made available
sl@0
     5
* under the terms of "Eclipse Public License v1.0"
sl@0
     6
* which accompanies this distribution, and is available
sl@0
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
sl@0
     8
*
sl@0
     9
* Initial Contributors:
sl@0
    10
* Nokia Corporation - initial contribution.
sl@0
    11
*
sl@0
    12
* Contributors:
sl@0
    13
*
sl@0
    14
* Description:   ISO2022kr conversion plugin
sl@0
    15
*
sl@0
    16
*/
sl@0
    17
sl@0
    18
sl@0
    19
// INCLUDES
sl@0
    20
#include <e32std.h>
sl@0
    21
#include <charconv.h>
sl@0
    22
#include <convgeneratedcpp.h>
sl@0
    23
#include <ecom/implementationproxy.h>
sl@0
    24
#include "cp949table.h"
sl@0
    25
#include "charactersetconverter.h"
sl@0
    26
sl@0
    27
static const TUint KBitsForNonStandardStates = 0x03;
sl@0
    28
static const TUint KShiftedToKSCState = 0x01;
sl@0
    29
sl@0
    30
static const TUint KMaxSizeOfTmpBuffer = 1024;
sl@0
    31
sl@0
    32
static const TUint8 KMaxAscii = 0x9f;
sl@0
    33
sl@0
    34
_LIT8(KLit8EscapeSequence, "\x1b\x24\x43");
sl@0
    35
sl@0
    36
#define SHIFT_IN_BYTE  0x0F
sl@0
    37
#define SHIFT_OUT_BYTE 0x0E
sl@0
    38
sl@0
    39
typedef enum
sl@0
    40
{
sl@0
    41
    EISO2022Initialize,
sl@0
    42
    EISO2022Ascii,
sl@0
    43
    EISO2022KSC
sl@0
    44
} TISO2022FromUniState;
sl@0
    45
sl@0
    46
// New Interface class
sl@0
    47
class CISO2022KRImplementation : public CCharacterSetConverterPluginInterface
sl@0
    48
{
sl@0
    49
    public:
sl@0
    50
        virtual const TDesC8& ReplacementForUnconvertibleUnicodeCharacters();
sl@0
    51
sl@0
    52
        virtual TInt ConvertFromUnicode(
sl@0
    53
            CCnvCharacterSetConverter::TEndianness aDefaultEndiannessOfForeignCharacters, 
sl@0
    54
            const TDesC8& aReplacementForUnconvertibleUnicodeCharacters, 
sl@0
    55
            TDes8& aForeign, 
sl@0
    56
            const TDesC16& aUnicode, 
sl@0
    57
            CCnvCharacterSetConverter::TArrayOfAscendingIndices& aIndicesOfUnconvertibleCharacters );
sl@0
    58
sl@0
    59
        virtual TInt ConvertToUnicode(
sl@0
    60
            CCnvCharacterSetConverter::TEndianness aDefaultEndiannessOfForeignCharacters, 
sl@0
    61
            TDes16& aUnicode, 
sl@0
    62
            const TDesC8& aForeign, 
sl@0
    63
            TInt& aState, 
sl@0
    64
            TInt& aNumberOfUnconvertibleCharacters, 
sl@0
    65
            TInt& aIndexOfFirstByteOfFirstUnconvertibleCharacter );
sl@0
    66
sl@0
    67
        virtual TBool IsInThisCharacterSetL(
sl@0
    68
            TBool& aSetToTrue, 
sl@0
    69
            TInt& aConfidenceLevel, 
sl@0
    70
            const TDesC8& );
sl@0
    71
sl@0
    72
        static CISO2022KRImplementation* NewL();
sl@0
    73
sl@0
    74
        virtual ~CISO2022KRImplementation();
sl@0
    75
    private:
sl@0
    76
        CISO2022KRImplementation();
sl@0
    77
};
sl@0
    78
sl@0
    79
// FUNCTION DEFINITIONS
sl@0
    80
const TDesC8& CISO2022KRImplementation::ReplacementForUnconvertibleUnicodeCharacters()
sl@0
    81
	{
sl@0
    82
	return CnvCp949Table::ReplacementForUnconvertibleUnicodeCharacters();
sl@0
    83
	}
sl@0
    84
sl@0
    85
TInt CISO2022KRImplementation::ConvertFromUnicode(
sl@0
    86
    CCnvCharacterSetConverter::TEndianness aDefaultEndiannessOfForeignCharacters, 
sl@0
    87
    const TDesC8& aReplacementForUnconvertibleUnicodeCharacters, 
sl@0
    88
    TDes8& aForeign, 
sl@0
    89
    const TDesC16& aUnicode, 
sl@0
    90
    CCnvCharacterSetConverter::TArrayOfAscendingIndices& aIndicesOfUnconvertibleCharacters)
sl@0
    91
	{
sl@0
    92
    TInt ret;
sl@0
    93
    TInt currPos = 3;
sl@0
    94
    TUint outputConversionFlags = 0;
sl@0
    95
    TUint inputConversionFlags = CCnvCharacterSetConverter::EInputConversionFlagAppend;
sl@0
    96
    TISO2022FromUniState currState = EISO2022Initialize;
sl@0
    97
    TUint8 shiftByte = 0;
sl@0
    98
    TPtr8 shiftBytePtr(NULL, 0);
sl@0
    99
sl@0
   100
    aForeign.SetLength(0);
sl@0
   101
sl@0
   102
    /* Start with escape sequence */
sl@0
   103
    aForeign.Append( KLit8EscapeSequence );
sl@0
   104
sl@0
   105
    ret = CCnvCharacterSetConverter::DoConvertFromUnicode( CnvCp949Table::ConversionData(),
sl@0
   106
                                                           aDefaultEndiannessOfForeignCharacters,
sl@0
   107
                                                           aReplacementForUnconvertibleUnicodeCharacters,
sl@0
   108
                                                           aForeign,
sl@0
   109
                                                           aUnicode,
sl@0
   110
                                                           aIndicesOfUnconvertibleCharacters,
sl@0
   111
                                                           outputConversionFlags, 
sl@0
   112
                                                           inputConversionFlags );
sl@0
   113
    /* Append shift in and out bytes as needed */
sl@0
   114
    while( currPos < aForeign.Length() )
sl@0
   115
        {
sl@0
   116
        TUint8 *currChar = (TUint8 *)aForeign.Mid(currPos).Ptr();
sl@0
   117
        if( *currChar > KMaxAscii )
sl@0
   118
            { /* KSC character */
sl@0
   119
            if( currState != EISO2022KSC )
sl@0
   120
                { /* Insert shift out byte */
sl@0
   121
                shiftByte = SHIFT_OUT_BYTE;
sl@0
   122
                currState = EISO2022KSC;
sl@0
   123
                }
sl@0
   124
sl@0
   125
            /* Clear the 8th bit */
sl@0
   126
            *currChar = (*currChar & ~(0x80));
sl@0
   127
            }
sl@0
   128
        else
sl@0
   129
            { /* ASCII character */
sl@0
   130
            if( currState != EISO2022Ascii )
sl@0
   131
                { /* Insert shift in byte */
sl@0
   132
                shiftByte = SHIFT_IN_BYTE;
sl@0
   133
                currState = EISO2022Ascii;
sl@0
   134
                }
sl@0
   135
            }
sl@0
   136
sl@0
   137
        if( shiftByte )
sl@0
   138
            {
sl@0
   139
            if( (aForeign.Length() + 1) > aForeign.MaxLength() )
sl@0
   140
                { /* Make room for shift byte */
sl@0
   141
                if( aForeign[ (aForeign.Length() - 1) ] > KMaxAscii )
sl@0
   142
                    { /* Drop a dual byte KSC character */
sl@0
   143
                    aForeign.SetLength( aForeign.Length() - 2 );
sl@0
   144
                    }
sl@0
   145
                else
sl@0
   146
                    { /* Drop a single byte ASCII character */
sl@0
   147
                    aForeign.SetLength( aForeign.Length() - 1 );
sl@0
   148
                    }
sl@0
   149
                    /* Increase unconverted amount */
sl@0
   150
                    ret++;
sl@0
   151
                /* TBD, propably should try to fix aIndicesOfUnconvertibleCharacters
sl@0
   152
                        if possible */
sl@0
   153
                }
sl@0
   154
                shiftBytePtr.Set( &shiftByte, 1, 1 );
sl@0
   155
                aForeign.Insert( currPos, shiftBytePtr );
sl@0
   156
                currPos++;
sl@0
   157
                shiftByte = 0;
sl@0
   158
            }
sl@0
   159
sl@0
   160
        /* Skip current character */
sl@0
   161
        currPos++;
sl@0
   162
        }
sl@0
   163
sl@0
   164
    return ret;
sl@0
   165
    }
sl@0
   166
sl@0
   167
TInt CISO2022KRImplementation::ConvertToUnicode(
sl@0
   168
    CCnvCharacterSetConverter::TEndianness aDefaultEndiannessOfForeignCharacters, 
sl@0
   169
    TDes16& aUnicode, 
sl@0
   170
    const TDesC8& aForeign, 
sl@0
   171
    TInt& aState, 
sl@0
   172
    TInt& aNumberOfUnconvertibleCharacters, 
sl@0
   173
    TInt& aIndexOfFirstByteOfFirstUnconvertibleCharacter)
sl@0
   174
	{
sl@0
   175
    TInt err;
sl@0
   176
    TInt ret = 0;
sl@0
   177
    TInt currPos = 0;
sl@0
   178
    TInt convPos = 0;
sl@0
   179
    TInt shiftInPos = KErrNotFound;
sl@0
   180
    TInt shiftOutPos = KErrNotFound;
sl@0
   181
    TInt shiftPos = KErrNotFound;
sl@0
   182
    TInt escPos = KErrNotFound;
sl@0
   183
    TPtrC8 currSegment;
sl@0
   184
    TPtrC8 convSegment;
sl@0
   185
    TBool changeState = EFalse;
sl@0
   186
sl@0
   187
    TUint outputConversionFlags = 0;
sl@0
   188
    TUint inputConversionFlags = CCnvCharacterSetConverter::EInputConversionFlagAppend;
sl@0
   189
    TInt numberOfUnconvertibleCharacters = 0;
sl@0
   190
    TInt indexOfFirstByteOfFirstUnconvertibleCharacter = 0;
sl@0
   191
    aNumberOfUnconvertibleCharacters = 0;
sl@0
   192
sl@0
   193
    while( currPos < aForeign.Length() )
sl@0
   194
        {
sl@0
   195
sl@0
   196
        currSegment.Set( aForeign.Mid( currPos ) );
sl@0
   197
sl@0
   198
        /* First change state if needed */
sl@0
   199
        if( changeState )
sl@0
   200
            {
sl@0
   201
            changeState = EFalse;
sl@0
   202
            if( (aState & KBitsForNonStandardStates) == KShiftedToKSCState )
sl@0
   203
                { /* Switch back to default ASCII */
sl@0
   204
                aState &= ~(KShiftedToKSCState);
sl@0
   205
                }
sl@0
   206
            else
sl@0
   207
                { /* Switch to KSC */
sl@0
   208
                aState |= KShiftedToKSCState; 
sl@0
   209
                }
sl@0
   210
            }
sl@0
   211
sl@0
   212
        /* Search for escape which should be skipped */
sl@0
   213
        escPos = currSegment.Find( KLit8EscapeSequence );
sl@0
   214
        
sl@0
   215
        /* Search for shift in byte */
sl@0
   216
        shiftInPos = currSegment.Locate( SHIFT_IN_BYTE );
sl@0
   217
sl@0
   218
        /* Search for shift out byte */
sl@0
   219
        shiftOutPos = currSegment.Locate( SHIFT_OUT_BYTE );
sl@0
   220
sl@0
   221
        /* Set shift pos according to found shift bytes */
sl@0
   222
        if( shiftInPos == KErrNotFound &&
sl@0
   223
            shiftOutPos == KErrNotFound )
sl@0
   224
            { /* Neither found */
sl@0
   225
            shiftPos = KErrNotFound;
sl@0
   226
            }
sl@0
   227
        else
sl@0
   228
            {
sl@0
   229
            if( (shiftInPos != KErrNotFound) &&
sl@0
   230
                ((shiftInPos < shiftOutPos) || (shiftOutPos == KErrNotFound)) )
sl@0
   231
                { /* shift in is nearer or shift out not found */
sl@0
   232
                shiftPos = shiftInPos;
sl@0
   233
                /* Set state change if needed */
sl@0
   234
                if( (aState & KBitsForNonStandardStates) == KShiftedToKSCState )
sl@0
   235
                    {
sl@0
   236
                    changeState = ETrue;
sl@0
   237
                    }
sl@0
   238
                }
sl@0
   239
            else
sl@0
   240
                { /* shift out must be nearer or shift in not fouind */
sl@0
   241
                shiftPos = shiftOutPos;
sl@0
   242
                /* Set state change if needed */
sl@0
   243
                if( (aState & KBitsForNonStandardStates) != KShiftedToKSCState )
sl@0
   244
                    {
sl@0
   245
                    changeState = ETrue;
sl@0
   246
                    }
sl@0
   247
                }
sl@0
   248
            }
sl@0
   249
sl@0
   250
        if( shiftPos == KErrNotFound )
sl@0
   251
            { /* Shift byte not found, same coding for the rest of the data */
sl@0
   252
            if( escPos == KErrNotFound )
sl@0
   253
                { /* No escape sequence either, just convert the rest */
sl@0
   254
                convSegment.Set( currSegment );
sl@0
   255
                }
sl@0
   256
            }
sl@0
   257
        else if( ((escPos != KErrNotFound) && (shiftPos < escPos)) ||
sl@0
   258
                 (escPos == KErrNotFound) )
sl@0
   259
            { /* Shift byte found and it comes before escape sequence or no escape
sl@0
   260
                 sequence was found, convert data preceeding the shift byte if shift
sl@0
   261
                 byte isn't the first character */
sl@0
   262
                if( shiftPos == 0 )
sl@0
   263
                { /* No data to convert preceeds the shift byte, just skip it and continue */
sl@0
   264
                    currPos += 1;
sl@0
   265
                    continue;
sl@0
   266
                }
sl@0
   267
                convSegment.Set( currSegment.Left( shiftPos ) );
sl@0
   268
                /* Clear to prevent convert to escape sequence */
sl@0
   269
                escPos = KErrNotFound;
sl@0
   270
            }
sl@0
   271
sl@0
   272
        if( escPos != KErrNotFound )
sl@0
   273
            { /* Escape sequence found before any shift bytes,
sl@0
   274
                 clear possible state change and convert data
sl@0
   275
                 preceeding the escape sequence if
sl@0
   276
                 escape sequence is not at the beginning */
sl@0
   277
            changeState = EFalse;
sl@0
   278
            if( escPos == 0 )
sl@0
   279
                { /* No data to convert preceeds the escape sequence, just skip it continue */
sl@0
   280
                currPos += KLit8EscapeSequence().Length();
sl@0
   281
                continue;
sl@0
   282
                }
sl@0
   283
            convSegment.Set( currSegment.Left( escPos ) );
sl@0
   284
            }
sl@0
   285
sl@0
   286
        if( (aState & KBitsForNonStandardStates) == KShiftedToKSCState )
sl@0
   287
            { /* Convert KSC encoded */
sl@0
   288
            HBufC8 *tmpForeign = NULL;
sl@0
   289
sl@0
   290
            if( (convSegment.Length() & 0x1) )
sl@0
   291
                { /* KSC should have even amount of bytes */
sl@0
   292
                ret = CCnvCharacterSetConverter::EErrorIllFormedInput;
sl@0
   293
                }
sl@0
   294
            else
sl@0
   295
                {
sl@0
   296
                convPos = 0;
sl@0
   297
                while( convPos < convSegment.Length() )
sl@0
   298
                    {
sl@0
   299
                    TRAP( err, tmpForeign = HBufC8::NewL( KMaxSizeOfTmpBuffer ) );
sl@0
   300
                    if( err != KErrNone )
sl@0
   301
                        {
sl@0
   302
                        User::Panic( _L("ISO-2022-KR"), err );
sl@0
   303
                        }
sl@0
   304
sl@0
   305
                    if( convSegment.Length() < KMaxSizeOfTmpBuffer )
sl@0
   306
                        { /* Convert whole segment */
sl@0
   307
                        tmpForeign->Des().Copy( convSegment );
sl@0
   308
                        }
sl@0
   309
                    else
sl@0
   310
                        { /* Convert in chunks */
sl@0
   311
                        if( (convPos + KMaxSizeOfTmpBuffer) >= convSegment.Length() )
sl@0
   312
                            { /* Last chunk */
sl@0
   313
                            tmpForeign->Des().Copy( convSegment.Mid( convPos ) );
sl@0
   314
                            }
sl@0
   315
                        else
sl@0
   316
                            {
sl@0
   317
                            tmpForeign->Des().Copy( convSegment.Mid( convPos, KMaxSizeOfTmpBuffer ) );
sl@0
   318
                            }
sl@0
   319
                        }
sl@0
   320
sl@0
   321
                    TUint8 *chars = (TUint8 *)tmpForeign->Des().Ptr();
sl@0
   322
                    for( TInt i = 0 ; i < tmpForeign->Length() ; i++ )
sl@0
   323
                        { /* Set highest bit in characters */
sl@0
   324
                        chars[i] |= 0x80;
sl@0
   325
                        }
sl@0
   326
sl@0
   327
                    numberOfUnconvertibleCharacters = 0;
sl@0
   328
                    ret = CCnvCharacterSetConverter::DoConvertToUnicode( CnvCp949Table::ConversionData(),
sl@0
   329
                                                                         aDefaultEndiannessOfForeignCharacters,
sl@0
   330
                                                                         aUnicode, *tmpForeign,
sl@0
   331
                                                                         numberOfUnconvertibleCharacters,
sl@0
   332
                                                                         indexOfFirstByteOfFirstUnconvertibleCharacter,
sl@0
   333
                                                                         outputConversionFlags,
sl@0
   334
                                                                         inputConversionFlags );
sl@0
   335
                    if( numberOfUnconvertibleCharacters != 0 &&
sl@0
   336
                        aNumberOfUnconvertibleCharacters == 0 )
sl@0
   337
                        { /* First uncovertible found, set index relative to actual input buffer*/
sl@0
   338
                        aIndexOfFirstByteOfFirstUnconvertibleCharacter = (currPos + convPos + indexOfFirstByteOfFirstUnconvertibleCharacter);
sl@0
   339
                        }
sl@0
   340
sl@0
   341
                    aNumberOfUnconvertibleCharacters += numberOfUnconvertibleCharacters;
sl@0
   342
sl@0
   343
                    if( ret < 0 )
sl@0
   344
                        { /* Some error, break the loop,
sl@0
   345
                             errors are handled later */
sl@0
   346
                        delete tmpForeign;
sl@0
   347
                        break;
sl@0
   348
                        }
sl@0
   349
sl@0
   350
                    if( ret > 0 )
sl@0
   351
                        { /* Not all were converted, fix return value
sl@0
   352
                             to be relative to convSegment and break the loop */
sl@0
   353
                        ret = (convSegment.Length() - convPos - tmpForeign->Length() + ret);
sl@0
   354
                        delete tmpForeign;
sl@0
   355
                        break;
sl@0
   356
                        }
sl@0
   357
sl@0
   358
                    convPos += tmpForeign->Length();
sl@0
   359
                    delete tmpForeign;
sl@0
   360
                    }
sl@0
   361
                }
sl@0
   362
            }
sl@0
   363
        else
sl@0
   364
            { /* Convert ASCII encoded by default, KSC can be used without setting highest bit */
sl@0
   365
                numberOfUnconvertibleCharacters = 0;
sl@0
   366
                ret = CCnvCharacterSetConverter::DoConvertToUnicode( CnvCp949Table::ConversionData(),
sl@0
   367
                                                                     aDefaultEndiannessOfForeignCharacters,
sl@0
   368
                                                                     aUnicode, convSegment,
sl@0
   369
                                                                     numberOfUnconvertibleCharacters,
sl@0
   370
                                                                     indexOfFirstByteOfFirstUnconvertibleCharacter,
sl@0
   371
                                                                     outputConversionFlags,
sl@0
   372
                                                                     inputConversionFlags );
sl@0
   373
                if( numberOfUnconvertibleCharacters != 0 &&
sl@0
   374
                    aNumberOfUnconvertibleCharacters == 0 )
sl@0
   375
                    { /* First uncovertible found, set index relative to actual input buffer*/
sl@0
   376
                    aIndexOfFirstByteOfFirstUnconvertibleCharacter = currPos + indexOfFirstByteOfFirstUnconvertibleCharacter;
sl@0
   377
                    }
sl@0
   378
                aNumberOfUnconvertibleCharacters += numberOfUnconvertibleCharacters;
sl@0
   379
            }
sl@0
   380
sl@0
   381
        if( ret < 0 )
sl@0
   382
            { /* Error during conversion */
sl@0
   383
            return ret;
sl@0
   384
            }
sl@0
   385
        else if( ret > 0 )
sl@0
   386
            { /* Not all characters where converted, return
sl@0
   387
                 value indicating how many bytes in total are left unconverted */
sl@0
   388
            return (aForeign.Length() - currPos - convSegment.Length() + ret);
sl@0
   389
            }
sl@0
   390
sl@0
   391
        /* Increase to skip converted data */
sl@0
   392
        currPos += convSegment.Length();
sl@0
   393
        if( escPos != KErrNotFound )
sl@0
   394
            { /* Increase to skip escape sequence */
sl@0
   395
            currPos += KLit8EscapeSequence().Length();
sl@0
   396
            }
sl@0
   397
        else if( shiftPos != KErrNotFound )
sl@0
   398
            { /* Increase to skip shift byte */
sl@0
   399
            currPos += 1;
sl@0
   400
            }
sl@0
   401
sl@0
   402
        }
sl@0
   403
sl@0
   404
    return 0;
sl@0
   405
	}
sl@0
   406
sl@0
   407
sl@0
   408
TBool CISO2022KRImplementation::IsInThisCharacterSetL(
sl@0
   409
    TBool& aSetToTrue, 
sl@0
   410
    TInt& aConfidenceLevel, 
sl@0
   411
    const TDesC8& /*aBuf*/)
sl@0
   412
	{
sl@0
   413
/*	
sl@0
   414
    aSetToTrue=ETrue;
sl@0
   415
    aConfidenceLevel=50;
sl@0
   416
    
sl@0
   417
    TUint8 ch(0);
sl@0
   418
    for (TInt i=0;i<aBuf.Length();i++)
sl@0
   419
        {
sl@0
   420
        ch=aBuf[i];
sl@0
   421
        if (ch<0x7F)
sl@0
   422
            {
sl@0
   423
            continue;
sl@0
   424
            }
sl@0
   425
        else if (0xa1<=ch&&ch<=0xfe)
sl@0
   426
            {
sl@0
   427
            i++;
sl@0
   428
            __ASSERT_DEBUG(i<aBuf.Length(),User::Panic(_L("IS2022KR"),__LINE__));
sl@0
   429
            }
sl@0
   430
        else
sl@0
   431
            {
sl@0
   432
            aConfidenceLevel=0;
sl@0
   433
            aSetToTrue=EFalse;
sl@0
   434
            break;
sl@0
   435
            }
sl@0
   436
        }    
sl@0
   437
	return aSetToTrue;
sl@0
   438
*/
sl@0
   439
	aSetToTrue=ETrue;
sl@0
   440
	aConfidenceLevel=0;
sl@0
   441
	return EFalse;
sl@0
   442
	}
sl@0
   443
sl@0
   444
CISO2022KRImplementation* CISO2022KRImplementation::NewL()
sl@0
   445
    {
sl@0
   446
    CISO2022KRImplementation* self = new(ELeave) CISO2022KRImplementation;
sl@0
   447
    return self;
sl@0
   448
    }
sl@0
   449
sl@0
   450
CISO2022KRImplementation::CISO2022KRImplementation()
sl@0
   451
    {
sl@0
   452
    //default constructor.. do nothing
sl@0
   453
    }
sl@0
   454
sl@0
   455
CISO2022KRImplementation::~CISO2022KRImplementation()
sl@0
   456
    {
sl@0
   457
    //default destructor .. do nothing
sl@0
   458
    }
sl@0
   459
sl@0
   460
// ECOM CREATION FUNCTION
sl@0
   461
const TImplementationProxy ImplementationTable[] = 
sl@0
   462
    {
sl@0
   463
    // Note: This is the same UID as defined in old mmp-file
sl@0
   464
    // Used also in 12221212.rss ( implementation_uid )
sl@0
   465
    IMPLEMENTATION_PROXY_ENTRY( 0x20010101, CISO2022KRImplementation::NewL )
sl@0
   466
    };
sl@0
   467
sl@0
   468
EXPORT_C const TImplementationProxy* ImplementationGroupProxy( TInt& aTableCount )
sl@0
   469
    {
sl@0
   470
    aTableCount = sizeof( ImplementationTable ) / sizeof(TImplementationProxy);
sl@0
   471
    return ImplementationTable;
sl@0
   472
    }
sl@0
   473