Lines Matching defs:Input
55 /// encoding form of \a Input.
57 /// @param Input A string of length 0 or more.
60 static EncodingInfo getUnicodeEncoding(StringRef Input) {
61 if (Input.empty())
64 switch (uint8_t(Input[0])) {
66 if (Input.size() >= 4) {
67 if ( Input[1] == 0
68 && uint8_t(Input[2]) == 0xFE
69 && uint8_t(Input[3]) == 0xFF)
71 if (Input[1] == 0 && Input[2] == 0 && Input[3] != 0)
75 if (Input.size() >= 2 && Input[1] != 0)
79 if ( Input.size() >= 4
80 && uint8_t(Input[1]) == 0xFE
81 && Input[2] == 0
82 && Input[3] == 0)
85 if (Input.size() >= 2 && uint8_t(Input[1]) == 0xFE)
89 if (Input.size() >= 2 && uint8_t(Input[1]) == 0xFF)
93 if ( Input.size() >= 3
94 && uint8_t(Input[1]) == 0xBB
95 && uint8_t(Input[2]) == 0xBF)
101 if (Input.size() >= 4 && Input[1] == 0 && Input[2] == 0 && Input[3] == 0)
104 if (Input.size() >= 2 && Input[1] == 0)
249 Scanner(StringRef Input, SourceMgr &SM, bool ShowColors = true,
608 bool yaml::dumpTokens(StringRef Input, raw_ostream &OS) {
610 Scanner scanner(Input, SM);
692 bool yaml::scanTokens(StringRef Input) {
694 Scanner scanner(Input, SM);
705 std::string yaml::escape(StringRef Input, bool EscapePrintable) {
707 for (StringRef::iterator i = Input.begin(), e = Input.end(); i != e; ++i) {
735 = decodeUTF8(StringRef(i, Input.end() - i));
857 Scanner::Scanner(StringRef Input, SourceMgr &sm, bool ShowColors,
860 init(MemoryBufferRef(Input, "YAML"));
1915 Stream::Stream(StringRef Input, SourceMgr &SM, bool ShowColors,
1917 : scanner(new Scanner(Input, SM, ShowColors, EC)) {}