Home | History | Annotate | Download | only in cintltst

Lines Matching refs:tt

192 text_reset(TestText *tt) {
193 tt->limit = tt->text;
194 tt->number = 0;
198 text_nextString(TestText *tt, int32_t *pLength) {
199 char *s = tt->limit;
200 if (s == tt->textLimit) {
203 } else if (s == tt->text) {
205 if ((tt->textLimit - tt->text) >= 3 &&
213 ++tt->number;
217 tt->limit = uprv_strchr(s, 0);
218 *pLength = (int32_t)(tt->limit - s);
223 text_open(TestText *tt) {
227 uprv_memset(tt, 0, sizeof(TestText));
235 tt->text = (char *)uprv_malloc(length + 1);
236 if (tt->text == NULL) {
240 if (length != fread(tt->text, 1, length, f)) {
243 uprv_free(tt->text);
246 tt->textLimit = tt->text + length;
247 *tt->textLimit = 0;
249 for(s = tt->text; (s = uprv_strchr(s, 0x23)) != NULL; *s++ = 0) {}
250 text_reset(tt);
255 text_close(TestText *tt) {
256 uprv_free(tt->text);