• Home
  • Raw
  • Download

Lines Matching refs:pBiDiTransform

95     UBiDiTransform *pBiDiTransform = nullptr;  in ubiditransform_open()  local
97 pBiDiTransform = (UBiDiTransform*) uprv_calloc(1, sizeof(UBiDiTransform)); in ubiditransform_open()
98 if (pBiDiTransform == nullptr) { in ubiditransform_open()
102 return pBiDiTransform; in ubiditransform_open()
106 ubiditransform_close(UBiDiTransform *pBiDiTransform) in ubiditransform_close() argument
108 if (pBiDiTransform != nullptr) { in ubiditransform_close()
109 if (pBiDiTransform->pBidi != nullptr) { in ubiditransform_close()
110 ubidi_close(pBiDiTransform->pBidi); in ubiditransform_close()
112 if (pBiDiTransform->src != nullptr) { in ubiditransform_close()
113 uprv_free(pBiDiTransform->src); in ubiditransform_close()
115 uprv_free(pBiDiTransform); in ubiditransform_close()
438 ubiditransform_transform(UBiDiTransform *pBiDiTransform, in ubiditransform_transform() argument
448 const UBiDiTransform *pOrigTransform = pBiDiTransform; in ubiditransform_transform()
461 if (pBiDiTransform == nullptr) { in ubiditransform_transform()
462 pBiDiTransform = ubiditransform_open(pErrorCode); in ubiditransform_transform()
471 pBiDiTransform->pActiveScheme = findMatchingScheme(inParaLevel, outParaLevel, in ubiditransform_transform()
473 if (pBiDiTransform->pActiveScheme == nullptr) { in ubiditransform_transform()
476 pBiDiTransform->reorderingOptions = doMirroring ? UBIDI_DO_MIRRORING in ubiditransform_transform()
482 pBiDiTransform->digits = shapingOptions & ~U_SHAPE_LETTERS_MASK; in ubiditransform_transform()
483 pBiDiTransform->letters = shapingOptions & ~U_SHAPE_DIGITS_MASK; in ubiditransform_transform()
485 …updateSrc(pBiDiTransform, src, srcLength, destSize > srcLength ? destSize : srcLength, pErrorCode); in ubiditransform_transform()
489 if (pBiDiTransform->pBidi == nullptr) { in ubiditransform_transform()
490 pBiDiTransform->pBidi = ubidi_openSized(0, 0, pErrorCode); in ubiditransform_transform()
495 pBiDiTransform->dest = dest; in ubiditransform_transform()
496 pBiDiTransform->destSize = destSize; in ubiditransform_transform()
497 pBiDiTransform->pDestLength = &destLength; in ubiditransform_transform()
500 …for (action = pBiDiTransform->pActiveScheme->actions; *action && U_SUCCESS(*pErrorCode); action++)… in ubiditransform_transform()
501 if ((*action)(pBiDiTransform, pErrorCode)) { in ubiditransform_transform()
503 updateSrc(pBiDiTransform, pBiDiTransform->dest, *pBiDiTransform->pDestLength, in ubiditransform_transform()
504 *pBiDiTransform->pDestLength, pErrorCode); in ubiditransform_transform()
509 ubidi_setInverse(pBiDiTransform->pBidi, false); in ubiditransform_transform()
521 if (pOrigTransform != pBiDiTransform) { in ubiditransform_transform()
522 ubiditransform_close(pBiDiTransform); in ubiditransform_transform()
524 pBiDiTransform->dest = nullptr; in ubiditransform_transform()
525 pBiDiTransform->pDestLength = nullptr; in ubiditransform_transform()
526 pBiDiTransform->srcLength = 0; in ubiditransform_transform()
527 pBiDiTransform->destSize = 0; in ubiditransform_transform()