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
00038 typedef void* UReplaceable;
00039
00047 typedef struct _UReplaceableCallbacks {
00048
00054 int32_t (*length)(const UReplaceable* rep);
00055
00063 UChar (*charAt)(const UReplaceable* rep,
00064 int32_t offset);
00065
00072 UChar32 (*char32At)(const UReplaceable* rep,
00073 int32_t offset);
00074
00089 void (*replace)(UReplaceable* rep,
00090 int32_t start,
00091 int32_t limit,
00092 const UChar* text,
00093 int32_t textLength);
00094
00106 void (*extract)(UReplaceable* rep,
00107 int32_t start,
00108 int32_t limit,
00109 UChar* dst);
00110
00125 void (*copy)(UReplaceable* rep,
00126 int32_t start,
00127 int32_t limit,
00128 int32_t dest);
00129
00130 } UReplaceableCallbacks;
00131
00132 U_CDECL_END
00133
00134 #endif