Home
last modified time | relevance | path

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

/external/icu4c/common/
Dubidi.c128 UBiDi *pBiDi; in ubidi_openSized() local
139 pBiDi=(UBiDi *)uprv_malloc(sizeof(UBiDi)); in ubidi_openSized()
140 if(pBiDi==NULL) { in ubidi_openSized()
146 uprv_memset(pBiDi, 0, sizeof(UBiDi)); in ubidi_openSized()
149 pBiDi->bdp=ubidi_getSingleton(); in ubidi_openSized()
153 if( !getInitialDirPropsMemory(pBiDi, maxLength) || in ubidi_openSized()
154 !getInitialLevelsMemory(pBiDi, maxLength) in ubidi_openSized()
159 pBiDi->mayAllocateText=TRUE; in ubidi_openSized()
165 pBiDi->runsSize=sizeof(Run); in ubidi_openSized()
166 } else if(!getInitialRunsMemory(pBiDi, maxRunCount)) { in ubidi_openSized()
[all …]
Dubidiln.c94 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 …]
Dubidiimp.h157 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 …]
Dubidiwrt.c353 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/
Dubidi.c127 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 …]
Dubidiln.c90 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 …]
Dubidiimp.h157 ubidi_getRuns(UBiDi *pBiDi, UErrorCode *pErrorCode);
354 #define getDirPropsMemory(pBiDi, length) \ argument
355 … ubidi_getMemory((BidiMemoryForAllocation *)&(pBiDi)->dirPropsMemory, &(pBiDi)->dirPropsSize, \
356 (pBiDi)->mayAllocateText, (length))
358 #define getLevelsMemory(pBiDi, length) \ argument
359 ubidi_getMemory((BidiMemoryForAllocation *)&(pBiDi)->levelsMemory, &(pBiDi)->levelsSize, \
360 (pBiDi)->mayAllocateText, (length))
362 #define getRunsMemory(pBiDi, length) \ argument
363 ubidi_getMemory((BidiMemoryForAllocation *)&(pBiDi)->runsMemory, &(pBiDi)->runsSize, \
364 (pBiDi)->mayAllocateRuns, (length)*sizeof(Run))
[all …]
Dubidiwrt.c352 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/
Dubidi.h552 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/
Dubidi.h552 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);
1127 ubidi_setPara(UBiDi *pBiDi, const UChar *text, int32_t length,
[all …]
/external/chromium_org/third_party/icu/source/test/cintltst/
Dcbiditst.c37 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,
82 static const char* inverseBasic(UBiDi *pBiDi, const char *src, int32_t srcLen,
84 static UBool assertRoundTrip(UBiDi *pBiDi, int32_t tc, int32_t outIndex,
88 static UBool checkResultLength(UBiDi *pBiDi, const char *srcChars,
92 static UBool checkMaps(UBiDi *pBiDi, int32_t stringIndex, const char *src,
149 UBiDi *pBiDi, *pLine=NULL; in testBidi() local
[all …]
/external/icu4c/test/cintltst/
Dcbiditst.c37 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,
92 static const char* inverseBasic(UBiDi *pBiDi, const char *src, int32_t srcLen,
94 static UBool assertRoundTrip(UBiDi *pBiDi, int32_t tc, int32_t outIndex,
98 static UBool checkResultLength(UBiDi *pBiDi, const char *srcChars,
102 static UBool checkMaps(UBiDi *pBiDi, int32_t stringIndex, const char *src,
164 UBiDi *pBiDi, *pLine=NULL; in testBidi() local
[all …]