Lines Matching refs:txt
51 status_t append(const char* txt, size_t len) { in append()
61 memcpy(buffer+bufferPos, txt, len); in append()
160 status_t BufferedTextOutput::print(const char* txt, size_t len) in print() argument
167 const char* const end = txt+len; in print()
171 while (txt < end) { in print()
173 const char* first = txt; in print()
174 while (txt < end && *txt != '\n') txt++; in print()
177 while (txt < end && *txt == '\n') txt++; in print()
187 } else if (*(txt-1) == '\n' && !b->bundle) { in print()
193 const char* lastLine = txt; in print()
194 while (txt < end) { in print()
195 if (*txt++ == '\n') lastLine = txt; in print()
202 txt = lastLine; in print()
208 err = b->append(first, txt-first); in print()
210 b->atFront = *(txt-1) == '\n'; in print()