1999-12-28 23:39:02 +00:00
|
|
|
/*
|
2001-03-21 20:44:20 +00:00
|
|
|
******************************************************************************
|
1999-12-28 23:39:02 +00:00
|
|
|
*
|
2001-03-21 20:44:20 +00:00
|
|
|
* Copyright (C) 1999-2001, International Business Machines
|
1999-12-28 23:39:02 +00:00
|
|
|
* Corporation and others. All Rights Reserved.
|
|
|
|
*
|
2001-03-21 20:44:20 +00:00
|
|
|
******************************************************************************
|
1999-12-28 23:39:02 +00:00
|
|
|
* file name: ubidi.h
|
|
|
|
* encoding: US-ASCII
|
|
|
|
* tab size: 8 (not used)
|
|
|
|
* indentation:4
|
|
|
|
*
|
|
|
|
* created on: 1999sep15
|
|
|
|
* created by: Markus W. Scherer
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef BIDI_H
|
|
|
|
#define BIDI_H
|
|
|
|
|
|
|
|
#include "unicode/utypes.h"
|
2002-06-27 01:19:20 +00:00
|
|
|
#include "unicode/uobject.h"
|
1999-12-28 23:39:02 +00:00
|
|
|
#include "unicode/ubidi.h"
|
|
|
|
|
|
|
|
#ifndef XP_CPLUSPLUS
|
|
|
|
# error This is a C++ header file.
|
|
|
|
#endif
|
|
|
|
|
2001-10-08 23:26:58 +00:00
|
|
|
U_NAMESPACE_BEGIN
|
1999-12-28 23:39:02 +00:00
|
|
|
/**
|
2001-09-19 00:35:29 +00:00
|
|
|
* This class is deprecated and will be removed.
|
|
|
|
* Use the C API with the UBiDi type and ubidi_... functions.
|
|
|
|
* The BiDi class was just a pure 1:1 wrapper for the ubidi_ API.
|
|
|
|
*
|
|
|
|
* Old documentation:
|
|
|
|
*
|
1999-12-28 23:39:02 +00:00
|
|
|
* BiDi is a C++ wrapper class for UBiDi.
|
|
|
|
* You need one BiDi object in place of one UBiDi object.
|
|
|
|
* For details on the API and implementation of the
|
|
|
|
* Unicode BiDi algorithm, see ubidi.h.
|
|
|
|
*
|
|
|
|
* @see UBiDi
|
2001-09-19 00:35:29 +00:00
|
|
|
* @deprecated To be removed after 2002-sep-30; use the C API with UBiDi and ubidi_... functions.
|
1999-12-28 23:39:02 +00:00
|
|
|
*/
|
2002-06-27 01:19:20 +00:00
|
|
|
class U_COMMON_API BiDi : public UObject {
|
1999-12-28 23:39:02 +00:00
|
|
|
public:
|
2000-03-22 18:31:40 +00:00
|
|
|
/** @memo Default constructor, calls ubidi_open().
|
2001-09-19 00:35:29 +00:00
|
|
|
* @deprecated
|
2000-03-22 18:31:40 +00:00
|
|
|
*/
|
1999-12-28 23:39:02 +00:00
|
|
|
BiDi();
|
|
|
|
|
2000-03-22 18:31:40 +00:00
|
|
|
/** @memo Constructor, calls ubidi_open().
|
2001-09-19 00:35:29 +00:00
|
|
|
* @deprecated
|
2000-03-22 18:31:40 +00:00
|
|
|
*/
|
1999-12-28 23:39:02 +00:00
|
|
|
BiDi(UErrorCode &rErrorCode);
|
|
|
|
|
2000-03-22 18:31:40 +00:00
|
|
|
/** @memo Preallocating constructor, calls ubidi_openSized().
|
2001-09-19 00:35:29 +00:00
|
|
|
* @deprecated
|
2000-03-22 18:31:40 +00:00
|
|
|
*/
|
2002-03-12 01:32:42 +00:00
|
|
|
BiDi(int32_t maxLength, int32_t maxRunCount, UErrorCode &rErrorCode);
|
1999-12-28 23:39:02 +00:00
|
|
|
|
2000-03-22 18:31:40 +00:00
|
|
|
/** @memo Destructor, calls ubidi_close().
|
2001-09-19 00:35:29 +00:00
|
|
|
* @deprecated
|
2000-03-22 18:31:40 +00:00
|
|
|
*/
|
1999-12-28 23:39:02 +00:00
|
|
|
~BiDi();
|
|
|
|
|
2000-05-18 20:22:21 +00:00
|
|
|
/**
|
|
|
|
* Modify the operation of the BiDi algorithm such that it
|
|
|
|
* approximates an "inverse BiDi" algorithm. This function
|
|
|
|
* must be called before <code>setPara()</code>.
|
|
|
|
*
|
|
|
|
* @param isInverse specifies "forward" or "inverse" BiDi operation
|
|
|
|
*
|
|
|
|
* @see setPara
|
|
|
|
* @see writeReordered
|
2001-09-19 00:35:29 +00:00
|
|
|
* @deprecated
|
2000-05-18 20:22:21 +00:00
|
|
|
*/
|
|
|
|
void
|
2000-05-18 22:08:39 +00:00
|
|
|
setInverse(UBool isInverse);
|
2000-05-18 20:22:21 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Is this BiDi object set to perform the inverse BiDi algorithm?
|
|
|
|
*
|
|
|
|
* @see setInverse
|
2001-09-19 00:35:29 +00:00
|
|
|
* @deprecated
|
2000-05-18 20:22:21 +00:00
|
|
|
*/
|
2000-05-18 22:08:39 +00:00
|
|
|
UBool
|
2000-05-18 20:22:21 +00:00
|
|
|
isInverse();
|
|
|
|
|
2000-03-22 18:31:40 +00:00
|
|
|
/** @memo Set this object for one paragraph's text.
|
2001-09-19 00:35:29 +00:00
|
|
|
* @deprecated
|
2000-03-22 18:31:40 +00:00
|
|
|
*/
|
1999-12-28 23:39:02 +00:00
|
|
|
BiDi &
|
2002-03-12 01:32:42 +00:00
|
|
|
setPara(const UChar *text, int32_t length,
|
1999-12-28 23:39:02 +00:00
|
|
|
UBiDiLevel paraLevel, UBiDiLevel *embeddingLevels,
|
|
|
|
UErrorCode &rErrorCode);
|
|
|
|
|
|
|
|
|
2000-03-22 18:31:40 +00:00
|
|
|
/** @memo Set this object for one line of the paragraph object's text.
|
2001-09-19 00:35:29 +00:00
|
|
|
* @deprecated
|
2000-03-22 18:31:40 +00:00
|
|
|
*/
|
1999-12-28 23:39:02 +00:00
|
|
|
BiDi &
|
|
|
|
setLine(const BiDi &rParaBiDi,
|
2002-03-12 01:32:42 +00:00
|
|
|
int32_t start, int32_t limit,
|
1999-12-28 23:39:02 +00:00
|
|
|
UErrorCode &rErrorCode);
|
|
|
|
|
2000-03-22 18:31:40 +00:00
|
|
|
/** @memo Get the directionality of the text.
|
2001-09-19 00:35:29 +00:00
|
|
|
* @deprecated
|
2000-03-22 18:31:40 +00:00
|
|
|
*/
|
1999-12-28 23:39:02 +00:00
|
|
|
UBiDiDirection
|
|
|
|
getDirection() const;
|
|
|
|
|
2000-05-18 20:22:21 +00:00
|
|
|
/** @memo Get the pointer to the text.
|
2001-09-19 00:35:29 +00:00
|
|
|
* @deprecated
|
2000-05-18 20:22:21 +00:00
|
|
|
*/
|
|
|
|
const UChar *
|
|
|
|
getText() const;
|
|
|
|
|
2000-03-22 18:31:40 +00:00
|
|
|
/** @memo Get the length of the text.
|
2001-09-19 00:35:29 +00:00
|
|
|
* @deprecated
|
2000-03-22 18:31:40 +00:00
|
|
|
*/
|
2002-03-12 01:32:42 +00:00
|
|
|
int32_t
|
1999-12-28 23:39:02 +00:00
|
|
|
getLength() const;
|
|
|
|
|
2000-03-22 18:31:40 +00:00
|
|
|
/** @memo Get the paragraph level of the text.
|
2001-09-19 00:35:29 +00:00
|
|
|
* @deprecated
|
2000-03-22 18:31:40 +00:00
|
|
|
*/
|
1999-12-28 23:39:02 +00:00
|
|
|
UBiDiLevel
|
|
|
|
getParaLevel() const;
|
|
|
|
|
2000-03-22 18:31:40 +00:00
|
|
|
/** @memo Get the level for one character.
|
2001-09-19 00:35:29 +00:00
|
|
|
* @deprecated
|
2000-03-22 18:31:40 +00:00
|
|
|
*/
|
1999-12-28 23:39:02 +00:00
|
|
|
UBiDiLevel
|
2002-03-12 01:32:42 +00:00
|
|
|
getLevelAt(int32_t charIndex) const;
|
1999-12-28 23:39:02 +00:00
|
|
|
|
2000-03-22 18:31:40 +00:00
|
|
|
/** @memo Get an array of levels for each character.
|
2001-09-19 00:35:29 +00:00
|
|
|
* @deprecated
|
2000-03-22 18:31:40 +00:00
|
|
|
*/
|
1999-12-28 23:39:02 +00:00
|
|
|
const UBiDiLevel *
|
|
|
|
getLevels(UErrorCode &rErrorCode);
|
|
|
|
|
2000-03-22 18:31:40 +00:00
|
|
|
/** @memo Get a logical run.
|
2001-09-19 00:35:29 +00:00
|
|
|
* @deprecated
|
2000-03-22 18:31:40 +00:00
|
|
|
*/
|
1999-12-28 23:39:02 +00:00
|
|
|
void
|
2002-03-12 01:32:42 +00:00
|
|
|
getLogicalRun(int32_t logicalStart,
|
|
|
|
int32_t &rLogicalLimit, UBiDiLevel &rLevel) const;
|
1999-12-28 23:39:02 +00:00
|
|
|
|
2000-03-22 18:31:40 +00:00
|
|
|
/** @memo Get the number of runs.
|
2001-09-19 00:35:29 +00:00
|
|
|
* @deprecated
|
2000-03-22 18:31:40 +00:00
|
|
|
*/
|
2002-03-12 01:32:42 +00:00
|
|
|
int32_t
|
1999-12-28 23:39:02 +00:00
|
|
|
countRuns(UErrorCode &rErrorCode);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @memo Get one run's logical start, length, and directionality,
|
2000-03-22 18:31:40 +00:00
|
|
|
* which can be 0 for LTR or 1 for RTL.
|
2001-09-19 00:35:29 +00:00
|
|
|
* @deprecated
|
1999-12-28 23:39:02 +00:00
|
|
|
*/
|
|
|
|
UBiDiDirection
|
2002-03-12 01:32:42 +00:00
|
|
|
getVisualRun(int32_t runIndex, int32_t &rLogicalStart, int32_t &rLength);
|
1999-12-28 23:39:02 +00:00
|
|
|
|
2000-03-22 18:31:40 +00:00
|
|
|
/** @memo Get the visual position from a logical text position.
|
2001-09-19 00:35:29 +00:00
|
|
|
* @deprecated
|
2000-03-22 18:31:40 +00:00
|
|
|
*/
|
2002-03-12 01:32:42 +00:00
|
|
|
int32_t
|
|
|
|
getVisualIndex(int32_t logicalIndex, UErrorCode &rErrorCode);
|
1999-12-28 23:39:02 +00:00
|
|
|
|
2000-03-22 18:31:40 +00:00
|
|
|
/** @memo Get the logical text position from a visual position.
|
2001-09-19 00:35:29 +00:00
|
|
|
* @deprecated
|
2000-03-22 18:31:40 +00:00
|
|
|
*/
|
2002-03-12 01:32:42 +00:00
|
|
|
int32_t
|
|
|
|
getLogicalIndex(int32_t visualIndex, UErrorCode &rErrorCode);
|
1999-12-28 23:39:02 +00:00
|
|
|
|
|
|
|
/**
|
2000-03-22 18:31:40 +00:00
|
|
|
* @memo Get a logical-to-visual index map (array) for the characters in the UBiDi
|
1999-12-28 23:39:02 +00:00
|
|
|
* (paragraph or line) object.
|
2001-09-19 00:35:29 +00:00
|
|
|
* @deprecated
|
1999-12-28 23:39:02 +00:00
|
|
|
*/
|
|
|
|
void
|
2002-03-12 01:32:42 +00:00
|
|
|
getLogicalMap(int32_t *indexMap, UErrorCode &rErrorCode);
|
1999-12-28 23:39:02 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @memo Get a visual-to-logical index map (array) for the characters in the UBiDi
|
|
|
|
* (paragraph or line) object.
|
2001-09-19 00:35:29 +00:00
|
|
|
* @deprecated
|
1999-12-28 23:39:02 +00:00
|
|
|
*/
|
|
|
|
void
|
2002-03-12 01:32:42 +00:00
|
|
|
getVisualMap(int32_t *indexMap, UErrorCode &rErrorCode);
|
1999-12-28 23:39:02 +00:00
|
|
|
|
2000-03-22 18:31:40 +00:00
|
|
|
/** @memo Same as ubidi_reorderLogical().
|
2001-09-19 00:35:29 +00:00
|
|
|
* @deprecated
|
2000-03-22 18:31:40 +00:00
|
|
|
*/
|
1999-12-28 23:39:02 +00:00
|
|
|
static void
|
2002-03-12 01:32:42 +00:00
|
|
|
reorderLogical(const UBiDiLevel *levels, int32_t length, int32_t *indexMap);
|
1999-12-28 23:39:02 +00:00
|
|
|
|
2000-03-22 18:31:40 +00:00
|
|
|
/** @memo Same as ubidi_reorderVisual().
|
2001-09-19 00:35:29 +00:00
|
|
|
* @deprecated
|
2000-03-22 18:31:40 +00:00
|
|
|
*/
|
1999-12-28 23:39:02 +00:00
|
|
|
static void
|
2002-03-12 01:32:42 +00:00
|
|
|
reorderVisual(const UBiDiLevel *levels, int32_t length, int32_t *indexMap);
|
1999-12-28 23:39:02 +00:00
|
|
|
|
2000-03-22 18:31:40 +00:00
|
|
|
/** @memo Same as ubidi_invertMap().
|
2001-09-19 00:35:29 +00:00
|
|
|
* @deprecated
|
2000-03-22 18:31:40 +00:00
|
|
|
*/
|
1999-12-28 23:39:02 +00:00
|
|
|
static void
|
2002-03-12 01:32:42 +00:00
|
|
|
invertMap(const int32_t *srcMap, int32_t *destMap, int32_t length);
|
1999-12-28 23:39:02 +00:00
|
|
|
|
2000-05-18 20:22:21 +00:00
|
|
|
/**
|
|
|
|
* Use the <code>BiDi</code> object containing the reordering
|
|
|
|
* information for one paragraph or line of text as set by
|
|
|
|
* <code>setPara()</code> or <code>setLine()</code> and
|
|
|
|
* write a reordered string to the destination buffer.
|
|
|
|
*
|
|
|
|
* @see ubidi_writeReordered
|
2001-09-19 00:35:29 +00:00
|
|
|
* @deprecated
|
2000-05-18 20:22:21 +00:00
|
|
|
*/
|
2002-03-12 01:32:42 +00:00
|
|
|
int32_t
|
2000-05-18 20:22:21 +00:00
|
|
|
writeReordered(UChar *dest, int32_t destSize,
|
|
|
|
uint16_t options,
|
|
|
|
UErrorCode &rErrorCode);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Reverse a Right-To-Left run of Unicode text.
|
|
|
|
*
|
|
|
|
* @see ubidi_writeReverse
|
2001-09-19 00:35:29 +00:00
|
|
|
* @deprecated
|
2000-05-18 20:22:21 +00:00
|
|
|
*/
|
2002-03-12 01:32:42 +00:00
|
|
|
static int32_t
|
2000-05-18 20:22:21 +00:00
|
|
|
writeReverse(const UChar *src, int32_t srcLength,
|
|
|
|
UChar *dest, int32_t destSize,
|
|
|
|
uint16_t options,
|
|
|
|
UErrorCode &rErrorCode);
|
|
|
|
|
1999-12-28 23:39:02 +00:00
|
|
|
protected:
|
|
|
|
UBiDi *pBiDi;
|
|
|
|
};
|
|
|
|
|
|
|
|
/* Inline implementations. -------------------------------------------------- */
|
|
|
|
|
|
|
|
inline BiDi::BiDi() {
|
|
|
|
pBiDi=ubidi_open();
|
|
|
|
}
|
|
|
|
|
|
|
|
inline BiDi::BiDi(UErrorCode &rErrorCode) {
|
|
|
|
if(U_SUCCESS(rErrorCode)) {
|
|
|
|
pBiDi=ubidi_open();
|
|
|
|
if(pBiDi==0) {
|
|
|
|
rErrorCode=U_MEMORY_ALLOCATION_ERROR;
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
pBiDi=0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2002-03-12 01:32:42 +00:00
|
|
|
inline BiDi::BiDi(int32_t maxLength, int32_t maxRunCount, UErrorCode &rErrorCode) {
|
1999-12-28 23:39:02 +00:00
|
|
|
pBiDi=ubidi_openSized(maxLength, maxRunCount, &rErrorCode);
|
|
|
|
}
|
|
|
|
|
|
|
|
inline BiDi::~BiDi() {
|
|
|
|
ubidi_close(pBiDi);
|
|
|
|
pBiDi=0;
|
|
|
|
}
|
|
|
|
|
2000-05-18 20:22:21 +00:00
|
|
|
inline void
|
2000-05-18 22:08:39 +00:00
|
|
|
BiDi::setInverse(UBool isInverse) {
|
2000-05-18 20:22:21 +00:00
|
|
|
ubidi_setInverse(pBiDi, isInverse);
|
|
|
|
}
|
|
|
|
|
2000-05-18 22:08:39 +00:00
|
|
|
inline UBool
|
2000-05-18 20:22:21 +00:00
|
|
|
BiDi::isInverse() {
|
|
|
|
return ubidi_isInverse(pBiDi);
|
|
|
|
}
|
|
|
|
|
1999-12-28 23:39:02 +00:00
|
|
|
inline BiDi &
|
2002-03-12 01:32:42 +00:00
|
|
|
BiDi::setPara(const UChar *text, int32_t length,
|
1999-12-28 23:39:02 +00:00
|
|
|
UBiDiLevel paraLevel, UBiDiLevel *embeddingLevels,
|
|
|
|
UErrorCode &rErrorCode) {
|
|
|
|
ubidi_setPara(pBiDi, text, length, paraLevel, embeddingLevels, &rErrorCode);
|
|
|
|
return *this;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
inline BiDi &
|
|
|
|
BiDi::setLine(const BiDi &rParaBiDi,
|
2002-03-12 01:32:42 +00:00
|
|
|
int32_t start, int32_t limit,
|
1999-12-28 23:39:02 +00:00
|
|
|
UErrorCode &rErrorCode) {
|
|
|
|
ubidi_setLine(rParaBiDi.pBiDi, start, limit, pBiDi, &rErrorCode);
|
|
|
|
return *this;
|
|
|
|
}
|
|
|
|
|
|
|
|
inline UBiDiDirection
|
|
|
|
BiDi::getDirection() const {
|
|
|
|
return ubidi_getDirection(pBiDi);
|
|
|
|
}
|
|
|
|
|
2000-05-18 20:22:21 +00:00
|
|
|
inline const UChar *
|
|
|
|
BiDi::getText() const {
|
|
|
|
return ubidi_getText(pBiDi);
|
|
|
|
}
|
|
|
|
|
2002-03-12 01:32:42 +00:00
|
|
|
inline int32_t
|
1999-12-28 23:39:02 +00:00
|
|
|
BiDi::getLength() const {
|
|
|
|
return ubidi_getLength(pBiDi);
|
|
|
|
}
|
|
|
|
|
|
|
|
inline UBiDiLevel
|
|
|
|
BiDi::getParaLevel() const {
|
|
|
|
return ubidi_getParaLevel(pBiDi);
|
|
|
|
}
|
|
|
|
|
|
|
|
inline UBiDiLevel
|
2002-03-12 01:32:42 +00:00
|
|
|
BiDi::getLevelAt(int32_t charIndex) const {
|
1999-12-28 23:39:02 +00:00
|
|
|
return ubidi_getLevelAt(pBiDi, charIndex);
|
|
|
|
}
|
|
|
|
|
|
|
|
inline const UBiDiLevel *
|
|
|
|
BiDi::getLevels(UErrorCode &rErrorCode) {
|
|
|
|
return ubidi_getLevels(pBiDi, &rErrorCode);
|
|
|
|
}
|
|
|
|
|
|
|
|
inline void
|
2002-03-12 01:32:42 +00:00
|
|
|
BiDi::getLogicalRun(int32_t logicalStart,
|
|
|
|
int32_t &rLogicalLimit, UBiDiLevel &rLevel) const {
|
1999-12-28 23:39:02 +00:00
|
|
|
ubidi_getLogicalRun(pBiDi, logicalStart, &rLogicalLimit, &rLevel);
|
|
|
|
}
|
|
|
|
|
2002-03-12 01:32:42 +00:00
|
|
|
inline int32_t
|
1999-12-28 23:39:02 +00:00
|
|
|
BiDi::countRuns(UErrorCode &rErrorCode) {
|
|
|
|
return ubidi_countRuns(pBiDi, &rErrorCode);
|
|
|
|
}
|
|
|
|
|
|
|
|
inline UBiDiDirection
|
2002-03-12 01:32:42 +00:00
|
|
|
BiDi::getVisualRun(int32_t runIndex, int32_t &rLogicalStart, int32_t &rLength) {
|
1999-12-28 23:39:02 +00:00
|
|
|
return ubidi_getVisualRun(pBiDi, runIndex, &rLogicalStart, &rLength);
|
|
|
|
}
|
|
|
|
|
2002-03-12 01:32:42 +00:00
|
|
|
inline int32_t
|
|
|
|
BiDi::getVisualIndex(int32_t logicalIndex, UErrorCode &rErrorCode) {
|
1999-12-28 23:39:02 +00:00
|
|
|
return ubidi_getVisualIndex(pBiDi, logicalIndex, &rErrorCode);
|
|
|
|
}
|
|
|
|
|
2002-03-12 01:32:42 +00:00
|
|
|
inline int32_t
|
|
|
|
BiDi::getLogicalIndex(int32_t visualIndex, UErrorCode &rErrorCode) {
|
1999-12-28 23:39:02 +00:00
|
|
|
return ubidi_getLogicalIndex(pBiDi, visualIndex, &rErrorCode);
|
|
|
|
}
|
|
|
|
|
|
|
|
inline void
|
2002-03-12 01:32:42 +00:00
|
|
|
BiDi::getLogicalMap(int32_t *indexMap, UErrorCode &rErrorCode) {
|
1999-12-28 23:39:02 +00:00
|
|
|
ubidi_getLogicalMap(pBiDi, indexMap, &rErrorCode);
|
|
|
|
}
|
|
|
|
|
|
|
|
inline void
|
2002-03-12 01:32:42 +00:00
|
|
|
BiDi::getVisualMap(int32_t *indexMap, UErrorCode &rErrorCode) {
|
1999-12-28 23:39:02 +00:00
|
|
|
ubidi_getVisualMap(pBiDi, indexMap, &rErrorCode);
|
|
|
|
}
|
|
|
|
|
|
|
|
inline void
|
2002-03-12 01:32:42 +00:00
|
|
|
BiDi::reorderLogical(const UBiDiLevel *levels, int32_t length, int32_t *indexMap) {
|
1999-12-28 23:39:02 +00:00
|
|
|
ubidi_reorderLogical(levels, length, indexMap);
|
|
|
|
}
|
|
|
|
|
|
|
|
inline void
|
2002-03-12 01:32:42 +00:00
|
|
|
BiDi::reorderVisual(const UBiDiLevel *levels, int32_t length, int32_t *indexMap) {
|
1999-12-28 23:39:02 +00:00
|
|
|
ubidi_reorderVisual(levels, length, indexMap);
|
|
|
|
}
|
|
|
|
|
|
|
|
inline void
|
2002-03-12 01:32:42 +00:00
|
|
|
BiDi::invertMap(const int32_t *srcMap, int32_t *destMap, int32_t length) {
|
1999-12-28 23:39:02 +00:00
|
|
|
ubidi_invertMap(srcMap, destMap, length);
|
|
|
|
}
|
|
|
|
|
2002-03-12 01:32:42 +00:00
|
|
|
inline int32_t
|
2000-05-18 20:22:21 +00:00
|
|
|
BiDi::writeReordered(UChar *dest, int32_t destSize,
|
|
|
|
uint16_t options,
|
|
|
|
UErrorCode &rErrorCode) {
|
|
|
|
return ubidi_writeReordered(pBiDi, dest, destSize, options, &rErrorCode);
|
|
|
|
}
|
|
|
|
|
2002-03-12 01:32:42 +00:00
|
|
|
inline int32_t
|
2000-05-18 20:22:21 +00:00
|
|
|
BiDi::writeReverse(const UChar *src, int32_t srcLength,
|
|
|
|
UChar *dest, int32_t destSize,
|
|
|
|
uint16_t options,
|
|
|
|
UErrorCode &rErrorCode) {
|
|
|
|
return ubidi_writeReverse(src, srcLength, dest, destSize, options, &rErrorCode);
|
|
|
|
}
|
|
|
|
|
2001-10-08 23:26:58 +00:00
|
|
|
U_NAMESPACE_END
|
|
|
|
|
1999-12-28 23:39:02 +00:00
|
|
|
#endif
|