Lines Matching full:utf8
169 DecodedCharBuffer GetPrintableImpl<StringElementType::UTF8>( in GetPrintableImpl()
172 // If the utf8 encoded length is invalid (i.e., not in the closed interval in GetPrintableImpl()
174 // isn't valid utf8, fall back to printing an ASCII-escaped subsequence. in GetPrintableImpl()
179 // Convert the valid utf8 sequence to a utf32 codepoint. This cannot fail. in GetPrintableImpl()
181 const llvm::UTF8 *buffer_for_conversion = buffer; in GetPrintableImpl()
185 "Failed to convert legal utf8 sequence"); in GetPrintableImpl()
188 // The UTF8 helper always advances by the utf8 encoded length. in GetPrintableImpl()
228 case StringElementType::UTF8: in GetPrintable()
229 return GetPrintableImpl<StringElementType::UTF8>(buffer, buffer_end, next, in GetPrintable()
240 case GetPrintableElementType::UTF8: in GetDefaultEscapingHelper()
244 return GetPrintable(elem_type == GetPrintableElementType::UTF8 in GetDefaultEscapingHelper()
245 ? StringElementType::UTF8 in GetDefaultEscapingHelper()
260 llvm::UTF8 **, llvm::UTF8 *, in DumpEncodedBufferToStream() argument
297 llvm::UTF8 *utf8_data_ptr = nullptr; in DumpEncodedBufferToStream()
298 llvm::UTF8 *utf8_data_end_ptr = nullptr; in DumpEncodedBufferToStream()
303 utf8_data_ptr = (llvm::UTF8 *)utf8_data_buffer_sp->GetBytes(); in DumpEncodedBufferToStream()
312 (llvm::UTF8 *)utf8_data_buffer_sp->GetBytes(); in DumpEncodedBufferToStream()
315 // happy but this should only happen if we are reading UTF8 data in DumpEncodedBufferToStream()
316 utf8_data_ptr = const_cast<llvm::UTF8 *>( in DumpEncodedBufferToStream()
317 reinterpret_cast<const llvm::UTF8 *>(data_ptr)); in DumpEncodedBufferToStream()
318 utf8_data_end_ptr = const_cast<llvm::UTF8 *>( in DumpEncodedBufferToStream()
319 reinterpret_cast<const llvm::UTF8 *>(data_end_ptr)); in DumpEncodedBufferToStream()
401 llvm::UTF8 **, llvm::UTF8 *, in ReadEncodedBufferAndDumpToStream() argument
419 // If not UTF8 or ASCII, conversion to UTF8 is necessary. in ReadEncodedBufferAndDumpToStream()
489 : GetPrintableElementType::UTF8; in ReadEncodedBufferAndDumpToStream()
494 bool StringPrinter::ReadStringAndDumpToStream<StringElementType::UTF8>( in ReadStringAndDumpToStream()
496 return ReadEncodedBufferAndDumpToStream<llvm::UTF8>(StringElementType::UTF8, in ReadStringAndDumpToStream()
522 bool StringPrinter::ReadBufferAndDumpToStream<StringElementType::UTF8>( in ReadBufferAndDumpToStream()
524 return DumpEncodedBufferToStream<llvm::UTF8>(GetPrintableElementType::UTF8, in ReadBufferAndDumpToStream()
531 return DumpEncodedBufferToStream(GetPrintableElementType::UTF8, in ReadBufferAndDumpToStream()
538 return DumpEncodedBufferToStream(GetPrintableElementType::UTF8, in ReadBufferAndDumpToStream()
545 // Treat ASCII the same as UTF8. in ReadBufferAndDumpToStream()
549 // that forms a valid UTF8 character, we'll print out that character. This is in ReadBufferAndDumpToStream()
554 // the UTF8 character itself. in ReadBufferAndDumpToStream()
555 return ReadBufferAndDumpToStream<StringElementType::UTF8>(options); in ReadBufferAndDumpToStream()