os/textandloc/fontservices/textshaperplugin/IcuSource/common/ucnvmbcs.h
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
******************************************************************************
sl@0
     3
*
sl@0
     4
*   Copyright (C) 2000-2004, International Business Machines
sl@0
     5
*   Corporation and others.  All Rights Reserved.
sl@0
     6
*
sl@0
     7
******************************************************************************
sl@0
     8
*   file name:  ucnvmbcs.h
sl@0
     9
*   encoding:   US-ASCII
sl@0
    10
*   tab size:   8 (not used)
sl@0
    11
*   indentation:4
sl@0
    12
*
sl@0
    13
*   created on: 2000jul07
sl@0
    14
*   created by: Markus W. Scherer
sl@0
    15
*/
sl@0
    16
sl@0
    17
#ifndef __UCNVMBCS_H__
sl@0
    18
#define __UCNVMBCS_H__
sl@0
    19
sl@0
    20
#include "unicode/utypes.h"
sl@0
    21
sl@0
    22
#if !UCONFIG_NO_CONVERSION
sl@0
    23
sl@0
    24
#include "unicode/ucnv.h"
sl@0
    25
#include "ucnv_cnv.h"
sl@0
    26
sl@0
    27
/**
sl@0
    28
 * ICU conversion (.cnv) data file structure, following the usual UDataInfo
sl@0
    29
 * header.
sl@0
    30
 *
sl@0
    31
 * Format version: 6.2
sl@0
    32
 *
sl@0
    33
 * struct UConverterStaticData -- struct containing the converter name, IBM CCSID,
sl@0
    34
 *                                min/max bytes per character, etc.
sl@0
    35
 *                                see ucnv_bld.h
sl@0
    36
 *
sl@0
    37
 * --------------------
sl@0
    38
 *
sl@0
    39
 * The static data is followed by conversionType-specific data structures.
sl@0
    40
 * At the moment, there are only variations of MBCS converters. They all have
sl@0
    41
 * the same toUnicode structures, while the fromUnicode structures for SBCS
sl@0
    42
 * differ from those for other MBCS-style converters.
sl@0
    43
 *
sl@0
    44
 * _MBCSHeader.version 4.2 adds an optional conversion extension data structure.
sl@0
    45
 * If it is present, then an ICU version reading header versions 4.0 or 4.1
sl@0
    46
 * will be able to use the base table and ignore the extension.
sl@0
    47
 *
sl@0
    48
 * The unicodeMask in the static data is part of the base table data structure.
sl@0
    49
 * Especially, the UCNV_HAS_SUPPLEMENTARY flag determines the length of the
sl@0
    50
 * fromUnicode stage 1 array.
sl@0
    51
 * The static data unicodeMask refers only to the base table's properties if
sl@0
    52
 * a base table is included.
sl@0
    53
 * In an extension-only file, the static data unicodeMask is 0.
sl@0
    54
 * The extension data indexes have a separate field with the unicodeMask flags.
sl@0
    55
 *
sl@0
    56
 * MBCS-style data structure following the static data.
sl@0
    57
 * Offsets are counted in bytes from the beginning of the MBCS header structure.
sl@0
    58
 * Details about usage in comments in ucnvmbcs.c.
sl@0
    59
 *
sl@0
    60
 * struct _MBCSHeader (see the definition in this header file below)
sl@0
    61
 * contains 32-bit fields as follows:
sl@0
    62
 * 8 values:
sl@0
    63
 *  0   uint8_t[4]  MBCS version in UVersionInfo format (currently 4.2.0.0)
sl@0
    64
 *  1   uint32_t    countStates
sl@0
    65
 *  2   uint32_t    countToUFallbacks
sl@0
    66
 *  3   uint32_t    offsetToUCodeUnits
sl@0
    67
 *  4   uint32_t    offsetFromUTable
sl@0
    68
 *  5   uint32_t    offsetFromUBytes
sl@0
    69
 *  6   uint32_t    flags, bits:
sl@0
    70
 *                      31.. 8 offsetExtension -- _MBCSHeader.version 4.2 (ICU 2.8) and higher
sl@0
    71
 *                                                0 for older versions and if
sl@0
    72
 *                                                there is not extension structure
sl@0
    73
 *                       7.. 0 outputType
sl@0
    74
 *  7   uint32_t    fromUBytesLength -- _MBCSHeader.version 4.1 (ICU 2.4) and higher
sl@0
    75
 *                  counts bytes in fromUBytes[]
sl@0
    76
 *
sl@0
    77
 * if(outputType==MBCS_OUTPUT_EXT_ONLY) {
sl@0
    78
 *     -- base table name for extension-only table
sl@0
    79
 *     char baseTableName[variable]; -- with NUL plus padding for 4-alignment
sl@0
    80
 *
sl@0
    81
 *     -- all _MBCSHeader fields except for version and flags are 0
sl@0
    82
 * } else {
sl@0
    83
 *     -- normal base table with optional extension
sl@0
    84
 *
sl@0
    85
 *     int32_t stateTable[countStates][256];
sl@0
    86
 *    
sl@0
    87
 *     struct _MBCSToUFallback { (fallbacks are sorted by offset)
sl@0
    88
 *         uint32_t offset;
sl@0
    89
 *         UChar32 codePoint;
sl@0
    90
 *     } toUFallbacks[countToUFallbacks];
sl@0
    91
 *    
sl@0
    92
 *     uint16_t unicodeCodeUnits[(offsetFromUTable-offsetToUCodeUnits)/2];
sl@0
    93
 *                  (padded to an even number of units)
sl@0
    94
 *    
sl@0
    95
 *     -- stage 1 tables
sl@0
    96
 *     if(staticData.unicodeMask&UCNV_HAS_SUPPLEMENTARY) {
sl@0
    97
 *         -- stage 1 table for all of Unicode
sl@0
    98
 *         uint16_t fromUTable[0x440]; (32-bit-aligned)
sl@0
    99
 *     } else {
sl@0
   100
 *         -- BMP-only tables have a smaller stage 1 table
sl@0
   101
 *         uint16_t fromUTable[0x40]; (32-bit-aligned)
sl@0
   102
 *     }
sl@0
   103
 *    
sl@0
   104
 *     -- stage 2 tables
sl@0
   105
 *        length determined by top of stage 1 and bottom of stage 3 tables
sl@0
   106
 *     if(outputType==MBCS_OUTPUT_1) {
sl@0
   107
 *         -- SBCS: pure indexes
sl@0
   108
 *         uint16_t stage 2 indexes[?];
sl@0
   109
 *     } else {
sl@0
   110
 *         -- DBCS, MBCS, EBCDIC_STATEFUL, ...: roundtrip flags and indexes
sl@0
   111
 *         uint32_t stage 2 flags and indexes[?];
sl@0
   112
 *     }
sl@0
   113
 *    
sl@0
   114
 *     -- stage 3 tables with byte results
sl@0
   115
 *     if(outputType==MBCS_OUTPUT_1) {
sl@0
   116
 *         -- SBCS: each 16-bit result contains flags and the result byte, see ucnvmbcs.c
sl@0
   117
 *         uint16_t fromUBytes[fromUBytesLength/2];
sl@0
   118
 *     } else {
sl@0
   119
 *         -- DBCS, MBCS, EBCDIC_STATEFUL, ... 2/3/4 bytes result, see ucnvmbcs.c
sl@0
   120
 *         uint8_t fromUBytes[fromUBytesLength]; or
sl@0
   121
 *         uint16_t fromUBytes[fromUBytesLength/2]; or
sl@0
   122
 *         uint32_t fromUBytes[fromUBytesLength/4];
sl@0
   123
 *     }
sl@0
   124
 * }
sl@0
   125
 *
sl@0
   126
 * -- extension table, details see ucnv_ext.h
sl@0
   127
 * int32_t indexes[>=32]; ...
sl@0
   128
 */
sl@0
   129
sl@0
   130
/* MBCS converter data and state -------------------------------------------- */
sl@0
   131
sl@0
   132
enum {
sl@0
   133
    MBCS_MAX_STATE_COUNT=128
sl@0
   134
};
sl@0
   135
sl@0
   136
/**
sl@0
   137
 * MBCS action codes for conversions to Unicode.
sl@0
   138
 * These values are in bits 23..20 of the state table entries.
sl@0
   139
 */
sl@0
   140
enum {
sl@0
   141
    MBCS_STATE_VALID_DIRECT_16,
sl@0
   142
    MBCS_STATE_VALID_DIRECT_20,
sl@0
   143
sl@0
   144
    MBCS_STATE_FALLBACK_DIRECT_16,
sl@0
   145
    MBCS_STATE_FALLBACK_DIRECT_20,
sl@0
   146
sl@0
   147
    MBCS_STATE_VALID_16,
sl@0
   148
    MBCS_STATE_VALID_16_PAIR,
sl@0
   149
sl@0
   150
    MBCS_STATE_UNASSIGNED,
sl@0
   151
    MBCS_STATE_ILLEGAL,
sl@0
   152
sl@0
   153
    MBCS_STATE_CHANGE_ONLY
sl@0
   154
};
sl@0
   155
sl@0
   156
/* Macros for state table entries */
sl@0
   157
#define MBCS_ENTRY_TRANSITION(state, offset) (int32_t)(((int32_t)(state)<<24L)|(offset))
sl@0
   158
#define MBCS_ENTRY_TRANSITION_SET_OFFSET(entry, offset) (int32_t)(((entry)&0xff000000)|(offset))
sl@0
   159
#define MBCS_ENTRY_TRANSITION_ADD_OFFSET(entry, offset) (int32_t)((entry)+(offset))
sl@0
   160
sl@0
   161
#define MBCS_ENTRY_FINAL(state, action, value) (int32_t)(0x80000000|((int32_t)(state)<<24L)|((action)<<20L)|(value))
sl@0
   162
#define MBCS_ENTRY_SET_FINAL(entry) (int32_t)((entry)|0x80000000)
sl@0
   163
#define MBCS_ENTRY_FINAL_SET_ACTION(entry, action) (int32_t)(((entry)&0xff0fffff)|((int32_t)(action)<<20L))
sl@0
   164
#define MBCS_ENTRY_FINAL_SET_VALUE(entry, value) (int32_t)(((entry)&0xfff00000)|(value))
sl@0
   165
#define MBCS_ENTRY_FINAL_SET_ACTION_VALUE(entry, action, value) (int32_t)(((entry)&0xff000000)|((int32_t)(action)<<20L)|(value))
sl@0
   166
sl@0
   167
#define MBCS_ENTRY_SET_STATE(entry, state) (int32_t)(((entry)&0x80ffffff)|((int32_t)(state)<<24L))
sl@0
   168
sl@0
   169
#define MBCS_ENTRY_STATE(entry) (((entry)>>24)&0x7f)
sl@0
   170
sl@0
   171
#define MBCS_ENTRY_IS_TRANSITION(entry) ((entry)>=0)
sl@0
   172
#define MBCS_ENTRY_IS_FINAL(entry) ((entry)<0)
sl@0
   173
sl@0
   174
#define MBCS_ENTRY_TRANSITION_STATE(entry) ((entry)>>24)
sl@0
   175
#define MBCS_ENTRY_TRANSITION_OFFSET(entry) ((entry)&0xffffff)
sl@0
   176
sl@0
   177
#define MBCS_ENTRY_FINAL_STATE(entry) (((entry)>>24)&0x7f)
sl@0
   178
#define MBCS_ENTRY_FINAL_IS_VALID_DIRECT_16(entry) ((entry)<(int32_t)0x80100000)
sl@0
   179
#define MBCS_ENTRY_FINAL_ACTION(entry) (((entry)>>20)&0xf)
sl@0
   180
#define MBCS_ENTRY_FINAL_VALUE(entry) ((entry)&0xfffff)
sl@0
   181
#define MBCS_ENTRY_FINAL_VALUE_16(entry) (uint16_t)(entry)
sl@0
   182
sl@0
   183
/* single-byte fromUnicode: get the 16-bit result word */
sl@0
   184
#define MBCS_SINGLE_RESULT_FROM_U(table, results, c) (results)[ (table)[ (table)[(c)>>10] +(((c)>>4)&0x3f) ] +((c)&0xf) ]
sl@0
   185
sl@0
   186
/* multi-byte fromUnicode: get the 32-bit stage 2 entry */
sl@0
   187
#define MBCS_STAGE_2_FROM_U(table, c) ((const uint32_t *)(table))[ (table)[(c)>>10] +(((c)>>4)&0x3f) ]
sl@0
   188
#define MBCS_FROM_U_IS_ROUNDTRIP(stage2Entry, c) ( ((stage2Entry) & ((uint32_t)1<< (16+((c)&0xf)) )) !=0)
sl@0
   189
sl@0
   190
#define MBCS_VALUE_2_FROM_STAGE_2(bytes, stage2Entry, c) ((uint16_t *)(bytes))[16*(uint32_t)(uint16_t)(stage2Entry)+((c)&0xf)]
sl@0
   191
#define MBCS_VALUE_4_FROM_STAGE_2(bytes, stage2Entry, c) ((uint32_t *)(bytes))[16*(uint32_t)(uint16_t)(stage2Entry)+((c)&0xf)]
sl@0
   192
sl@0
   193
#define MBCS_POINTER_3_FROM_STAGE_2(bytes, stage2Entry, c) ((bytes)+(16*(uint32_t)(uint16_t)(stage2Entry)+((c)&0xf))*3)
sl@0
   194
sl@0
   195
sl@0
   196
/**
sl@0
   197
 * MBCS output types for conversions from Unicode.
sl@0
   198
 * These per-converter types determine the storage method in stage 3 of the lookup table,
sl@0
   199
 * mostly how many bytes are stored per entry.
sl@0
   200
 */
sl@0
   201
enum {
sl@0
   202
    MBCS_OUTPUT_1,          /* 0 */
sl@0
   203
    MBCS_OUTPUT_2,          /* 1 */
sl@0
   204
    MBCS_OUTPUT_3,          /* 2 */
sl@0
   205
    MBCS_OUTPUT_4,          /* 3 */
sl@0
   206
sl@0
   207
    MBCS_OUTPUT_3_EUC=8,    /* 8 */
sl@0
   208
    MBCS_OUTPUT_4_EUC,      /* 9 */
sl@0
   209
sl@0
   210
    MBCS_OUTPUT_2_SISO=12,  /* c */
sl@0
   211
    MBCS_OUTPUT_2_HZ,       /* d */
sl@0
   212
sl@0
   213
    MBCS_OUTPUT_EXT_ONLY,   /* e */
sl@0
   214
sl@0
   215
    MBCS_OUTPUT_COUNT,
sl@0
   216
sl@0
   217
    MBCS_OUTPUT_DBCS_ONLY=0xdb  /* runtime-only type for DBCS-only handling of SISO tables */
sl@0
   218
};
sl@0
   219
sl@0
   220
/**
sl@0
   221
 * Fallbacks to Unicode are stored outside the normal state table and code point structures
sl@0
   222
 * in a vector of items of this type. They are sorted by offset.
sl@0
   223
 */
sl@0
   224
typedef struct {
sl@0
   225
    uint32_t offset;
sl@0
   226
    UChar32 codePoint;
sl@0
   227
} _MBCSToUFallback;
sl@0
   228
sl@0
   229
/**
sl@0
   230
 * This is the MBCS part of the UConverterTable union (a runtime data structure).
sl@0
   231
 * It keeps all the per-converter data and points into the loaded mapping tables.
sl@0
   232
 */
sl@0
   233
typedef struct UConverterMBCSTable {
sl@0
   234
    /* toUnicode */
sl@0
   235
    uint8_t countStates, dbcsOnlyState, stateTableOwned;
sl@0
   236
    uint32_t countToUFallbacks;
sl@0
   237
sl@0
   238
    const int32_t (*stateTable)/*[countStates]*/[256];
sl@0
   239
    int32_t (*swapLFNLStateTable)/*[countStates]*/[256]; /* for swaplfnl */
sl@0
   240
    const uint16_t *unicodeCodeUnits/*[countUnicodeResults]*/;
sl@0
   241
    const _MBCSToUFallback *toUFallbacks;
sl@0
   242
sl@0
   243
    /* fromUnicode */
sl@0
   244
    const uint16_t *fromUnicodeTable;
sl@0
   245
    const uint8_t *fromUnicodeBytes;
sl@0
   246
    uint8_t *swapLFNLFromUnicodeBytes; /* for swaplfnl */
sl@0
   247
    uint32_t fromUBytesLength;
sl@0
   248
    uint8_t outputType, unicodeMask;
sl@0
   249
sl@0
   250
    /* converter name for swaplfnl */
sl@0
   251
    char *swapLFNLName;
sl@0
   252
sl@0
   253
    /* extension data */
sl@0
   254
    struct UConverterSharedData *baseSharedData;
sl@0
   255
    const int32_t *extIndexes;
sl@0
   256
} UConverterMBCSTable;
sl@0
   257
sl@0
   258
/**
sl@0
   259
 * MBCS data header. See data format description above.
sl@0
   260
 */
sl@0
   261
typedef struct {
sl@0
   262
    UVersionInfo version;
sl@0
   263
    uint32_t countStates,
sl@0
   264
             countToUFallbacks,
sl@0
   265
             offsetToUCodeUnits,
sl@0
   266
             offsetFromUTable,
sl@0
   267
             offsetFromUBytes,
sl@0
   268
             flags,
sl@0
   269
             fromUBytesLength;
sl@0
   270
} _MBCSHeader;
sl@0
   271
sl@0
   272
/*
sl@0
   273
 * This is a simple version of _MBCSGetNextUChar() that is used
sl@0
   274
 * by other converter implementations.
sl@0
   275
 * It only returns an "assigned" result if it consumes the entire input.
sl@0
   276
 * It does not use state from the converter, nor error codes.
sl@0
   277
 * It does not handle the EBCDIC swaplfnl option (set in UConverter).
sl@0
   278
 * It handles conversion extensions but not GB 18030.
sl@0
   279
 *
sl@0
   280
 * Return value:
sl@0
   281
 * U+fffe   unassigned
sl@0
   282
 * U+ffff   illegal
sl@0
   283
 * otherwise the Unicode code point
sl@0
   284
 */
sl@0
   285
U_CFUNC UChar32
sl@0
   286
ucnv_MBCSSimpleGetNextUChar(UConverterSharedData *sharedData,
sl@0
   287
                        const char *source, int32_t length,
sl@0
   288
                        UBool useFallback);
sl@0
   289
sl@0
   290
/**
sl@0
   291
 * This version of _MBCSSimpleGetNextUChar() is optimized for single-byte, single-state codepages.
sl@0
   292
 * It does not handle the EBCDIC swaplfnl option (set in UConverter).
sl@0
   293
 * It does not handle conversion extensions (_extToU()).
sl@0
   294
 */
sl@0
   295
U_CFUNC UChar32
sl@0
   296
ucnv_MBCSSingleSimpleGetNextUChar(UConverterSharedData *sharedData,
sl@0
   297
                              uint8_t b, UBool useFallback);
sl@0
   298
sl@0
   299
/**
sl@0
   300
 * This macro version of _MBCSSingleSimpleGetNextUChar() gets a code point from a byte.
sl@0
   301
 * It works for single-byte, single-state codepages that only map
sl@0
   302
 * to and from BMP code points, and it always
sl@0
   303
 * returns fallback values.
sl@0
   304
 */
sl@0
   305
#define _MBCS_SINGLE_SIMPLE_GET_NEXT_BMP(sharedData, b) \
sl@0
   306
    (UChar)MBCS_ENTRY_FINAL_VALUE_16((sharedData)->mbcs.stateTable[0][(uint8_t)(b)])
sl@0
   307
sl@0
   308
/**
sl@0
   309
 * This is an internal function that allows other converter implementations
sl@0
   310
 * to check whether a byte is a lead byte.
sl@0
   311
 */
sl@0
   312
U_CFUNC UBool
sl@0
   313
ucnv_MBCSIsLeadByte(UConverterSharedData *sharedData, char byte);
sl@0
   314
sl@0
   315
/** This is a macro version of _MBCSIsLeadByte(). */
sl@0
   316
#define _MBCS_IS_LEAD_BYTE(sharedData, byte) \
sl@0
   317
    (UBool)MBCS_ENTRY_IS_TRANSITION((sharedData)->mbcs.stateTable[0][(uint8_t)(byte)])
sl@0
   318
sl@0
   319
/*
sl@0
   320
 * This is another simple conversion function for internal use by other
sl@0
   321
 * conversion implementations.
sl@0
   322
 * It does not use the converter state nor call callbacks.
sl@0
   323
 * It does not handle the EBCDIC swaplfnl option (set in UConverter).
sl@0
   324
 * It handles conversion extensions but not GB 18030.
sl@0
   325
 *
sl@0
   326
 * It converts one single Unicode code point into codepage bytes, encoded
sl@0
   327
 * as one 32-bit value. The function returns the number of bytes in *pValue:
sl@0
   328
 * 1..4 the number of bytes in *pValue
sl@0
   329
 * 0    unassigned (*pValue undefined)
sl@0
   330
 * -1   illegal (currently not used, *pValue undefined)
sl@0
   331
 *
sl@0
   332
 * *pValue will contain the resulting bytes with the last byte in bits 7..0,
sl@0
   333
 * the second to last byte in bits 15..8, etc.
sl@0
   334
 * Currently, the function assumes but does not check that 0<=c<=0x10ffff.
sl@0
   335
 */
sl@0
   336
U_CFUNC int32_t
sl@0
   337
ucnv_MBCSFromUChar32(UConverterSharedData *sharedData,
sl@0
   338
                 UChar32 c, uint32_t *pValue,
sl@0
   339
                 UBool useFallback);
sl@0
   340
sl@0
   341
/**
sl@0
   342
 * This version of _MBCSFromUChar32() is optimized for single-byte codepages.
sl@0
   343
 * It does not handle the EBCDIC swaplfnl option (set in UConverter).
sl@0
   344
 *
sl@0
   345
 * It returns the codepage byte for the code point, or -1 if it is unassigned.
sl@0
   346
 */
sl@0
   347
U_CFUNC int32_t
sl@0
   348
ucnv_MBCSSingleFromUChar32(UConverterSharedData *sharedData,
sl@0
   349
                       UChar32 c,
sl@0
   350
                       UBool useFallback);
sl@0
   351
sl@0
   352
/**
sl@0
   353
 * SBCS, DBCS, and EBCDIC_STATEFUL are replaced by MBCS, but
sl@0
   354
 * we cheat a little about the type, returning the old types if appropriate.
sl@0
   355
 */
sl@0
   356
U_CFUNC UConverterType
sl@0
   357
ucnv_MBCSGetType(const UConverter* converter);
sl@0
   358
sl@0
   359
U_CFUNC void 
sl@0
   360
ucnv_MBCSFromUnicodeWithOffsets(UConverterFromUnicodeArgs *pArgs,
sl@0
   361
                            UErrorCode *pErrorCode);
sl@0
   362
U_CFUNC void 
sl@0
   363
ucnv_MBCSToUnicodeWithOffsets(UConverterToUnicodeArgs *pArgs,
sl@0
   364
                          UErrorCode *pErrorCode);
sl@0
   365
sl@0
   366
/*
sl@0
   367
 * Internal function returning a UnicodeSet for toUnicode() conversion.
sl@0
   368
 * Currently only used for ISO-2022-CN, and only handles roundtrip mappings.
sl@0
   369
 * In the future, if we add support for reverse-fallback sets, this function
sl@0
   370
 * needs to be updated, and called for each initial state.
sl@0
   371
 * Does not currently handle extensions.
sl@0
   372
 * Does not empty the set first.
sl@0
   373
 */
sl@0
   374
U_CFUNC void
sl@0
   375
ucnv_MBCSGetUnicodeSetForBytes(const UConverterSharedData *sharedData,
sl@0
   376
                           const USetAdder *sa,
sl@0
   377
                           UConverterUnicodeSet which,
sl@0
   378
                           uint8_t state, int32_t lowByte, int32_t highByte,
sl@0
   379
                           UErrorCode *pErrorCode);
sl@0
   380
sl@0
   381
/*
sl@0
   382
 * Internal function returning a UnicodeSet for toUnicode() conversion.
sl@0
   383
 * Currently only used for ISO-2022-CN, and only handles roundtrip mappings.
sl@0
   384
 * In the future, if we add support for fallback sets, this function
sl@0
   385
 * needs to be updated.
sl@0
   386
 * Handles extensions.
sl@0
   387
 * Does not empty the set first.
sl@0
   388
 */
sl@0
   389
U_CFUNC void
sl@0
   390
ucnv_MBCSGetUnicodeSetForUnicode(const UConverterSharedData *sharedData,
sl@0
   391
                             const USetAdder *sa,
sl@0
   392
                             UConverterUnicodeSet which,
sl@0
   393
                             UErrorCode *pErrorCode);
sl@0
   394
sl@0
   395
#endif
sl@0
   396
sl@0
   397
#endif