Lines Matching defs:Ptr
26 void formatted_raw_ostream::UpdatePosition(const char *Ptr, size_t Size) {
61 PartialUTF8Char.append(StringRef(Ptr, Size));
67 PartialUTF8Char.append(StringRef(Ptr, BytesFromBuffer));
70 Ptr += BytesFromBuffer;
77 for (const char *End = Ptr + Size; Ptr < End; Ptr += NumBytes) {
79 if (*Ptr >= 0x20 && *Ptr <= 0x7e) {
85 NumBytes = getNumBytesForUTF8(*Ptr);
92 if ((unsigned)(End - Ptr) < NumBytes) {
93 PartialUTF8Char = StringRef(Ptr, End - Ptr);
97 ProcessUTF8CodePoint(StringRef(Ptr, NumBytes));
103 void formatted_raw_ostream::ComputePosition(const char *Ptr, size_t Size) {
110 if (Ptr <= Scanned && Scanned <= Ptr + Size)
113 UpdatePosition(Scanned, Size - (Scanned - Ptr));
115 UpdatePosition(Ptr, Size);
118 Scanned = Ptr + Size;
134 void formatted_raw_ostream::write_impl(const char *Ptr, size_t Size) {
136 ComputePosition(Ptr, Size);
140 TheStream->write(Ptr, Size);