Home | History | Annotate | Download | only in cintltst

Lines Matching refs:tt

190 text_reset(TestText *tt) {
191 tt->limit = tt->text;
192 tt->number = 0;
196 text_nextString(TestText *tt, int32_t *pLength) {
197 char *s = tt->limit;
198 if (s == tt->textLimit) {
201 } else if (s == tt->text) {
203 if ((tt->textLimit - tt->text) >= 3 &&
211 ++tt->number;
215 tt->limit = uprv_strchr(s, 0);
216 *pLength = (int32_t)(tt->limit - s);
221 text_open(TestText *tt) {
225 uprv_memset(tt, 0, sizeof(TestText));
233 tt->text = (char *)uprv_malloc(length + 1);
234 if (tt->text == NULL) {
238 if (length != fread(tt->text, 1, length, f)) {
241 uprv_free(tt->text);
244 tt->textLimit = tt->text + length;
245 *tt->textLimit = 0;
247 for(s = tt->text; (s = uprv_strchr(s, 0x23)) != NULL; *s++ = 0) {}
248 text_reset(tt);
253 text_close(TestText *tt) {
254 uprv_free(tt->text);