Lines Matching refs:options

399         const ReadStringAndDumpToStreamOptions &options)
401 SetStream(options.GetStream());
402 SetPrefixToken(options.GetPrefixToken());
403 SetSuffixToken(options.GetSuffixToken());
404 SetQuote(options.GetQuote());
405 SetEscapeNonPrintables(options.GetEscapeNonPrintables());
406 SetBinaryZeroIsTerminator(options.GetBinaryZeroIsTerminator());
407 SetLanguage(options.GetLanguage());
417 const ReadStringAndDumpToStreamOptions &options) {
418 assert(options.GetStream() && "need a Stream to print the string to");
421 ProcessSP process_sp(options.GetProcessSP());
423 if (process_sp.get() == nullptr || options.GetLocation() == 0)
430 if (options.GetSourceSize() == 0)
432 else if (!options.GetIgnoreMaxLength()) {
433 size = options.GetSourceSize();
439 size = options.GetSourceSize();
444 options.GetLocation(), (char *)buffer_sp->GetBytes(), size, my_error);
449 const char *prefix_token = options.GetPrefixToken();
450 char quote = options.GetQuote();
453 options.GetStream()->Printf("%s%c", prefix_token, quote);
455 options.GetStream()->Printf("%c", quote);
459 const bool escape_non_printables = options.GetEscapeNonPrintables();
462 if (Language *language = Language::FindPlugin(options.GetLanguage()))
490 options.GetStream()->Printf("%c", *(printable_bytes + c));
493 options.GetStream()->Printf("%c", *data);
498 const char *suffix_token = options.GetSuffixToken();
501 options.GetStream()->Printf("%c%s", quote, suffix_token);
503 options.GetStream()->Printf("%c", quote);
506 options.GetStream()->Printf("...");
513 const StringPrinter::ReadStringAndDumpToStreamOptions &options,
518 assert(options.GetStream() && "need a Stream to print the string to");
520 if (options.GetLocation() == 0 ||
521 options.GetLocation() == LLDB_INVALID_ADDRESS)
524 lldb::ProcessSP process_sp(options.GetProcessSP());
537 if (!options.GetStream())
540 uint32_t sourceSize = options.GetSourceSize();
541 bool needs_zero_terminator = options.GetNeedsZeroTermination();
549 } else if (!options.GetIgnoreMaxLength()) {
567 process_sp->ReadStringFromMemory(options.GetLocation(), buffer,
570 process_sp->ReadMemoryFromInferior(options.GetLocation(),
575 options.GetStream()->Printf("unable to read data");
582 StringPrinter::ReadBufferAndDumpToStreamOptions dump_options(options);
593 const ReadStringAndDumpToStreamOptions &options) {
594 return ReadUTFBufferAndDumpToStream<llvm::UTF8>(options, nullptr);
600 const ReadStringAndDumpToStreamOptions &options) {
601 return ReadUTFBufferAndDumpToStream<llvm::UTF16>(options,
608 const ReadStringAndDumpToStreamOptions &options) {
609 return ReadUTFBufferAndDumpToStream<llvm::UTF32>(options,
616 const ReadBufferAndDumpToStreamOptions &options) {
617 assert(options.GetStream() && "need a Stream to print the string to");
619 return DumpUTFBufferToStream<llvm::UTF8>(nullptr, options);
625 const ReadBufferAndDumpToStreamOptions &options) {
628 return ReadBufferAndDumpToStream<StringElementType::UTF8>(options);
634 const ReadBufferAndDumpToStreamOptions &options) {
635 assert(options.GetStream() && "need a Stream to print the string to");
637 return DumpUTFBufferToStream(llvm::ConvertUTF16toUTF8, options);
643 const ReadBufferAndDumpToStreamOptions &options) {
644 assert(options.GetStream() && "need a Stream to print the string to");
646 return DumpUTFBufferToStream(llvm::ConvertUTF32toUTF8, options);