26void formatted_raw_ostream::UpdatePosition(
const char *
Ptr,
size_t Size) {
27 unsigned &Column = Position.first;
28 unsigned &
Line = Position.second;
48 Column += (8 - (Column & 0x7)) & 0x7;
55 if (PartialUTF8Char.
size()) {
56 size_t BytesFromBuffer =
58 if (
Size < BytesFromBuffer) {
68 ProcessUTF8CodePoint(PartialUTF8Char);
69 PartialUTF8Char.
clear();
70 Ptr += BytesFromBuffer;
71 Size -= BytesFromBuffer;
79 if (*
Ptr >= 0x20 && *
Ptr <= 0x7e) {
92 if ((
unsigned)(
End -
Ptr) < NumBytes) {
103void formatted_raw_ostream::ComputePosition(
const char *
Ptr,
size_t Size) {
113 UpdatePosition(Scanned,
Size - (Scanned -
Ptr));
134void formatted_raw_ostream::write_impl(
const char *
Ptr,
size_t Size) {
void append(StringRef RHS)
Append from a StringRef.
StringRef - Represent a constant reference to a string, i.e.
raw_ostream & write(unsigned char C)
const char * getBufferStart() const
Return the beginning of the current stream buffer, or 0 if the stream is unbuffered.
size_t GetNumBytesInBuffer() const
@ ErrorNonPrintableCharacter
int columnWidthUTF8(StringRef Text)
Gets the number of positions the UTF8-encoded Text is likely to occupy when output on a terminal ("ch...
This is an optimization pass for GlobalISel generic memory operations.
formatted_raw_ostream & fdbgs()
fdbgs() - This returns a reference to a formatted_raw_ostream for debug output.
raw_fd_ostream & outs()
This returns a reference to a raw_fd_ostream for standard output.
unsigned getNumBytesForUTF8(UTF8 firstByte)
formatted_raw_ostream & fouts()
fouts() - This returns a reference to a formatted_raw_ostream for standard output.
raw_ostream & dbgs()
dbgs() - This returns a reference to a raw_ostream for debugging messages.
raw_fd_ostream & errs()
This returns a reference to a raw_ostream for standard error.
formatted_raw_ostream & ferrs()
ferrs() - This returns a reference to a formatted_raw_ostream for standard error.