Substitutes variables into format and returns the result.

Synopsis

Declared in <absl/strings/substitute.h>

[[nodiscard]]
std::string
Substitute(std::string_view format);

Return Value

The formatted string.

Note

The return value should not be discarded.

Parameters

Name

Description

format

The format string with $0‐`$9` placeholders.

Created with MrDocs