Lines Matching refs:rep
61 static void InitXReplaceable(XReplaceable* rep, const char* cstring) { in InitXReplaceable() argument
62 rep->text = malloc(sizeof(UChar) * (strlen(cstring)+1)); in InitXReplaceable()
63 u_uastrcpy(rep->text, cstring); in InitXReplaceable()
66 static void FreeXReplaceable(XReplaceable* rep) { in FreeXReplaceable() argument
67 if (rep->text != NULL) { in FreeXReplaceable()
68 free(rep->text); in FreeXReplaceable()
69 rep->text = NULL; in FreeXReplaceable()
74 static int32_t Xlength(const UReplaceable* rep) { in Xlength() argument
75 const XReplaceable* x = (const XReplaceable*)rep; in Xlength()
80 static UChar XcharAt(const UReplaceable* rep, int32_t offset) { in XcharAt() argument
81 const XReplaceable* x = (const XReplaceable*)rep; in XcharAt()
86 static UChar32 Xchar32At(const UReplaceable* rep, int32_t offset) { in Xchar32At() argument
87 const XReplaceable* x = (const XReplaceable*)rep; in Xchar32At()
92 static void Xreplace(UReplaceable* rep, int32_t start, int32_t limit, in Xreplace() argument
94 XReplaceable* x = (XReplaceable*)rep; in Xreplace()
95 int32_t newLen = Xlength(rep) + limit - start + textLength; in Xreplace()
105 static void Xcopy(UReplaceable* rep, int32_t start, int32_t limit, int32_t dest) { in Xcopy() argument
106 XReplaceable* x = (XReplaceable*)rep; in Xcopy()
107 int32_t newLen = Xlength(rep) + limit - start; in Xcopy()
117 static void Xextract(UReplaceable* rep, int32_t start, int32_t limit, UChar* dst) { in Xextract() argument
118 XReplaceable* x = (XReplaceable*)rep; in Xextract()