Home | History | Annotate | Download | only in cintltst

Lines Matching refs:tt

194 text_reset(TestText *tt) {
195 tt->limit = tt->text;
196 tt->number = 0;
200 text_nextString(TestText *tt, int32_t *pLength) {
201 char *s = tt->limit;
202 if (s == tt->textLimit) {
205 } else if (s == tt->text) {
207 if ((tt->textLimit - tt->text) >= 3 &&
215 ++tt->number;
219 tt->limit = uprv_strchr(s, 0);
220 *pLength = (int32_t)(tt->limit - s);
225 text_open(TestText *tt) {
229 uprv_memset(tt, 0, sizeof(TestText));
237 tt->text = (char *)uprv_malloc(length + 1);
238 if (tt->text == NULL) {
242 if (length != fread(tt->text, 1, length, f)) {
245 uprv_free(tt->text);
248 tt->textLimit = tt->text + length;
249 *tt->textLimit = 0;
251 for(s = tt->text; (s = uprv_strchr(s, 0x23)) != NULL; *s++ = 0) {}
252 text_reset(tt);
257 text_close(TestText *tt) {
258 uprv_free(tt->text);