LLVM API Documentation
A scalar node is an opaque datum that can be presented as a series of zero or more Unicode scalar values. More...
#include <YAMLParser.h>
Public Member Functions | |
ScalarNode (std::unique_ptr< Document > &D, StringRef Anchor, StringRef Tag, StringRef Val) | |
StringRef | getRawValue () const |
StringRef | getValue (SmallVectorImpl< char > &Storage) const |
Gets the value of this node as a StringRef. | |
Static Public Member Functions | |
static bool | classof (const Node *N) |
A scalar node is an opaque datum that can be presented as a series of zero or more Unicode scalar values.
Example: Adena
Definition at line 190 of file YAMLParser.h.
llvm::yaml::ScalarNode::ScalarNode | ( | std::unique_ptr< Document > & | D, |
StringRef | Anchor, | ||
StringRef | Tag, | ||
StringRef | Val | ||
) | [inline] |
Definition at line 194 of file YAMLParser.h.
References llvm::StringRef::begin(), llvm::StringRef::end(), llvm::SMLoc::getFromPointer(), and llvm::yaml::Node::SourceRange.
static bool llvm::yaml::ScalarNode::classof | ( | const Node * | N | ) | [inline, static] |
Definition at line 214 of file YAMLParser.h.
References llvm::yaml::Node::getType(), and llvm::yaml::Node::NK_Scalar.
StringRef llvm::yaml::ScalarNode::getRawValue | ( | ) | const [inline] |
Definition at line 205 of file YAMLParser.h.
StringRef ScalarNode::getValue | ( | SmallVectorImpl< char > & | Storage | ) | const |
Gets the value of this node as a StringRef.
Storage | is used to store the content of the returned StringRef iff it requires any modification from how it appeared in the source. This happens with escaped characters and multi-line literals. |
Definition at line 1636 of file YAMLParser.cpp.
References llvm::StringRef::begin(), llvm::SmallVectorTemplateCommon< T, typename >::begin(), llvm::SmallVectorImpl< T >::clear(), llvm::StringRef::end(), llvm::SmallVectorTemplateCommon< T, typename >::end(), llvm::StringRef::find(), llvm::StringRef::find_first_of(), llvm::SmallVectorImpl< T >::insert(), llvm::StringRef::npos, llvm::SmallVectorTemplateBase< T, isPodLike >::push_back(), llvm::SmallVectorImpl< T >::reserve(), llvm::StringRef::size(), llvm::SmallVectorTemplateCommon< T, typename >::size(), and llvm::StringRef::substr().