Lines Matching refs:Output

92   OutputBuffer Output;
158 std::free(D.Output.getBuffer());
162 D.Output += '\0';
164 return D.Output.getBuffer();
186 // otherwise. The demangled symbol is stored in Output field. It is
1005 Output += C;
1012 Output += S;
1019 Output << N;
1061 static void removeNullBytes(OutputBuffer &Output, size_t StartIdx) {
1062 char *Buffer = Output.getBuffer();
1064 char *End = Buffer + Output.getCurrentPosition();
1065 Output.setCurrentPosition(std::remove(Start, End, '\0') - Buffer);
1068 // Encodes code point as UTF-8 and stores results in Output. Returns false if
1070 static inline bool encodeUTF8(size_t CodePoint, char *Output) {
1075 Output[0] = CodePoint;
1080 Output[0] = 0xC0 | ((CodePoint >> 6) & 0x3F);
1081 Output[1] = 0x80 | (CodePoint & 0x3F);
1086 Output[0] = 0xE0 | (CodePoint >> 12);
1087 Output[1] = 0x80 | ((CodePoint >> 6) & 0x3F);
1088 Output[2] = 0x80 | (CodePoint & 0x3F);
1093 Output[0] = 0xF0 | (CodePoint >> 18);
1094 Output[1] = 0x80 | ((CodePoint >> 12) & 0x3F);
1095 Output[2] = 0x80 | ((CodePoint >> 6) & 0x3F);
1096 Output[3] = 0x80 | (CodePoint & 0x3F);
1103 // Decodes string encoded using punycode and appends results to Output.
1105 static bool decodePunycode(std::string_view Input, OutputBuffer &Output) {
1106 size_t OutputSize = Output.getCurrentPosition();
1123 Output += std::string_view(UTF8, 4);
1182 size_t NumPoints = (Output.getCurrentPosition() - OutputSize) / 4 + 1;
1194 Output.insert(OutputSize + I * 4, UTF8, 4);
1197 removeNullBytes(Output, OutputSize);
1206 if (!decodePunycode(Ident.Name, Output))