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

Side by Side Diff: source/test/cintltst/cbiditst.c

Issue 1621843002: ICU 56 update step 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/icu.git@561
Patch Set: Created 4 years, 11 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
« no previous file with comments | « source/test/cintltst/cbiapts.c ('k') | source/test/cintltst/ccapitst.c » ('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 * COPYRIGHT: 2 * COPYRIGHT:
3 * Copyright (c) 1997-2014, International Business Machines Corporation and 3 * Copyright (c) 1997-2014, International Business Machines Corporation and
4 * others. All Rights Reserved. 4 * others. All Rights Reserved.
5 ********************************************************************/ 5 ********************************************************************/
6 /* file name: cbiditst.c 6 /* file name: cbiditst.c
7 * encoding: US-ASCII 7 * encoding: US-ASCII
8 * tab size: 8 (not used) 8 * tab size: 8 (not used)
9 * indentation:4 9 * indentation:4
10 * 10 *
(...skipping 4358 matching lines...) Expand 10 before | Expand all | Expand 10 after
4369 4369
4370 log_verbose("\nExiting TestReorderingMode\n\n"); 4370 log_verbose("\nExiting TestReorderingMode\n\n");
4371 } 4371 }
4372 4372
4373 static const char* inverseBasic(UBiDi *pBiDi, const char *srcChars, int32_t srcL en, 4373 static const char* inverseBasic(UBiDi *pBiDi, const char *srcChars, int32_t srcL en,
4374 uint32_t option, UBiDiLevel level, char *result) { 4374 uint32_t option, UBiDiLevel level, char *result) {
4375 UErrorCode rc = U_ZERO_ERROR; 4375 UErrorCode rc = U_ZERO_ERROR;
4376 int32_t destLen; 4376 int32_t destLen;
4377 UChar src[MAXLEN], dest2[MAXLEN]; 4377 UChar src[MAXLEN], dest2[MAXLEN];
4378 4378
4379 if (pBiDi == NULL || src == NULL) { 4379 if (pBiDi == NULL || srcChars == NULL) {
4380 return NULL; 4380 return NULL;
4381 } 4381 }
4382 ubidi_setReorderingOptions(pBiDi, option); 4382 ubidi_setReorderingOptions(pBiDi, option);
4383 pseudoToU16(srcLen, srcChars, src); 4383 pseudoToU16(srcLen, srcChars, src);
4384 ubidi_setPara(pBiDi, src, srcLen, level, NULL, &rc); 4384 ubidi_setPara(pBiDi, src, srcLen, level, NULL, &rc);
4385 assertSuccessful("ubidi_setPara", &rc); 4385 assertSuccessful("ubidi_setPara", &rc);
4386 4386
4387 *dest2 = 0; 4387 *dest2 = 0;
4388 destLen = ubidi_writeReordered(pBiDi, dest2, MAXLEN, 4388 destLen = ubidi_writeReordered(pBiDi, dest2, MAXLEN,
4389 UBIDI_DO_MIRRORING, &rc); 4389 UBIDI_DO_MIRRORING, &rc);
(...skipping 523 matching lines...) Expand 10 before | Expand all | Expand 10 after
4913 len = uprv_strlen(TEXT); 4913 len = uprv_strlen(TEXT);
4914 pseudoToU16(len, TEXT, src); 4914 pseudoToU16(len, TEXT, src);
4915 ubidi_setPara(bidi, src, len, UBIDI_DEFAULT_LTR , NULL, &status); 4915 ubidi_setPara(bidi, src, len, UBIDI_DEFAULT_LTR , NULL, &status);
4916 if (U_FAILURE(status)) { 4916 if (U_FAILURE(status)) {
4917 log_err("setPara failed with heavily nested brackets - %s", u_errorName( status)); 4917 log_err("setPara failed with heavily nested brackets - %s", u_errorName( status));
4918 } 4918 }
4919 4919
4920 ubidi_close(bidi); 4920 ubidi_close(bidi);
4921 } 4921 }
4922 4922
OLDNEW
« no previous file with comments | « source/test/cintltst/cbiapts.c ('k') | source/test/cintltst/ccapitst.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698