12#include "llvm/ADT/StringRef.h"
13#include "llvm/Support/Format.h"
26 return (count - 10) % 6 == 0;
39 llvm::sys::swapByteOrder(debug_info.
Uuid.
Data1);
40 llvm::sys::swapByteOrder(debug_info.
Uuid.
Data2);
41 llvm::sys::swapByteOrder(debug_info.
Uuid.
Data3);
42 llvm::sys::swapByteOrder(debug_info.
Age);
44 *
this =
UUID(&debug_info,
sizeof(debug_info));
51 llvm::raw_string_ostream os(result);
53 for (
auto B : llvm::enumerate(
GetBytes())) {
57 os << llvm::format_hex_no_prefix(
B.value(), 2,
true);
68 if (ch >=
'a' && ch <=
'f')
77 while (p.size() >= 2) {
78 if (isxdigit(p[0]) && isxdigit(p[1])) {
82 uuid_bytes.push_back((hi_nibble << 4) + lo_nibble);
86 }
else if (p.front() ==
'-') {
98 llvm::StringRef p = str;
103 llvm::SmallVector<uint8_t, 20> bytes;
108 if (!rest.empty() || bytes.empty())
static bool separate(size_t count)
static int xdigit_to_int(char ch)
A stream class that can stream formatted output to a file.
size_t PutCString(llvm::StringRef cstr)
Output a C string to the stream.
bool SetFromStringRef(llvm::StringRef str)
void Dump(Stream &s) const
llvm::ArrayRef< uint8_t > GetBytes() const
std::string GetAsString(llvm::StringRef separator="-") const
static llvm::StringRef DecodeUUIDBytesFromString(llvm::StringRef str, llvm::SmallVectorImpl< uint8_t > &uuid_bytes)
Decode as many UUID bytes as possible from the C string cstr.
A class that represents a running process on the host machine.
llvm::support::ulittle16_t Data2
llvm::support::ulittle32_t Data1
llvm::support::ulittle16_t Data3
struct lldb_private::UUID::CvRecordPdb70::@41 Uuid
llvm::support::ulittle32_t Age