Logo Search packages:      
Sourcecode: icu version File versions

utrans.h File Reference


Detailed Description

C API: Transliterator.

Transliteration

The data structures and functions described in this header provide transliteration services. Transliteration services are implemented as C++ classes. The comments and documentation in this header assume the reader is familiar with the C++ headers translit.h and rbt.h and associated documentation.

A significant but incomplete subset of the C++ transliteration services are available to C code through this header. In order to access more complex transliteration services, refer to the C++ headers and documentation.

Definition in file utrans.h.

#include "unicode/utypes.h"
#include "unicode/urep.h"
#include "unicode/parseerr.h"

Go to the source code of this file.

Classes

struct  _UTransPosition

Typedefs

typedef enum _UTransDirection UTransDirection
typedef void * UTransliterator
typedef struct _UTransPosition UTransPosition

Enumerations

enum  _UTransDirection { UTRANS_FORWARD, UTRANS_REVERSE }

Functions

U_CAPI UTransliterator *U_EXPORT2 utrans_clone (const UTransliterator *trans, UErrorCode *status)
U_CAPI void U_EXPORT2 utrans_close (UTransliterator *trans)
U_CAPI int32_t U_EXPORT2 utrans_countAvailableIDs (void)
U_CAPI int32_t U_EXPORT2 utrans_getAvailableID (int32_t index, char *buf, int32_t bufCapacity)
U_CAPI int32_t U_EXPORT2 utrans_getID (const UTransliterator *trans, char *buf, int32_t bufCapacity)
U_CAPI UTransliterator *U_EXPORT2 utrans_open (const char *id, UTransDirection dir, const UChar *rules, int32_t rulesLength, UParseError *parseError, UErrorCode *status)
U_CAPI UTransliterator *U_EXPORT2 utrans_openInverse (const UTransliterator *trans, UErrorCode *status)
U_CAPI void U_EXPORT2 utrans_register (UTransliterator *adoptedTrans, UErrorCode *status)
U_CAPI void U_EXPORT2 utrans_setFilter (UTransliterator *trans, const UChar *filterPattern, int32_t filterPatternLen, UErrorCode *status)
U_CAPI void U_EXPORT2 utrans_trans (const UTransliterator *trans, UReplaceable *rep, UReplaceableCallbacks *repFunc, int32_t start, int32_t *limit, UErrorCode *status)
U_CAPI void U_EXPORT2 utrans_transIncremental (const UTransliterator *trans, UReplaceable *rep, UReplaceableCallbacks *repFunc, UTransPosition *pos, UErrorCode *status)
U_CAPI void U_EXPORT2 utrans_transIncrementalUChars (const UTransliterator *trans, UChar *text, int32_t *textLength, int32_t textCapacity, UTransPosition *pos, UErrorCode *status)
U_CAPI void U_EXPORT2 utrans_transUChars (const UTransliterator *trans, UChar *text, int32_t *textLength, int32_t textCapacity, int32_t start, int32_t *limit, UErrorCode *status)
U_CAPI void U_EXPORT2 utrans_unregister (const char *id)


Generated by  Doxygen 1.6.0   Back to index