/* ******************************************************************************* * Copyright (C) 1997-2000, International Business Machines * Corporation and others. All Rights Reserved. ******************************************************************************* * Date Name Description * 06/23/00 aliu Creation. ******************************************************************************* */ #ifndef UREP_H #define UREP_H #include "unicode/utypes.h" /******************************************************************** * General Notes ******************************************************************** * TODO * Add usage scenario * Add test code * Talk about pinning * Talk about "can truncate result if out of memory" */ /******************************************************************** * Data Structures ********************************************************************/ typedef void* UReplaceable; typedef struct _UReplaceableCallbacks { int32_t (*length)(const UReplaceable* rep); UChar (*charAt)(const UReplaceable* rep, int32_t offset); UChar32 (*char32At)(const UReplaceable* rep, int32_t offset); void (*replace)(UReplaceable* rep, int32_t start, int32_t limit, const UChar* text, int32_t textLength); void (*copy)(UReplaceable* rep, int32_t start, int32_t limit, int32_t dest); } UReplaceableCallbacks; #endif