/third_party/icu/icu4c/source/common/ |
D | ubidi.cpp | 135 UBiDi *pBiDi; in ubidi_openSized() local 146 pBiDi=(UBiDi *)uprv_malloc(sizeof(UBiDi)); in ubidi_openSized() 147 if(pBiDi==NULL) { in ubidi_openSized() 153 uprv_memset(pBiDi, 0, sizeof(UBiDi)); in ubidi_openSized() 157 if( !getInitialDirPropsMemory(pBiDi, maxLength) || in ubidi_openSized() 158 !getInitialLevelsMemory(pBiDi, maxLength) in ubidi_openSized() 163 pBiDi->mayAllocateText=true; in ubidi_openSized() 169 pBiDi->runsSize=sizeof(Run); in ubidi_openSized() 170 } else if(!getInitialRunsMemory(pBiDi, maxRunCount)) { in ubidi_openSized() 174 pBiDi->mayAllocateRuns=true; in ubidi_openSized() [all …]
|
D | ubidiln.cpp | 92 setTrailingWSStart(UBiDi *pBiDi) { in setTrailingWSStart() argument 95 const DirProp *dirProps=pBiDi->dirProps; in setTrailingWSStart() 96 UBiDiLevel *levels=pBiDi->levels; in setTrailingWSStart() 97 int32_t start=pBiDi->length; in setTrailingWSStart() 98 UBiDiLevel paraLevel=pBiDi->paraLevel; in setTrailingWSStart() 107 pBiDi->trailingWSStart=start; /* currently == pBiDi->length */ in setTrailingWSStart() 120 pBiDi->trailingWSStart=start; in setTrailingWSStart() 251 ubidi_getLevelAt(const UBiDi *pBiDi, int32_t charIndex) { in ubidi_getLevelAt() argument 253 if(!IS_VALID_PARA_OR_LINE(pBiDi) || charIndex<0 || pBiDi->length<=charIndex) { in ubidi_getLevelAt() 255 } else if(pBiDi->direction!=UBIDI_MIXED || charIndex>=pBiDi->trailingWSStart) { in ubidi_getLevelAt() [all …]
|
D | ubidiimp.h | 126 ubidi_getParaLevelAtIndex(const UBiDi *pBiDi, int32_t index); 180 UBiDi *pBiDi; member 219 ubidi_getRuns(UBiDi *pBiDi, UErrorCode *pErrorCode); 447 #define getDirPropsMemory(pBiDi, length) \ argument 448 … ubidi_getMemory((BidiMemoryForAllocation *)&(pBiDi)->dirPropsMemory, &(pBiDi)->dirPropsSize, \ 449 (pBiDi)->mayAllocateText, (length)) 451 #define getLevelsMemory(pBiDi, length) \ argument 452 ubidi_getMemory((BidiMemoryForAllocation *)&(pBiDi)->levelsMemory, &(pBiDi)->levelsSize, \ 453 (pBiDi)->mayAllocateText, (length)) 455 #define getRunsMemory(pBiDi, length) \ argument [all …]
|
D | ubidiwrt.cpp | 357 ubidi_writeReordered(UBiDi *pBiDi, in ubidi_writeReordered() argument 371 if( pBiDi==NULL || in ubidi_writeReordered() 372 (text=pBiDi->text)==NULL || (length=pBiDi->length)<0 || in ubidi_writeReordered() 382 (dest>=text && dest<text+pBiDi->originalLength))) in ubidi_writeReordered() 393 runCount=ubidi_countRuns(pBiDi, pErrorCode); in ubidi_writeReordered() 406 if(pBiDi->reorderingOptions & UBIDI_OPTION_INSERT_MARKS) { in ubidi_writeReordered() 414 if(pBiDi->reorderingOptions & UBIDI_OPTION_REMOVE_CONTROLS) { in ubidi_writeReordered() 422 if((pBiDi->reorderingMode != UBIDI_REORDER_INVERSE_NUMBERS_AS_L) && in ubidi_writeReordered() 423 (pBiDi->reorderingMode != UBIDI_REORDER_INVERSE_LIKE_DIRECT) && in ubidi_writeReordered() 424 (pBiDi->reorderingMode != UBIDI_REORDER_INVERSE_FOR_NUMBERS_SPECIAL) && in ubidi_writeReordered() [all …]
|
/third_party/node/deps/icu-small/source/common/ |
D | ubidi.cpp | 135 UBiDi *pBiDi; in ubidi_openSized() local 146 pBiDi=(UBiDi *)uprv_malloc(sizeof(UBiDi)); in ubidi_openSized() 147 if(pBiDi==nullptr) { in ubidi_openSized() 153 uprv_memset(pBiDi, 0, sizeof(UBiDi)); in ubidi_openSized() 157 if( !getInitialDirPropsMemory(pBiDi, maxLength) || in ubidi_openSized() 158 !getInitialLevelsMemory(pBiDi, maxLength) in ubidi_openSized() 163 pBiDi->mayAllocateText=true; in ubidi_openSized() 169 pBiDi->runsSize=sizeof(Run); in ubidi_openSized() 170 } else if(!getInitialRunsMemory(pBiDi, maxRunCount)) { in ubidi_openSized() 174 pBiDi->mayAllocateRuns=true; in ubidi_openSized() [all …]
|
D | ubidiln.cpp | 92 setTrailingWSStart(UBiDi *pBiDi) { in setTrailingWSStart() argument 95 const DirProp *dirProps=pBiDi->dirProps; in setTrailingWSStart() 96 UBiDiLevel *levels=pBiDi->levels; in setTrailingWSStart() 97 int32_t start=pBiDi->length; in setTrailingWSStart() 98 UBiDiLevel paraLevel=pBiDi->paraLevel; in setTrailingWSStart() 107 pBiDi->trailingWSStart=start; /* currently == pBiDi->length */ in setTrailingWSStart() 120 pBiDi->trailingWSStart=start; in setTrailingWSStart() 251 ubidi_getLevelAt(const UBiDi *pBiDi, int32_t charIndex) { in ubidi_getLevelAt() argument 253 if(!IS_VALID_PARA_OR_LINE(pBiDi) || charIndex<0 || pBiDi->length<=charIndex) { in ubidi_getLevelAt() 255 } else if(pBiDi->direction!=UBIDI_MIXED || charIndex>=pBiDi->trailingWSStart) { in ubidi_getLevelAt() [all …]
|
D | ubidiimp.h | 126 ubidi_getParaLevelAtIndex(const UBiDi *pBiDi, int32_t index); 180 UBiDi *pBiDi; member 219 ubidi_getRuns(UBiDi *pBiDi, UErrorCode *pErrorCode); 447 #define getDirPropsMemory(pBiDi, length) \ argument 448 … ubidi_getMemory((BidiMemoryForAllocation *)&(pBiDi)->dirPropsMemory, &(pBiDi)->dirPropsSize, \ 449 (pBiDi)->mayAllocateText, (length)) 451 #define getLevelsMemory(pBiDi, length) \ argument 452 ubidi_getMemory((BidiMemoryForAllocation *)&(pBiDi)->levelsMemory, &(pBiDi)->levelsSize, \ 453 (pBiDi)->mayAllocateText, (length)) 455 #define getRunsMemory(pBiDi, length) \ argument [all …]
|
D | ubidiwrt.cpp | 357 ubidi_writeReordered(UBiDi *pBiDi, in ubidi_writeReordered() argument 371 if( pBiDi==nullptr || in ubidi_writeReordered() 372 (text=pBiDi->text)==nullptr || (length=pBiDi->length)<0 || in ubidi_writeReordered() 382 (dest>=text && dest<text+pBiDi->originalLength))) in ubidi_writeReordered() 393 runCount=ubidi_countRuns(pBiDi, pErrorCode); in ubidi_writeReordered() 406 if(pBiDi->reorderingOptions & UBIDI_OPTION_INSERT_MARKS) { in ubidi_writeReordered() 414 if(pBiDi->reorderingOptions & UBIDI_OPTION_REMOVE_CONTROLS) { in ubidi_writeReordered() 422 if((pBiDi->reorderingMode != UBIDI_REORDER_INVERSE_NUMBERS_AS_L) && in ubidi_writeReordered() 423 (pBiDi->reorderingMode != UBIDI_REORDER_INVERSE_LIKE_DIRECT) && in ubidi_writeReordered() 424 (pBiDi->reorderingMode != UBIDI_REORDER_INVERSE_FOR_NUMBERS_SPECIAL) && in ubidi_writeReordered() [all …]
|
/third_party/skia/third_party/externals/icu/source/common/ |
D | ubidi.cpp | 135 UBiDi *pBiDi; in ubidi_openSized() local 146 pBiDi=(UBiDi *)uprv_malloc(sizeof(UBiDi)); in ubidi_openSized() 147 if(pBiDi==NULL) { in ubidi_openSized() 153 uprv_memset(pBiDi, 0, sizeof(UBiDi)); in ubidi_openSized() 157 if( !getInitialDirPropsMemory(pBiDi, maxLength) || in ubidi_openSized() 158 !getInitialLevelsMemory(pBiDi, maxLength) in ubidi_openSized() 163 pBiDi->mayAllocateText=TRUE; in ubidi_openSized() 169 pBiDi->runsSize=sizeof(Run); in ubidi_openSized() 170 } else if(!getInitialRunsMemory(pBiDi, maxRunCount)) { in ubidi_openSized() 174 pBiDi->mayAllocateRuns=TRUE; in ubidi_openSized() [all …]
|
D | ubidiln.cpp | 92 setTrailingWSStart(UBiDi *pBiDi) { in setTrailingWSStart() argument 95 const DirProp *dirProps=pBiDi->dirProps; in setTrailingWSStart() 96 UBiDiLevel *levels=pBiDi->levels; in setTrailingWSStart() 97 int32_t start=pBiDi->length; in setTrailingWSStart() 98 UBiDiLevel paraLevel=pBiDi->paraLevel; in setTrailingWSStart() 107 pBiDi->trailingWSStart=start; /* currently == pBiDi->length */ in setTrailingWSStart() 120 pBiDi->trailingWSStart=start; in setTrailingWSStart() 251 ubidi_getLevelAt(const UBiDi *pBiDi, int32_t charIndex) { in ubidi_getLevelAt() argument 253 if(!IS_VALID_PARA_OR_LINE(pBiDi) || charIndex<0 || pBiDi->length<=charIndex) { in ubidi_getLevelAt() 255 } else if(pBiDi->direction!=UBIDI_MIXED || charIndex>=pBiDi->trailingWSStart) { in ubidi_getLevelAt() [all …]
|
D | ubidiimp.h | 126 ubidi_getParaLevelAtIndex(const UBiDi *pBiDi, int32_t index); 180 UBiDi *pBiDi; member 219 ubidi_getRuns(UBiDi *pBiDi, UErrorCode *pErrorCode); 447 #define getDirPropsMemory(pBiDi, length) \ argument 448 … ubidi_getMemory((BidiMemoryForAllocation *)&(pBiDi)->dirPropsMemory, &(pBiDi)->dirPropsSize, \ 449 (pBiDi)->mayAllocateText, (length)) 451 #define getLevelsMemory(pBiDi, length) \ argument 452 ubidi_getMemory((BidiMemoryForAllocation *)&(pBiDi)->levelsMemory, &(pBiDi)->levelsSize, \ 453 (pBiDi)->mayAllocateText, (length)) 455 #define getRunsMemory(pBiDi, length) \ argument [all …]
|
D | ubidiwrt.cpp | 357 ubidi_writeReordered(UBiDi *pBiDi, in ubidi_writeReordered() argument 371 if( pBiDi==NULL || in ubidi_writeReordered() 372 (text=pBiDi->text)==NULL || (length=pBiDi->length)<0 || in ubidi_writeReordered() 382 (dest>=text && dest<text+pBiDi->originalLength))) in ubidi_writeReordered() 393 runCount=ubidi_countRuns(pBiDi, pErrorCode); in ubidi_writeReordered() 406 if(pBiDi->reorderingOptions & UBIDI_OPTION_INSERT_MARKS) { in ubidi_writeReordered() 414 if(pBiDi->reorderingOptions & UBIDI_OPTION_REMOVE_CONTROLS) { in ubidi_writeReordered() 422 if((pBiDi->reorderingMode != UBIDI_REORDER_INVERSE_NUMBERS_AS_L) && in ubidi_writeReordered() 423 (pBiDi->reorderingMode != UBIDI_REORDER_INVERSE_LIKE_DIRECT) && in ubidi_writeReordered() 424 (pBiDi->reorderingMode != UBIDI_REORDER_INVERSE_FOR_NUMBERS_SPECIAL) && in ubidi_writeReordered() [all …]
|
/third_party/icu/icu4c/source/common/unicode/ |
D | ubidi.h | 564 ubidi_close(UBiDi *pBiDi); 634 ubidi_setInverse(UBiDi *pBiDi, UBool isInverse); 653 ubidi_isInverse(UBiDi *pBiDi); 676 ubidi_orderParagraphsLTR(UBiDi *pBiDi, UBool orderParagraphsLTR); 690 ubidi_isOrderParagraphsLTR(UBiDi *pBiDi); 894 ubidi_setReorderingMode(UBiDi *pBiDi, UBiDiReorderingMode reorderingMode); 905 ubidi_getReorderingMode(UBiDi *pBiDi); 1050 ubidi_setReorderingOptions(UBiDi *pBiDi, uint32_t reorderingOptions); 1061 ubidi_getReorderingOptions(UBiDi *pBiDi); 1148 ubidi_setContext(UBiDi *pBiDi, [all …]
|
/third_party/node/deps/icu-small/source/common/unicode/ |
D | ubidi.h | 564 ubidi_close(UBiDi *pBiDi); 634 ubidi_setInverse(UBiDi *pBiDi, UBool isInverse); 653 ubidi_isInverse(UBiDi *pBiDi); 676 ubidi_orderParagraphsLTR(UBiDi *pBiDi, UBool orderParagraphsLTR); 690 ubidi_isOrderParagraphsLTR(UBiDi *pBiDi); 894 ubidi_setReorderingMode(UBiDi *pBiDi, UBiDiReorderingMode reorderingMode); 905 ubidi_getReorderingMode(UBiDi *pBiDi); 1050 ubidi_setReorderingOptions(UBiDi *pBiDi, uint32_t reorderingOptions); 1061 ubidi_getReorderingOptions(UBiDi *pBiDi); 1148 ubidi_setContext(UBiDi *pBiDi, [all …]
|
/third_party/skia/third_party/externals/icu/source/common/unicode/ |
D | ubidi.h | 563 ubidi_close(UBiDi *pBiDi); 633 ubidi_setInverse(UBiDi *pBiDi, UBool isInverse); 652 ubidi_isInverse(UBiDi *pBiDi); 675 ubidi_orderParagraphsLTR(UBiDi *pBiDi, UBool orderParagraphsLTR); 689 ubidi_isOrderParagraphsLTR(UBiDi *pBiDi); 893 ubidi_setReorderingMode(UBiDi *pBiDi, UBiDiReorderingMode reorderingMode); 904 ubidi_getReorderingMode(UBiDi *pBiDi); 1049 ubidi_setReorderingOptions(UBiDi *pBiDi, uint32_t reorderingOptions); 1060 ubidi_getReorderingOptions(UBiDi *pBiDi); 1147 ubidi_setContext(UBiDi *pBiDi, [all …]
|
/third_party/icu/icu4c/source/test/cintltst/ |
D | cbiditst.c | 39 static void doTests(UBiDi *pBiDi, UBiDi *pLine, UBool countRunsFirst); 43 static void doTest(UBiDi *pBiDi, int testNumber, const BiDiTestData *test, 46 static void _testReordering(UBiDi *pBiDi, int testNumber); 50 static void _testManyInverseBidi(UBiDi *pBiDi, UBiDiLevel direction); 52 static void _testInverseBidi(UBiDi *pBiDi, const UChar *src, int32_t srcLength, 101 static const char* inverseBasic(UBiDi *pBiDi, const char *src, int32_t srcLen, 103 static UBool assertRoundTrip(UBiDi *pBiDi, int32_t tc, int32_t outIndex, 107 static UBool checkResultLength(UBiDi *pBiDi, const char *srcChars, 111 static UBool checkMaps(UBiDi *pBiDi, int32_t stringIndex, const char *src, 176 UBiDi *pBiDi, *pLine=NULL; in testBidi() local [all …]
|
/third_party/icu/docs/userguide/dev/ |
D | codingguidelines.md | 58 ubidi_getLevels(UBiDi *pBiDi, UErrorCode *pErrorCode) { 63 } else if(pBiDi==nullptr || (length=pBiDi->length)<=0) { 1289 ubidi_close(UBiDi *pBiDi);
|