Lines Matching defs:UnquotedValue
2045 /// \param UnquotedValue - An input value without quotation marks.
2055 parseScalarValue(StringRef UnquotedValue, SmallVectorImpl<char> &Storage,
2059 size_t I = UnquotedValue.find_first_of(LookupChars);
2061 return UnquotedValue;
2064 Storage.reserve(UnquotedValue.size());
2066 for (; I != StringRef::npos; I = UnquotedValue.find_first_of(LookupChars)) {
2067 if (UnquotedValue[I] != '\r' && UnquotedValue[I] != '\n') {
2068 llvm::append_range(Storage, UnquotedValue.take_front(I));
2069 UnquotedValue = UnescapeCallback(UnquotedValue.drop_front(I), Storage);
2073 if (size_t LastNonSWhite = UnquotedValue.find_last_not_of(" \t", I);
2075 llvm::append_range(Storage, UnquotedValue.take_front(LastNonSWhite + 1));
2100 if (UnquotedValue.substr(I, 2) == "\r\n")
2102 UnquotedValue = UnquotedValue.drop_front(I + 1).ltrim(" \t");
2104 llvm::append_range(Storage, UnquotedValue);
2113 StringRef UnquotedValue = RawValue.substr(1, RawValue.size() - 2);
2115 auto UnescapeFunc = [this](StringRef UnquotedValue,
2117 assert(UnquotedValue.take_front(1) == "\\");
2118 if (UnquotedValue.size() == 1) {
2120 T.Range = UnquotedValue;
2125 UnquotedValue = UnquotedValue.drop_front(1);
2126 switch (UnquotedValue[0]) {
2129 T.Range = UnquotedValue.take_front(1);
2136 if (UnquotedValue.size() >= 2 && UnquotedValue[1] == '\n')
2137 UnquotedValue = UnquotedValue.drop_front(1);
2140 return UnquotedValue.drop_front(1).ltrim(" \t");
2194 if (UnquotedValue.size() < 3)
2198 if (UnquotedValue.substr(1, 2).getAsInteger(16, UnicodeScalarValue))
2202 return UnquotedValue.drop_front(3);
2205 if (UnquotedValue.size() < 5)
2209 if (UnquotedValue.substr(1, 4).getAsInteger(16, UnicodeScalarValue))
2213 return UnquotedValue.drop_front(5);
2216 if (UnquotedValue.size() < 9)
2220 if (UnquotedValue.substr(1, 8).getAsInteger(16, UnicodeScalarValue))
2224 return UnquotedValue.drop_front(9);
2227 return UnquotedValue.drop_front(1);
2230 return parseScalarValue(UnquotedValue, Storage, "\\\r\n", UnescapeFunc);
2237 StringRef UnquotedValue = RawValue.substr(1, RawValue.size() - 2);
2239 auto UnescapeFunc = [](StringRef UnquotedValue,
2241 assert(UnquotedValue.take_front(2) == "''");
2243 return UnquotedValue.drop_front(2);
2246 return parseScalarValue(UnquotedValue, Storage, "'\r\n", UnescapeFunc);