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
- public ObjectKey(const char * S)
- public ObjectKey(std::string S)
- public ObjectKey(llvm::StringRef S)
- public ObjectKey(const llvm::SmallVectorImpl<char> & V)
- public ObjectKey(const llvm::formatv_object_base & V)
- public ObjectKey(const llvm::json::ObjectKey & C)
- public ObjectKey(llvm::json::ObjectKey && C)
- public llvm::StringRef operator StringRef() const
- public std::string str() const
Methods
¶ObjectKey(const char* S)
ObjectKey(const char* S)
Declared at: llvm/include/llvm/Support/JSON.h:558
Parameters
- const char* S
¶ObjectKey(std::string S)
ObjectKey(std::string S)
Declared at: llvm/include/llvm/Support/JSON.h:559
Parameters
¶ObjectKey(llvm::StringRef S)
ObjectKey(llvm::StringRef S)
Declared at: llvm/include/llvm/Support/JSON.h:566
Parameters
¶ObjectKey(const llvm::SmallVectorImpl<char>& V)
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)
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)
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)
ObjectKey(llvm::json::ObjectKey&& C)
Declared at: llvm/include/llvm/Support/JSON.h:577
Parameters
¶llvm::StringRef operator StringRef() const
llvm::StringRef operator StringRef() const
Declared at: llvm/include/llvm/Support/JSON.h:589
¶std::string str() const
std::string str() const
Declared at: llvm/include/llvm/Support/JSON.h:590