blob: 9c850c53cef54a8e30f763a5083486a7d4f132a7 [file]
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef TOOLS_GN_OUTPUT_CONVERSION_H_
#define TOOLS_GN_OUTPUT_CONVERSION_H_
#include <string>
class Err;
class Settings;
class StringOutputBuffer;
class Value;
// Converts the given input Value to an output string (to be written to a file).
// Conversions as specified in the output_conversion string will be performed.
// The given buffer will be used for writing the resulting string.
//
// If the conversion string is invalid, the error will be set.
void ConvertValueToOutput(const Settings* settings,
const Value& output,
const Value& output_conversion_value,
StringOutputBuffer& out,
Err* err);
#endif // TOOLS_GN_OUTPUT_CONVERSION_H_