epoc32/include/charconv.h
branchSymbian3
changeset 4 837f303aceeb
parent 2 2fe1408b6811
equal deleted inserted replaced
3:e1b950c65cb4 4:837f303aceeb
     1 // Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 /*
     2 // All rights reserved.
     2 * Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
     3 // This component and the accompanying materials are made available
     3 * All rights reserved.
     4 // under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
     4 * This component and the accompanying materials are made available
     5 // which accompanies this distribution, and is available
     5 * under the terms of "Eclipse Public License v1.0"
     6 // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
     6 * which accompanies this distribution, and is available
     7 //
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     8 // Initial Contributors:
     8 *
     9 // Nokia Corporation - initial contribution.
     9 * Initial Contributors:
    10 //
    10 * Nokia Corporation - initial contribution.
    11 // Contributors:
    11 *
    12 //
    12 * Contributors:
    13 // Description:
    13 *
    14 //
    14 * Description: 
       
    15 *
       
    16 */
       
    17 
    15 
    18 
    16 #if !defined(__CHARCONV_H__)
    19 #if !defined(__CHARCONV_H__)
    17 #define __CHARCONV_H__
    20 #define __CHARCONV_H__
    18 
    21 
    19 #if !defined(__E32STD_H__)
    22 #if !defined(__E32STD_H__)
   175 @publishedAll
   178 @publishedAll
   176 @released
   179 @released
   177 */
   180 */
   178 const TUint KCharacterSetIdentifierGbk=0x10003ecb;
   181 const TUint KCharacterSetIdentifierGbk=0x10003ecb;
   179 /** 
   182 /** 
       
   183 GB18030
       
   184 @publishedAll
       
   185 @released
       
   186 */
       
   187 const TUint KCharacterSetIdentifierGb18030=0x10287038;
       
   188 /** 
   180 Big 5 
   189 Big 5 
   181 @publishedAll
   190 @publishedAll
   182 @released
   191 @released
   183 */
   192 */
   184 const TUint KCharacterSetIdentifierBig5=0x10000fbf;
   193 const TUint KCharacterSetIdentifierBig5=0x10000fbf;
   226 */
   235 */
   227 const TUint KCharacterSetIdentifierCP850=0x102825AD;
   236 const TUint KCharacterSetIdentifierCP850=0x102825AD;
   228 
   237 
   229 const TUint KCharacterSetIdentifierUnicodeLittle=0x101f3fae;  //Little Endian Unicode
   238 const TUint KCharacterSetIdentifierUnicodeLittle=0x101f3fae;  //Little Endian Unicode
   230 const TUint KCharacterSetIdentifierUnicodeBig=0x101f4052; // Big Endian Unicode 
   239 const TUint KCharacterSetIdentifierUnicodeBig=0x101f4052; // Big Endian Unicode 
   231 const TUint KCharacterSetIdentifierUcs2=0x101ff492;
   240 const TUint KCharacterSetIdentifierUcs2=0x101ff492; 
   232 
   241 
   233 /** 
   242 
   234 Extended SMS 7-bit (not supported before v9.5) 
   243 /** 
       
   244 Extended SMS 7-bit 
   235 @publishedAll
   245 @publishedAll
   236 @released
   246 @released
   237 */
   247 */
   238 const TUint KCharacterSetIdentifierExtendedSms7Bit=0x102863FD;
   248 const TUint KCharacterSetIdentifierExtendedSms7Bit=0x102863FD;
   239 
   249 
   259 Spanish
   269 Spanish
   260 @publishedAll
   270 @publishedAll
   261 @released
   271 @released
   262 */
   272 */
   263 const TUint KCharacterSetIdentifierSpanishSingleSms7Bit=0x1028640A;
   273 const TUint KCharacterSetIdentifierSpanishSingleSms7Bit=0x1028640A;
   264  
   274 
       
   275 
       
   276 /**
       
   277 code page 949
       
   278 @publishedAll
       
   279 @released
       
   280 */
       
   281 const TUint KCharacterSetIdentifierCP949=0x200100FF;
       
   282 
       
   283 /**
       
   284 Shift-JIS with Pictograph
       
   285 @publishedAll
       
   286 @released 
       
   287 */
       
   288 const TUint KCharacterSetIdentifierShiftJisDirectmap=0x101F8691;
       
   289 
       
   290 /**
       
   291 EUC-JP with direct mapped pictograph
       
   292 @publishedAll
       
   293 @released 
       
   294 */
       
   295 const TUint KCharacterSetIdentifierEucJpDirectmap=0x101F86A6;
       
   296 
       
   297 /**
       
   298 EUC-KR 
       
   299 @publishedAll
       
   300 @released
       
   301 */
       
   302 const TUint KCharacterSetIdentifierEUCKR=0x2000E526;
       
   303 
       
   304 /**
       
   305 iscii 
       
   306 @publishedAll
       
   307 @released
       
   308 */
       
   309 const TUint KCharacterSetIdentifierIscii=0x1027508E;
       
   310 
       
   311 /**
       
   312 ISO2022 Korean
       
   313 @publishedAll
       
   314 @released
       
   315 */
       
   316 const TUint KCharacterSetIdentifierIso2022kr=0x20010101;
       
   317 
       
   318 /**
       
   319 KOI8-R Russian
       
   320 @publishedAll
       
   321 @released
       
   322 */
       
   323 const TUint KCharacterSetIdentifierKOI8R=0x101F8778;
       
   324 
       
   325 /**
       
   326 KOI8-U Belorusian/Ukrainian Cyrillic
       
   327 @publishedAll
       
   328 @released 
       
   329 */
       
   330 const TUint KCharacterSetIdentifierKOI8U=0x101F8761;
       
   331 
       
   332 /**
       
   333 KSC5601 Korean
       
   334 @publishedAll
       
   335 @released 
       
   336 */
       
   337 const TUint KCharacterSetIdentifierKsc5601=0x200113CD;
       
   338 
       
   339 /**
       
   340 TIS_620 Thai
       
   341 @publishedAll
       
   342 @released 
       
   343 */
       
   344 const TUint KCharacterSetIdentifierTIS_620=0x101F8549;
       
   345 
       
   346 /**
       
   347 Code page 874 Thai
       
   348 @publishedAll
       
   349 @released 
       
   350 */
       
   351 const TUint KCharacterSetIdentifierWin874=0x101F854A;
       
   352 
       
   353 /**
       
   354 Code page 1250 Eastern European
       
   355 @publishedAll
       
   356 @released 
       
   357 */
       
   358 const TUint KCharacterSetIdentifierWin1250=0x100059D6;
       
   359 
       
   360 /**
       
   361 Code page 1251 Cyrillic
       
   362 @publishedAll
       
   363 @released 
       
   364 */
       
   365 const TUint KCharacterSetIdentifierWin1251=0x100059D7;
       
   366 
       
   367 /**
       
   368 Code page 1253 Greek
       
   369 @publishedAll
       
   370 @released 
       
   371 */
       
   372 const TUint KCharacterSetIdentifierWin1253=0x100059D8;
       
   373 
       
   374 /**
       
   375 Code page 1254 Turkish
       
   376 @publishedAll
       
   377 @released 
       
   378 */
       
   379 const TUint KCharacterSetIdentifierWin1254=0x100059D9;
       
   380 
       
   381 /**
       
   382 Code page 1255 Hebrew
       
   383 @publishedAll
       
   384 @released 
       
   385 */
       
   386 const TUint KCharacterSetIdentifierWin1255=0x101F8547;
       
   387 
       
   388 /**
       
   389 Code page 1256 Arabic
       
   390 @publishedAll
       
   391 @released 
       
   392 */
       
   393 const TUint KCharacterSetIdentifierWin1256=0x101F8548;
       
   394 
       
   395 /**
       
   396 Code page 1257 Baltic
       
   397 @publishedAll
       
   398 @released 
       
   399 */
       
   400 const TUint KCharacterSetIdentifierWin1257=0x100059DA;
       
   401 
       
   402 /**
       
   403 Windows-1258
       
   404 @publishedAll
       
   405 @released
       
   406 */ 
       
   407 const TUint KCharacterSetIdentifierWin1258=0x102073B8;
       
   408 
   265 // note that other character sets than those listed above may be available at run-time, and also that none of the above are necessarily available at run-time
   409 // note that other character sets than those listed above may be available at run-time, and also that none of the above are necessarily available at run-time
   266 
   410 
   267 struct SCnvConversionData;
   411 struct SCnvConversionData;
   268 class CDeepDestructingArrayOfCharactersSets;
   412 class CDeepDestructingArrayOfCharactersSets;
   269 class CFileReader;
   413 class CFileReader;
   308 @released
   452 @released
   309 */
   453 */
   310 class CCnvCharacterSetConverter : public CBase
   454 class CCnvCharacterSetConverter : public CBase
   311 	{
   455 	{
   312 public:
   456 public:
   313 	/** Indicates whether a character set is available or unavailable 
   457 	/** Indicates whether a character set is available or unavailable
   314 	for conversion. Used by the second overload of 
   458 	for conversion. Used by the second overload of 
   315 	PrepareToConvertToOrFromL(). */
   459 	PrepareToConvertToOrFromL(). */
   316 	enum TAvailability
   460 	enum TAvailability
   317 		{
   461 		{
   318 		/** The requested character set can be converted. */
   462 		/** The requested character set can be converted. */
   600 	const SCnvConversionData* iConversionData;
   744 	const SCnvConversionData* iConversionData;
   601 	TEndianness iDefaultEndiannessOfForeignCharacters;
   745 	TEndianness iDefaultEndiannessOfForeignCharacters;
   602 	TDowngradeForExoticLineTerminatingCharacters iDowngradeForExoticLineTerminatingCharacters;
   746 	TDowngradeForExoticLineTerminatingCharacters iDowngradeForExoticLineTerminatingCharacters;
   603 	TBuf8<KMaximumLengthOfReplacementForUnconvertibleUnicodeCharacters> iReplacementForUnconvertibleUnicodeCharacters;
   747 	TBuf8<KMaximumLengthOfReplacementForUnconvertibleUnicodeCharacters> iReplacementForUnconvertibleUnicodeCharacters;
   604 	CStandardNamesAndMibEnums* iStandardNamesAndMibEnums;
   748 	CStandardNamesAndMibEnums* iStandardNamesAndMibEnums;
   605 	TBool iFullyConstructed;
   749 	TBool iTlsDataConstructed;
   606 	CCharsetCnvCache* iCharsetCnvCache;
   750 	CCharsetCnvCache* iCharsetCnvCache;
   607 	TBool iIsSystemStandardNamesAndMibEnumsScanned;
   751 	TBool iIsSystemStandardNamesAndMibEnumsScanned;
   608 	};
   752 	};
   609 
   753 
   610 #endif
   754 #endif
       
   755