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) {
78 NumBytes = getNumBytesForUTF8(*Ptr);
85 if ((unsigned)(End - Ptr) < NumBytes) {
86 PartialUTF8Char = StringRef(Ptr, End - Ptr);
90 ProcessUTF8CodePoint(StringRef(Ptr, NumBytes));
96 void formatted_raw_ostream::ComputePosition(const char *Ptr, size_t Size) {
103 if (Ptr <= Scanned && Scanned <= Ptr + Size)
106 UpdatePosition(Scanned, Size - (Scanned - Ptr));
108 UpdatePosition(Ptr, Size);
111 Scanned = Ptr + Size;
127 void formatted_raw_ostream::write_impl(const char *Ptr, size_t Size) {
129 ComputePosition(Ptr, Size);
133 TheStream->write(Ptr, Size);