Home
last modified time | relevance | path

Searched refs:pBiDi (Results 1 – 8 of 8) sorted by relevance

/external/icu/icu4c/source/common/
Dubidi.cpp135 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 …]
Dubidiln.cpp92 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 …]
Dubidiimp.h118 ubidi_getParaLevelAtIndex(const UBiDi *pBiDi, int32_t index);
172 UBiDi *pBiDi; member
211 ubidi_getRuns(UBiDi *pBiDi, UErrorCode *pErrorCode);
431 #define getDirPropsMemory(pBiDi, length) \ argument
432 … ubidi_getMemory((BidiMemoryForAllocation *)&(pBiDi)->dirPropsMemory, &(pBiDi)->dirPropsSize, \
433 (pBiDi)->mayAllocateText, (length))
435 #define getLevelsMemory(pBiDi, length) \ argument
436 ubidi_getMemory((BidiMemoryForAllocation *)&(pBiDi)->levelsMemory, &(pBiDi)->levelsSize, \
437 (pBiDi)->mayAllocateText, (length))
439 #define getRunsMemory(pBiDi, length) \ argument
[all …]
Dubidiwrt.cpp350 ubidi_writeReordered(UBiDi *pBiDi, in ubidi_writeReordered() argument
364 if( pBiDi==NULL || in ubidi_writeReordered()
365 (text=pBiDi->text)==NULL || (length=pBiDi->length)<0 || in ubidi_writeReordered()
375 (dest>=text && dest<text+pBiDi->originalLength))) in ubidi_writeReordered()
386 runCount=ubidi_countRuns(pBiDi, pErrorCode); in ubidi_writeReordered()
399 if(pBiDi->reorderingOptions & UBIDI_OPTION_INSERT_MARKS) { in ubidi_writeReordered()
407 if(pBiDi->reorderingOptions & UBIDI_OPTION_REMOVE_CONTROLS) { in ubidi_writeReordered()
415 if((pBiDi->reorderingMode != UBIDI_REORDER_INVERSE_NUMBERS_AS_L) && in ubidi_writeReordered()
416 (pBiDi->reorderingMode != UBIDI_REORDER_INVERSE_LIKE_DIRECT) && in ubidi_writeReordered()
417 (pBiDi->reorderingMode != UBIDI_REORDER_INVERSE_FOR_NUMBERS_SPECIAL) && in ubidi_writeReordered()
[all …]
/external/icu/libandroidicu/include/unicode/
Dubidi.h560 ubidi_close(UBiDi *pBiDi);
630 ubidi_setInverse(UBiDi *pBiDi, UBool isInverse);
649 ubidi_isInverse(UBiDi *pBiDi);
672 ubidi_orderParagraphsLTR(UBiDi *pBiDi, UBool orderParagraphsLTR);
686 ubidi_isOrderParagraphsLTR(UBiDi *pBiDi);
890 ubidi_setReorderingMode(UBiDi *pBiDi, UBiDiReorderingMode reorderingMode);
901 ubidi_getReorderingMode(UBiDi *pBiDi);
1046 ubidi_setReorderingOptions(UBiDi *pBiDi, uint32_t reorderingOptions);
1057 ubidi_getReorderingOptions(UBiDi *pBiDi);
1144 ubidi_setContext(UBiDi *pBiDi,
[all …]
/external/icu/icu4c/source/common/unicode/
Dubidi.h560 ubidi_close(UBiDi *pBiDi);
630 ubidi_setInverse(UBiDi *pBiDi, UBool isInverse);
649 ubidi_isInverse(UBiDi *pBiDi);
672 ubidi_orderParagraphsLTR(UBiDi *pBiDi, UBool orderParagraphsLTR);
686 ubidi_isOrderParagraphsLTR(UBiDi *pBiDi);
890 ubidi_setReorderingMode(UBiDi *pBiDi, UBiDiReorderingMode reorderingMode);
901 ubidi_getReorderingMode(UBiDi *pBiDi);
1046 ubidi_setReorderingOptions(UBiDi *pBiDi, uint32_t reorderingOptions);
1057 ubidi_getReorderingOptions(UBiDi *pBiDi);
1144 ubidi_setContext(UBiDi *pBiDi,
[all …]
/external/icu/icu4c/source/test/cintltst/
Dcbiditst.c38 static void doTests(UBiDi *pBiDi, UBiDi *pLine, UBool countRunsFirst);
42 static void doTest(UBiDi *pBiDi, int testNumber, const BiDiTestData *test,
45 static void _testReordering(UBiDi *pBiDi, int testNumber);
49 static void _testManyInverseBidi(UBiDi *pBiDi, UBiDiLevel direction);
51 static void _testInverseBidi(UBiDi *pBiDi, const UChar *src, int32_t srcLength,
100 static const char* inverseBasic(UBiDi *pBiDi, const char *src, int32_t srcLen,
102 static UBool assertRoundTrip(UBiDi *pBiDi, int32_t tc, int32_t outIndex,
106 static UBool checkResultLength(UBiDi *pBiDi, const char *srcChars,
110 static UBool checkMaps(UBiDi *pBiDi, int32_t stringIndex, const char *src,
175 UBiDi *pBiDi, *pLine=NULL; in testBidi() local
[all …]
/external/icu/libandroidicu/static_shim/
Dshim.cpp529 void ubidi_close_android(UBiDi * pBiDi) { in ubidi_close_android() argument
530 ubidi_close(pBiDi); in ubidi_close_android()
532 int32_t ubidi_countParagraphs_android(UBiDi * pBiDi) { in ubidi_countParagraphs_android() argument
533 return ubidi_countParagraphs(pBiDi); in ubidi_countParagraphs_android()
535 int32_t ubidi_countRuns_android(UBiDi * pBiDi, UErrorCode * pErrorCode) { in ubidi_countRuns_android() argument
536 return ubidi_countRuns(pBiDi, pErrorCode); in ubidi_countRuns_android()
541 void ubidi_getClassCallback_android(UBiDi * pBiDi, UBiDiClassCallback ** fn, const void ** context)… in ubidi_getClassCallback_android() argument
542 ubidi_getClassCallback(pBiDi, fn, context); in ubidi_getClassCallback_android()
544 UCharDirection ubidi_getCustomizedClass_android(UBiDi * pBiDi, UChar32 c) { in ubidi_getCustomizedClass_android() argument
545 return ubidi_getCustomizedClass(pBiDi, c); in ubidi_getCustomizedClass_android()
[all …]