Home | History | Annotate | Download | only in Support

Lines Matching refs:Input

42 ///                      encoding form of \a Input.
44 /// @param Input A string of length 0 or more.
45 /// @returns An EncodingInfo indicating the Unicode encoding form of the input
47 static EncodingInfo getUnicodeEncoding(StringRef Input) {
48 if (Input.size() == 0)
51 switch (uint8_t(Input[0])) {
53 if (Input.size() >= 4) {
54 if ( Input[1] == 0
55 && uint8_t(Input[2]) == 0xFE
56 && uint8_t(Input[3]) == 0xFF)
58 if (Input[1] == 0 && Input[2] == 0 && Input[3] != 0)
62 if (Input.size() >= 2 && Input[1] != 0)
66 if ( Input.size() >= 4
67 && uint8_t(Input[1]) == 0xFE
68 && Input[2] == 0
69 && Input[3] == 0)
72 if (Input.size() >= 2 && uint8_t(Input[1]) == 0xFE)
76 if (Input.size() >= 2 && uint8_t(Input[1]) == 0xFF)
80 if ( Input.size() >= 3
81 && uint8_t(Input[1]) == 0xBB
82 && uint8_t(Input[2]) == 0xBF)
88 if (Input.size() >= 4 && Input[1] == 0 && Input[2] == 0 && Input[3] == 0)
91 if (Input.size() >= 2 && Input[1] == 0)
127 /// of the token in the input.
253 Scanner(const StringRef Input, SourceMgr &SM);
357 /// returns its input.
465 /// @brief The original input.
471 /// @brief The end of the input (one past the last character).
539 bool yaml::dumpTokens(StringRef Input, raw_ostream &OS) {
541 Scanner scanner(Input, SM);
620 bool yaml::scanTokens(StringRef Input) {
622 llvm::yaml::Scanner scanner(Input, SM);
633 std::string yaml::escape(StringRef Input) {
635 for (StringRef::iterator i = Input.begin(), e = Input.end(); i != e; ++i) {
663 = decodeUTF8(StringRef(i, Input.end() - i));
696 Scanner::Scanner(StringRef Input, SourceMgr &sm)
705 InputBuffer = MemoryBuffer::getMemBuffer(Input, "YAML");
1546 Stream::Stream(StringRef Input, SourceMgr &SM)
1547 : scanner(new Scanner(Input, SM))