Lines Matching refs:result
29 bool GetVar(std::string_view variable_name, std::string* result) override {
30 if (GetVarImpl(variable_name, result))
45 return GetVarImpl(alternate_case_var, result);
58 bool GetVarImpl(std::string_view variable_name, std::string* result) {
65 if (result) {
70 *result = UTF16ToUTF8(value.get());
78 if (result)
79 *result = env_value;
153 std::u16string result;
165 result.append(line, line_length);
174 result.append(i->first);
175 result.push_back('=');
176 result.append(i->second);
177 result.push_back(0);
183 if (result.empty())
184 result.push_back(0);
185 result.push_back(0);
186 return result;
225 std::unique_ptr<char*[]> result(new char*[pointer_count_required]);
229 reinterpret_cast<char*>(&result.get()[result_indices.size() + 1]);
233 // Fill array of pointers at the beginning of the result.
235 result[i] = &storage_data[result_indices[i]];
236 result[result_indices.size()] = 0; // Null terminator.
238 return result;