class ObjectKey

Declaration

class ObjectKey { /* full declaration omitted */ };

Description

ObjectKey is a used to capture keys in Object. Like Value but: - only strings are allowed - it's optimized for the string literal case (Owned == nullptr) Like Value, strings must be UTF-8. See isUTF8 documentation for details.

Declared at: llvm/include/llvm/Support/JSON.h:556

Member Variables

private std::unique_ptr<std::string> Owned
private llvm::StringRef Data

Method Overview

Methods

ObjectKey(const char* S)

Declared at: llvm/include/llvm/Support/JSON.h:558

Parameters

const char* S

ObjectKey(std::string S)

Declared at: llvm/include/llvm/Support/JSON.h:559

Parameters

std::string S

ObjectKey(llvm::StringRef S)

Declared at: llvm/include/llvm/Support/JSON.h:566

Parameters

llvm::StringRef S

ObjectKey(const llvm::SmallVectorImpl<char>& V)

Declared at: llvm/include/llvm/Support/JSON.h:572

Parameters

const llvm::SmallVectorImpl<char>& V

ObjectKey(const llvm::formatv_object_base& V)

Declared at: llvm/include/llvm/Support/JSON.h:574

Parameters

const llvm::formatv_object_base& V

ObjectKey(const llvm::json::ObjectKey& C)

Declared at: llvm/include/llvm/Support/JSON.h:576

Parameters

const llvm::json::ObjectKey& C

ObjectKey(llvm::json::ObjectKey&& C)

Declared at: llvm/include/llvm/Support/JSON.h:577

Parameters

llvm::json::ObjectKey&& C

llvm::StringRef operator StringRef() const

Declared at: llvm/include/llvm/Support/JSON.h:589

std::string str() const

Declared at: llvm/include/llvm/Support/JSON.h:590