Searched refs:pBiDi (Results 1 – 6 of 6) sorted by relevance
/external/icu4c/common/ |
D | ubidi.c | 127 UBiDi *pBiDi; in ubidi_openSized() local 138 pBiDi=(UBiDi *)uprv_malloc(sizeof(UBiDi)); in ubidi_openSized() 139 if(pBiDi==NULL) { in ubidi_openSized() 145 uprv_memset(pBiDi, 0, sizeof(UBiDi)); in ubidi_openSized() 148 pBiDi->bdp=ubidi_getSingleton(); in ubidi_openSized() 152 if( !getInitialDirPropsMemory(pBiDi, maxLength) || in ubidi_openSized() 153 !getInitialLevelsMemory(pBiDi, maxLength) in ubidi_openSized() 158 pBiDi->mayAllocateText=TRUE; in ubidi_openSized() 164 pBiDi->runsSize=sizeof(Run); in ubidi_openSized() 165 } else if(!getInitialRunsMemory(pBiDi, maxRunCount)) { in ubidi_openSized() [all …]
|
D | ubidiln.c | 90 setTrailingWSStart(UBiDi *pBiDi) { in setTrailingWSStart() argument 93 const DirProp *dirProps=pBiDi->dirProps; in setTrailingWSStart() 94 UBiDiLevel *levels=pBiDi->levels; in setTrailingWSStart() 95 int32_t start=pBiDi->length; in setTrailingWSStart() 96 UBiDiLevel paraLevel=pBiDi->paraLevel; in setTrailingWSStart() 105 pBiDi->trailingWSStart=start; /* currently == pBiDi->length */ in setTrailingWSStart() 118 pBiDi->trailingWSStart=start; in setTrailingWSStart() 249 ubidi_getLevelAt(const UBiDi *pBiDi, int32_t charIndex) { in ubidi_getLevelAt() argument 251 if(!IS_VALID_PARA_OR_LINE(pBiDi) || charIndex<0 || pBiDi->length<=charIndex) { in ubidi_getLevelAt() 253 } else if(pBiDi->direction!=UBIDI_MIXED || charIndex>=pBiDi->trailingWSStart) { in ubidi_getLevelAt() [all …]
|
D | ubidiimp.h | 157 ubidi_getRuns(UBiDi *pBiDi, UErrorCode *pErrorCode); 360 #define getDirPropsMemory(pBiDi, length) \ argument 361 … ubidi_getMemory((BidiMemoryForAllocation *)&(pBiDi)->dirPropsMemory, &(pBiDi)->dirPropsSize, \ 362 (pBiDi)->mayAllocateText, (length)) 364 #define getLevelsMemory(pBiDi, length) \ argument 365 ubidi_getMemory((BidiMemoryForAllocation *)&(pBiDi)->levelsMemory, &(pBiDi)->levelsSize, \ 366 (pBiDi)->mayAllocateText, (length)) 368 #define getRunsMemory(pBiDi, length) \ argument 369 ubidi_getMemory((BidiMemoryForAllocation *)&(pBiDi)->runsMemory, &(pBiDi)->runsSize, \ 370 (pBiDi)->mayAllocateRuns, (length)*sizeof(Run)) [all …]
|
D | ubidiwrt.c | 352 ubidi_writeReordered(UBiDi *pBiDi, in ubidi_writeReordered() argument 366 if( pBiDi==NULL || in ubidi_writeReordered() 367 (text=pBiDi->text)==NULL || (length=pBiDi->length)<0 || in ubidi_writeReordered() 377 (dest>=text && dest<text+pBiDi->originalLength))) in ubidi_writeReordered() 388 runCount=ubidi_countRuns(pBiDi, pErrorCode); in ubidi_writeReordered() 401 if(pBiDi->reorderingOptions & UBIDI_OPTION_INSERT_MARKS) { in ubidi_writeReordered() 409 if(pBiDi->reorderingOptions & UBIDI_OPTION_REMOVE_CONTROLS) { in ubidi_writeReordered() 417 if((pBiDi->reorderingMode != UBIDI_REORDER_INVERSE_NUMBERS_AS_L) && in ubidi_writeReordered() 418 (pBiDi->reorderingMode != UBIDI_REORDER_INVERSE_LIKE_DIRECT) && in ubidi_writeReordered() 419 (pBiDi->reorderingMode != UBIDI_REORDER_INVERSE_FOR_NUMBERS_SPECIAL) && in ubidi_writeReordered() [all …]
|
/external/icu4c/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/icu4c/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, 86 static const char* inverseBasic(UBiDi *pBiDi, const char *src, int32_t srcLen, 88 static UBool assertRoundTrip(UBiDi *pBiDi, int32_t tc, int32_t outIndex, 92 static UBool checkResultLength(UBiDi *pBiDi, const char *srcChars, 96 static UBool checkMaps(UBiDi *pBiDi, int32_t stringIndex, const char *src, 155 UBiDi *pBiDi, *pLine=NULL; in testBidi() local [all …]
|