Searched refs:json_str (Results 1 – 10 of 10) sorted by relevance
| /openbsd-src/gnu/usr.bin/perl/cpan/JSON-PP/t/ |
| H A D | 004_dwiw_encode.t | 28 my $json_str; 29 # print STDERR "\n" . $json_str . "\n\n"; 34 $json_str = $json_obj->encode($data); 35 ok($json_str eq '"stuff"'); 38 $json_str = $json_obj->encode($data); 39 ok($json_str eq '"stu\nff"'); 43 $json_str = $json_obj->encode($data); 45 ok($json_str eq $expected_str); 48 $json_str = $json_obj->encode($data); 50 ok($json_str eq '{"var1":"val1","var2":"val2"}' [all …]
|
| H A D | 005_dwiw_decode.t | 18 …my $json_str = '{"var1":"val1","var2":["first_element",{"sub_element":"sub_val","sub_element2":"su… 21 my $data = $json_obj->decode($json_str); 55 $json_str = '"val1"'; 56 $data = $json_obj->decode($json_str); 59 $json_str = '567'; 60 $data = $json_obj->decode($json_str); 63 $json_str = "5e1"; 64 $data = $json_obj->decode($json_str); 67 $json_str = "5e3"; 68 $data = $json_obj->decode($json_str); [all …]
|
| /openbsd-src/gnu/llvm/lldb/source/Plugins/Trace/intel-pt/ |
| H A D | TraceIntelPT.cpp | 359 json::OStream json_str(s.AsRawOstream(), 2); in DumpTraceInfoAsJson() local 378 json_str.object([&] { in DumpTraceInfoAsJson() 379 json_str.attribute("traceTechnology", "intel-pt"); in DumpTraceInfoAsJson() 380 json_str.attributeObject("threadStats", [&] { in DumpTraceInfoAsJson() 381 json_str.attribute("tid", tid); in DumpTraceInfoAsJson() 384 json_str.attribute("traceItemsCount", insn_len); in DumpTraceInfoAsJson() 388 json_str.attributeObject("memoryUsage", [&] { in DumpTraceInfoAsJson() 389 json_str.attribute("totalInBytes", std::to_string(mem_used)); in DumpTraceInfoAsJson() 393 json_str.attribute("avgPerItemInBytes", avg); in DumpTraceInfoAsJson() 397 json_str.attributeObject("timingInSeconds", [&] { in DumpTraceInfoAsJson() [all …]
|
| /openbsd-src/gnu/llvm/lldb/tools/lldb-vscode/ |
| H A D | VSCode.cpp | 90 void VSCode::SendJSON(const std::string &json_str) { in SendJSON() argument 92 output.write_full(llvm::utostr(json_str.size())); in SendJSON() 94 output.write_full(json_str); in SendJSON() 98 << "Content-Length: " << json_str.size() << "\r\n\r\n" in SendJSON() 99 << json_str << std::endl; in SendJSON() 117 std::string json_str; in ReadJSON() local 121 return json_str; in ReadJSON() 124 return json_str; in ReadJSON() 127 return json_str; in ReadJSON() 130 return json_str; in ReadJSON() [all …]
|
| H A D | VSCode.h | 272 void SendJSON(const std::string &json_str);
|
| /openbsd-src/gnu/llvm/lldb/packages/Python/lldbsuite/test/tools/lldb-vscode/ |
| H A D | vscode.py | 76 json_str = f.read(length) 78 print('json: "%s"' % (json_str)) 80 trace_file.write('from adaptor:\n%s\n' % (json_str)) 82 return json.loads(json_str) 264 json_str = json.dumps(command_dict, separators=(',', ':')) 266 self.trace_file.write('to adaptor:\n%s\n' % (json_str)) 267 length = len(json_str) 270 self.send.write(self.encode_content(json_str))
|
| /openbsd-src/gnu/llvm/lldb/source/API/ |
| H A D | SBStructuredData.cpp | 60 std::string json_str(stream.GetData()); in SetFromJSON() local 62 StructuredData::ObjectSP json_obj = StructuredData::ParseJSON(json_str); in SetFromJSON()
|
| H A D | SBTarget.cpp | 206 std::string json_str = in GetStatistics() local 210 data.m_impl_up->SetObjectSP(StructuredData::ParseJSON(json_str)); in GetStatistics()
|
| /openbsd-src/gnu/llvm/lldb/tools/debugserver/source/ |
| H A D | RNBRemote.cpp | 5919 std::ostringstream json_str; in HandlePacket_jGetLoadedDynamicLibrariesInfos() local 5920 json_sp->DumpBinaryEscaped(json_str); in HandlePacket_jGetLoadedDynamicLibrariesInfos() 5922 if (json_str.str().size() > 0) { in HandlePacket_jGetLoadedDynamicLibrariesInfos() 5923 return SendPacket(json_str.str()); in HandlePacket_jGetLoadedDynamicLibrariesInfos() 5952 std::ostringstream json_str; in HandlePacket_jGetSharedCacheInfo() local 5953 json_sp->DumpBinaryEscaped(json_str); in HandlePacket_jGetSharedCacheInfo() 5955 if (json_str.str().size() > 0) { in HandlePacket_jGetSharedCacheInfo() 5956 return SendPacket(json_str.str()); in HandlePacket_jGetSharedCacheInfo()
|
| /openbsd-src/gnu/llvm/lldb/source/Plugins/Process/gdb-remote/ |
| H A D | ProcessGDBRemote.cpp | 4851 StreamString json_str; in ParseStructuredDataPacket() local 4852 json_sp->Dump(json_str, true); in ParseStructuredDataPacket() 4853 json_str.Flush(); in ParseStructuredDataPacket() 4857 __FUNCTION__, json_str.GetData()); in ParseStructuredDataPacket()
|