Lines Matching refs:Storage

2032 StringRef ScalarNode::getValue(SmallVectorImpl<char> &Storage) const {
2034 return getDoubleQuotedValue(Value, Storage);
2036 return getSingleQuotedValue(Value, Storage);
2037 return getPlainValue(Value, Storage);
2046 /// \param Storage - A storage for the result if the input value is multiline or
2055 parseScalarValue(StringRef UnquotedValue, SmallVectorImpl<char> &Storage,
2063 Storage.clear();
2064 Storage.reserve(UnquotedValue.size());
2068 llvm::append_range(Storage, UnquotedValue.take_front(I));
2069 UnquotedValue = UnescapeCallback(UnquotedValue.drop_front(I), Storage);
2075 llvm::append_range(Storage, UnquotedValue.take_front(LastNonSWhite + 1));
2076 Storage.push_back(' ');
2079 // Note: we can't just check if the last character in Storage is ' ',
2085 assert(!Storage.empty() && Storage.back() == ' ');
2086 Storage.back() = '\n';
2090 assert(!Storage.empty() && Storage.back() == '\n');
2091 Storage.push_back('\n');
2094 Storage.push_back(' ');
2104 llvm::append_range(Storage, UnquotedValue);
2105 return StringRef(Storage.begin(), Storage.size());
2110 SmallVectorImpl<char> &Storage) const {
2116 SmallVectorImpl<char> &Storage) {
2122 Storage.clear();
2131 Storage.clear();
2142 Storage.push_back(0x00);
2145 Storage.push_back(0x07);
2148 Storage.push_back(0x08);
2152 Storage.push_back(0x09);
2155 Storage.push_back(0x0A);
2158 Storage.push_back(0x0B);
2161 Storage.push_back(0x0C);
2164 Storage.push_back(0x0D);
2167 Storage.push_back(0x1B);
2170 Storage.push_back(0x20);
2173 Storage.push_back(0x22);
2176 Storage.push_back(0x2F);
2179 Storage.push_back(0x5C);
2182 encodeUTF8(0x85, Storage);
2185 encodeUTF8(0xA0, Storage);
2188 encodeUTF8(0x2028, Storage);
2191 encodeUTF8(0x2029, Storage);
2201 encodeUTF8(UnicodeScalarValue, Storage);
2212 encodeUTF8(UnicodeScalarValue, Storage);
2223 encodeUTF8(UnicodeScalarValue, Storage);
2230 return parseScalarValue(UnquotedValue, Storage, "\\\r\n", UnescapeFunc);
2234 SmallVectorImpl<char> &Storage) {
2240 SmallVectorImpl<char> &Storage) {
2242 Storage.push_back('\'');
2246 return parseScalarValue(UnquotedValue, Storage, "'\r\n", UnescapeFunc);
2250 SmallVectorImpl<char> &Storage) {
2255 return parseScalarValue(RawValue, Storage, "\r\n", nullptr);