|
LLVM
3.7.0
|
#include "llvm/Support/YAMLParser.h"#include "llvm/ADT/SmallString.h"#include "llvm/ADT/SmallVector.h"#include "llvm/ADT/StringExtras.h"#include "llvm/ADT/Twine.h"#include "llvm/ADT/ilist.h"#include "llvm/ADT/ilist_node.h"#include "llvm/Support/ErrorHandling.h"#include "llvm/Support/MemoryBuffer.h"#include "llvm/Support/SourceMgr.h"#include "llvm/Support/raw_ostream.h"Go to the source code of this file.
Classes | |
| struct | llvm::yaml::Token |
| Token - A single YAML token. More... | |
| struct | llvm::ilist_sentinel_traits< Token > |
| struct | llvm::ilist_node_traits< Token > |
| class | llvm::yaml::Scanner |
| Scans YAML tokens from a MemoryBuffer. More... | |
Namespaces | |
| llvm | |
| Compute iterated dominance frontiers using a linear time algorithm. | |
| llvm::yaml | |
Typedefs | |
| typedef std::pair < UnicodeEncodingForm, unsigned > | EncodingInfo |
| EncodingInfo - Holds the encoding type and length of the byte order mark if it exists. More... | |
| typedef ilist< Token > | TokenQueueT |
| typedef std::pair< uint32_t, unsigned > | UTF8Decoded |
| The Unicode scalar value of a UTF-8 minimal well-formed code unit subsequence and the subsequence's length in code units (uint8_t). More... | |
Enumerations | |
| enum | UnicodeEncodingForm { UEF_UTF32_LE, UEF_UTF32_BE, UEF_UTF16_LE, UEF_UTF16_BE, UEF_UTF8, UEF_Unknown } |
Functions | |
| static EncodingInfo | getUnicodeEncoding (StringRef Input) |
| getUnicodeEncoding - Reads up to the first 4 bytes to determine the Unicode encoding form of Input. More... | |
| static UTF8Decoded | decodeUTF8 (StringRef Range) |
| static void | encodeUTF8 (uint32_t UnicodeScalarValue, SmallVectorImpl< char > &Result) |
| encodeUTF8 - Encode UnicodeScalarValue in UTF-8 and append it to result. More... | |
| static bool | is_ns_hex_digit (const char C) |
| static bool | is_ns_word_char (const char C) |
| static LLVM_ATTRIBUTE_NOINLINE bool | wasEscaped (StringRef::iterator First, StringRef::iterator Position) |
| static unsigned | getChompedLineBreaks (char ChompingIndicator, unsigned LineBreaks, StringRef Str) |
| Get the number of line breaks after chomping. More... | |
| typedef std::pair<UnicodeEncodingForm, unsigned> EncodingInfo |
EncodingInfo - Holds the encoding type and length of the byte order mark if it exists.
Length is in {0, 2, 3, 4}.
Definition at line 40 of file YAMLParser.cpp.
| typedef ilist<Token> TokenQueueT |
Definition at line 183 of file YAMLParser.cpp.
| typedef std::pair<uint32_t, unsigned> UTF8Decoded |
The Unicode scalar value of a UTF-8 minimal well-formed code unit subsequence and the subsequence's length in code units (uint8_t).
A length of 0 represents an error.
Definition at line 211 of file YAMLParser.cpp.
| enum UnicodeEncodingForm |
Definition at line 29 of file YAMLParser.cpp.
|
static |
Definition at line 213 of file YAMLParser.cpp.
References llvm::StringRef::begin(), and llvm::StringRef::end().
Referenced by llvm::yaml::escape().
|
static |
encodeUTF8 - Encode UnicodeScalarValue in UTF-8 and append it to result.
Definition at line 573 of file YAMLParser.cpp.
References llvm::SmallVectorTemplateBase< T, isPodLike >::push_back().
Referenced by llvm::yaml::escape().
|
static |
Get the number of line breaks after chomping.
Return the number of trailing line breaks to emit, depending on ChompingIndicator.
Definition at line 1462 of file YAMLParser.cpp.
References llvm::StringRef::empty().
|
static |
getUnicodeEncoding - Reads up to the first 4 bytes to determine the Unicode encoding form of Input.
| Input | A string of length 0 or more. |
Definition at line 48 of file YAMLParser.cpp.
References llvm::StringRef::size(), UEF_Unknown, UEF_UTF16_BE, UEF_UTF16_LE, UEF_UTF32_BE, UEF_UTF32_LE, and UEF_UTF8.
Definition at line 909 of file YAMLParser.cpp.
Definition at line 915 of file YAMLParser.cpp.
|
static |
Definition at line 1267 of file YAMLParser.cpp.
References I.
1.8.6