Lines Matching refs:Ptr
23 static unsigned CountColumns(unsigned Column, const char *Ptr, size_t Size) {
27 for (const char *End = Ptr + Size; Ptr != End; ++Ptr) {
29 if (*Ptr == '\n' || *Ptr == '\r')
31 else if (*Ptr == '\t')
41 void formatted_raw_ostream::ComputeColumn(const char *Ptr, size_t Size) {
45 if (Ptr <= Scanned && Scanned <= Ptr + Size) {
49 Size - (Scanned - Ptr));
51 ColumnScanned = CountColumns(ColumnScanned, Ptr, Size);
54 Scanned = Ptr + Size;
70 void formatted_raw_ostream::write_impl(const char *Ptr, size_t Size) {
72 ComputeColumn(Ptr, Size);
76 TheStream->write(Ptr, Size);