00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 #ifndef __UREP_H
00012 #define __UREP_H
00013
00014 #include "unicode/utypes.h"
00015
00016 U_CDECL_BEGIN
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00037 typedef void* UReplaceable;
00038
00045 typedef struct _UReplaceableCallbacks {
00046
00051 int32_t (*length)(const UReplaceable* rep);
00052
00059 UChar (*charAt)(const UReplaceable* rep,
00060 int32_t offset);
00061
00067 UChar32 (*char32At)(const UReplaceable* rep,
00068 int32_t offset);
00069
00083 void (*replace)(UReplaceable* rep,
00084 int32_t start,
00085 int32_t limit,
00086 const UChar* text,
00087 int32_t textLength);
00088
00102 void (*copy)(UReplaceable* rep,
00103 int32_t start,
00104 int32_t limit,
00105 int32_t dest);
00106
00107 } UReplaceableCallbacks;
00108
00109 U_CDECL_END
00110
00111 #endif