Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(20)

Side by Side Diff: third_party/icu38/source/common/ucnv_bld.c

Issue 52030: Apply ICU patches for ICU tickets 6175 (ISO-2022 and ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « third_party/icu38/source/common/ucnv_bld.h ('k') | third_party/icu38/source/common/ucnv_ext.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 ******************************************************************** 2 ********************************************************************
3 * COPYRIGHT: 3 * COPYRIGHT:
4 * Copyright (c) 1996-2007, International Business Machines Corporation and 4 * Copyright (c) 1996-2007, International Business Machines Corporation and
5 * others. All Rights Reserved. 5 * others. All Rights Reserved.
6 ******************************************************************** 6 ********************************************************************
7 * 7 *
8 * uconv_bld.c: 8 * uconv_bld.c:
9 * 9 *
10 * Defines functions that are used in the creation/initialization/deletion 10 * Defines functions that are used in the creation/initialization/deletion
(...skipping 914 matching lines...) Expand 10 before | Expand all | Expand 10 after
925 myUConverter->options = options; 925 myUConverter->options = options;
926 myUConverter->preFromUFirstCP = U_SENTINEL; 926 myUConverter->preFromUFirstCP = U_SENTINEL;
927 myUConverter->fromCharErrorBehaviour = UCNV_TO_U_DEFAULT_CALLBACK; 927 myUConverter->fromCharErrorBehaviour = UCNV_TO_U_DEFAULT_CALLBACK;
928 myUConverter->fromUCharErrorBehaviour = UCNV_FROM_U_DEFAULT_CALLBACK; 928 myUConverter->fromUCharErrorBehaviour = UCNV_FROM_U_DEFAULT_CALLBACK;
929 myUConverter->toUnicodeStatus = mySharedConverterData->toUnicodeStatus; 929 myUConverter->toUnicodeStatus = mySharedConverterData->toUnicodeStatus;
930 myUConverter->maxBytesPerUChar = mySharedConverterData->staticData->maxBytes PerChar; 930 myUConverter->maxBytesPerUChar = mySharedConverterData->staticData->maxBytes PerChar;
931 myUConverter->subChar1 = mySharedConverterData->staticData->subChar1; 931 myUConverter->subChar1 = mySharedConverterData->staticData->subChar1;
932 myUConverter->subCharLen = mySharedConverterData->staticData->subCharLen; 932 myUConverter->subCharLen = mySharedConverterData->staticData->subCharLen;
933 myUConverter->subChars = (uint8_t *)myUConverter->subUChars; 933 myUConverter->subChars = (uint8_t *)myUConverter->subUChars;
934 uprv_memcpy(myUConverter->subChars, mySharedConverterData->staticData->subCh ar, myUConverter->subCharLen); 934 uprv_memcpy(myUConverter->subChars, mySharedConverterData->staticData->subCh ar, myUConverter->subCharLen);
935 myUConverter->toUCallbackReason = UCNV_ILLEGAL; /* default reason to invoke (*fromCharErrorBehaviour) */
935 936
936 if(mySharedConverterData->impl->open != NULL) { 937 if(mySharedConverterData->impl->open != NULL) {
937 mySharedConverterData->impl->open(myUConverter, realName, locale, option s, err); 938 mySharedConverterData->impl->open(myUConverter, realName, locale, option s, err);
938 if(U_FAILURE(*err)) { 939 if(U_FAILURE(*err)) {
939 ucnv_close(myUConverter); 940 ucnv_close(myUConverter);
940 return NULL; 941 return NULL;
941 } 942 }
942 } 943 }
943 944
944 return myUConverter; 945 return myUConverter;
(...skipping 629 matching lines...) Expand 10 before | Expand all | Expand 10 after
1574 *pErrorCode=U_UNSUPPORTED_ERROR; 1575 *pErrorCode=U_UNSUPPORTED_ERROR;
1575 return 0; 1576 return 0;
1576 } 1577 }
1577 1578
1578 return headerSize+(int32_t)staticDataSize+size; 1579 return headerSize+(int32_t)staticDataSize+size;
1579 } 1580 }
1580 1581
1581 #endif /* #if !UCONFIG_NO_LEGACY_CONVERSION */ 1582 #endif /* #if !UCONFIG_NO_LEGACY_CONVERSION */
1582 1583
1583 #endif 1584 #endif
OLDNEW
« no previous file with comments | « third_party/icu38/source/common/ucnv_bld.h ('k') | third_party/icu38/source/common/ucnv_ext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698