/external/icu/icu4c/source/common/ |
D | ubidi.c | 133 UBiDi *pBiDi; in ubidi_openSized() local 144 pBiDi=(UBiDi *)uprv_malloc(sizeof(UBiDi)); in ubidi_openSized() 145 if(pBiDi==NULL) { in ubidi_openSized() 151 uprv_memset(pBiDi, 0, sizeof(UBiDi)); in ubidi_openSized() 154 pBiDi->bdp=ubidi_getSingleton(); in ubidi_openSized() 158 if( !getInitialDirPropsMemory(pBiDi, maxLength) || in ubidi_openSized() 159 !getInitialLevelsMemory(pBiDi, maxLength) in ubidi_openSized() 164 pBiDi->mayAllocateText=TRUE; in ubidi_openSized() 170 pBiDi->runsSize=sizeof(Run); in ubidi_openSized() 171 } else if(!getInitialRunsMemory(pBiDi, maxRunCount)) { in ubidi_openSized() [all …]
|
D | ubidiln.c | 94 setTrailingWSStart(UBiDi *pBiDi) { in setTrailingWSStart() argument 97 const DirProp *dirProps=pBiDi->dirProps; in setTrailingWSStart() 98 UBiDiLevel *levels=pBiDi->levels; in setTrailingWSStart() 99 int32_t start=pBiDi->length; in setTrailingWSStart() 100 UBiDiLevel paraLevel=pBiDi->paraLevel; in setTrailingWSStart() 109 pBiDi->trailingWSStart=start; /* currently == pBiDi->length */ in setTrailingWSStart() 122 pBiDi->trailingWSStart=start; in setTrailingWSStart() 253 ubidi_getLevelAt(const UBiDi *pBiDi, int32_t charIndex) { in ubidi_getLevelAt() argument 255 if(!IS_VALID_PARA_OR_LINE(pBiDi) || charIndex<0 || pBiDi->length<=charIndex) { in ubidi_getLevelAt() 257 } else if(pBiDi->direction!=UBIDI_MIXED || charIndex>=pBiDi->trailingWSStart) { in ubidi_getLevelAt() [all …]
|
D | ubidiimp.h | 118 ubidi_getParaLevelAtIndex(const UBiDi *pBiDi, int32_t index); 172 UBiDi *pBiDi; member 211 ubidi_getRuns(UBiDi *pBiDi, UErrorCode *pErrorCode); 433 #define getDirPropsMemory(pBiDi, length) \ argument 434 … ubidi_getMemory((BidiMemoryForAllocation *)&(pBiDi)->dirPropsMemory, &(pBiDi)->dirPropsSize, \ 435 (pBiDi)->mayAllocateText, (length)) 437 #define getLevelsMemory(pBiDi, length) \ argument 438 ubidi_getMemory((BidiMemoryForAllocation *)&(pBiDi)->levelsMemory, &(pBiDi)->levelsSize, \ 439 (pBiDi)->mayAllocateText, (length)) 441 #define getRunsMemory(pBiDi, length) \ argument [all …]
|
D | ubidiwrt.c | 353 ubidi_writeReordered(UBiDi *pBiDi, in ubidi_writeReordered() argument 367 if( pBiDi==NULL || in ubidi_writeReordered() 368 (text=pBiDi->text)==NULL || (length=pBiDi->length)<0 || in ubidi_writeReordered() 378 (dest>=text && dest<text+pBiDi->originalLength))) in ubidi_writeReordered() 389 runCount=ubidi_countRuns(pBiDi, pErrorCode); in ubidi_writeReordered() 402 if(pBiDi->reorderingOptions & UBIDI_OPTION_INSERT_MARKS) { in ubidi_writeReordered() 410 if(pBiDi->reorderingOptions & UBIDI_OPTION_REMOVE_CONTROLS) { in ubidi_writeReordered() 418 if((pBiDi->reorderingMode != UBIDI_REORDER_INVERSE_NUMBERS_AS_L) && in ubidi_writeReordered() 419 (pBiDi->reorderingMode != UBIDI_REORDER_INVERSE_LIKE_DIRECT) && in ubidi_writeReordered() 420 (pBiDi->reorderingMode != UBIDI_REORDER_INVERSE_FOR_NUMBERS_SPECIAL) && in ubidi_writeReordered() [all …]
|
/external/chromium_org/third_party/icu/source/common/ |
D | ubidi.c | 133 UBiDi *pBiDi; in ubidi_openSized() local 144 pBiDi=(UBiDi *)uprv_malloc(sizeof(UBiDi)); in ubidi_openSized() 145 if(pBiDi==NULL) { in ubidi_openSized() 151 uprv_memset(pBiDi, 0, sizeof(UBiDi)); in ubidi_openSized() 154 pBiDi->bdp=ubidi_getSingleton(); in ubidi_openSized() 158 if( !getInitialDirPropsMemory(pBiDi, maxLength) || in ubidi_openSized() 159 !getInitialLevelsMemory(pBiDi, maxLength) in ubidi_openSized() 164 pBiDi->mayAllocateText=TRUE; in ubidi_openSized() 170 pBiDi->runsSize=sizeof(Run); in ubidi_openSized() 171 } else if(!getInitialRunsMemory(pBiDi, maxRunCount)) { in ubidi_openSized() [all …]
|
D | ubidiln.c | 94 setTrailingWSStart(UBiDi *pBiDi) { in setTrailingWSStart() argument 97 const DirProp *dirProps=pBiDi->dirProps; in setTrailingWSStart() 98 UBiDiLevel *levels=pBiDi->levels; in setTrailingWSStart() 99 int32_t start=pBiDi->length; in setTrailingWSStart() 100 UBiDiLevel paraLevel=pBiDi->paraLevel; in setTrailingWSStart() 109 pBiDi->trailingWSStart=start; /* currently == pBiDi->length */ in setTrailingWSStart() 122 pBiDi->trailingWSStart=start; in setTrailingWSStart() 253 ubidi_getLevelAt(const UBiDi *pBiDi, int32_t charIndex) { in ubidi_getLevelAt() argument 255 if(!IS_VALID_PARA_OR_LINE(pBiDi) || charIndex<0 || pBiDi->length<=charIndex) { in ubidi_getLevelAt() 257 } else if(pBiDi->direction!=UBIDI_MIXED || charIndex>=pBiDi->trailingWSStart) { in ubidi_getLevelAt() [all …]
|
D | ubidiimp.h | 127 ubidi_getParaLevelAtIndex(const UBiDi *pBiDi, int32_t index); 182 UBiDi *pBiDi; member 220 ubidi_getRuns(UBiDi *pBiDi, UErrorCode *pErrorCode); 442 #define getDirPropsMemory(pBiDi, length) \ argument 443 … ubidi_getMemory((BidiMemoryForAllocation *)&(pBiDi)->dirPropsMemory, &(pBiDi)->dirPropsSize, \ 444 (pBiDi)->mayAllocateText, (length)) 446 #define getLevelsMemory(pBiDi, length) \ argument 447 ubidi_getMemory((BidiMemoryForAllocation *)&(pBiDi)->levelsMemory, &(pBiDi)->levelsSize, \ 448 (pBiDi)->mayAllocateText, (length)) 450 #define getRunsMemory(pBiDi, length) \ argument [all …]
|
D | ubidiwrt.c | 353 ubidi_writeReordered(UBiDi *pBiDi, in ubidi_writeReordered() argument 367 if( pBiDi==NULL || in ubidi_writeReordered() 368 (text=pBiDi->text)==NULL || (length=pBiDi->length)<0 || in ubidi_writeReordered() 378 (dest>=text && dest<text+pBiDi->originalLength))) in ubidi_writeReordered() 389 runCount=ubidi_countRuns(pBiDi, pErrorCode); in ubidi_writeReordered() 402 if(pBiDi->reorderingOptions & UBIDI_OPTION_INSERT_MARKS) { in ubidi_writeReordered() 410 if(pBiDi->reorderingOptions & UBIDI_OPTION_REMOVE_CONTROLS) { in ubidi_writeReordered() 418 if((pBiDi->reorderingMode != UBIDI_REORDER_INVERSE_NUMBERS_AS_L) && in ubidi_writeReordered() 419 (pBiDi->reorderingMode != UBIDI_REORDER_INVERSE_LIKE_DIRECT) && in ubidi_writeReordered() 420 (pBiDi->reorderingMode != UBIDI_REORDER_INVERSE_FOR_NUMBERS_SPECIAL) && in ubidi_writeReordered() [all …]
|
/external/icu/icu4c/source/common/unicode/ |
D | ubidi.h | 552 ubidi_close(UBiDi *pBiDi); 622 ubidi_setInverse(UBiDi *pBiDi, UBool isInverse); 641 ubidi_isInverse(UBiDi *pBiDi); 664 ubidi_orderParagraphsLTR(UBiDi *pBiDi, UBool orderParagraphsLTR); 678 ubidi_isOrderParagraphsLTR(UBiDi *pBiDi); 878 ubidi_setReorderingMode(UBiDi *pBiDi, UBiDiReorderingMode reorderingMode); 889 ubidi_getReorderingMode(UBiDi *pBiDi); 1034 ubidi_setReorderingOptions(UBiDi *pBiDi, uint32_t reorderingOptions); 1045 ubidi_getReorderingOptions(UBiDi *pBiDi); 1132 ubidi_setContext(UBiDi *pBiDi, [all …]
|
/external/chromium_org/third_party/icu/source/common/unicode/ |
D | ubidi.h | 552 ubidi_close(UBiDi *pBiDi); 622 ubidi_setInverse(UBiDi *pBiDi, UBool isInverse); 641 ubidi_isInverse(UBiDi *pBiDi); 664 ubidi_orderParagraphsLTR(UBiDi *pBiDi, UBool orderParagraphsLTR); 678 ubidi_isOrderParagraphsLTR(UBiDi *pBiDi); 878 ubidi_setReorderingMode(UBiDi *pBiDi, UBiDiReorderingMode reorderingMode); 889 ubidi_getReorderingMode(UBiDi *pBiDi); 1034 ubidi_setReorderingOptions(UBiDi *pBiDi, uint32_t reorderingOptions); 1045 ubidi_getReorderingOptions(UBiDi *pBiDi); 1132 ubidi_setContext(UBiDi *pBiDi, [all …]
|
/external/chromium_org/third_party/icu/source/test/cintltst/ |
D | cbiditst.c | 37 static void doTests(UBiDi *pBiDi, UBiDi *pLine, UBool countRunsFirst); 41 static void doTest(UBiDi *pBiDi, int testNumber, const BiDiTestData *test, 44 static void _testReordering(UBiDi *pBiDi, int testNumber); 48 static void _testManyInverseBidi(UBiDi *pBiDi, UBiDiLevel direction); 50 static void _testInverseBidi(UBiDi *pBiDi, const UChar *src, int32_t srcLength, 94 static const char* inverseBasic(UBiDi *pBiDi, const char *src, int32_t srcLen, 96 static UBool assertRoundTrip(UBiDi *pBiDi, int32_t tc, int32_t outIndex, 100 static UBool checkResultLength(UBiDi *pBiDi, const char *srcChars, 104 static UBool checkMaps(UBiDi *pBiDi, int32_t stringIndex, const char *src, 167 UBiDi *pBiDi, *pLine=NULL; in testBidi() local [all …]
|
/external/icu/icu4c/source/test/cintltst/ |
D | cbiditst.c | 37 static void doTests(UBiDi *pBiDi, UBiDi *pLine, UBool countRunsFirst); 41 static void doTest(UBiDi *pBiDi, int testNumber, const BiDiTestData *test, 44 static void _testReordering(UBiDi *pBiDi, int testNumber); 48 static void _testManyInverseBidi(UBiDi *pBiDi, UBiDiLevel direction); 50 static void _testInverseBidi(UBiDi *pBiDi, const UChar *src, int32_t srcLength, 96 static const char* inverseBasic(UBiDi *pBiDi, const char *src, int32_t srcLen, 98 static UBool assertRoundTrip(UBiDi *pBiDi, int32_t tc, int32_t outIndex, 102 static UBool checkResultLength(UBiDi *pBiDi, const char *srcChars, 106 static UBool checkMaps(UBiDi *pBiDi, int32_t stringIndex, const char *src, 169 UBiDi *pBiDi, *pLine=NULL; in testBidi() local [all …]
|
/external/chromium_org/third_party/icu/patches/ |
D | bidi.patch | 67 if(pBiDi->openingsMemory) { 68 bd->openings=pBiDi->openingsMemory; 69 - bd->openingsSize=pBiDi->openingsSize; 70 + bd->openingsCount=pBiDi->openingsSize / sizeof(Opening); 76 bd->isNumbersSpecial=bd->pBiDi->reorderingMode==UBIDI_REORDER_NUMBERS_SPECIAL || 77 bd->pBiDi->reorderingMode==UBIDI_REORDER_INVERSE_FOR_NUMBERS_SPECIAL; 84 UBiDi *pBiDi=bd->pBiDi; 85 if(!getInitialOpeningsMemory(pBiDi, pLastIsoRun->limit * 2)) 88 uprv_memcpy(pBiDi->openingsMemory, bd->simpleOpenings, 90 bd->openings=pBiDi->openingsMemory; /* may have changed */ [all …]
|